wt002 commited on
Commit
c53e028
·
verified ·
1 Parent(s): 5728c02

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +7 -2
agent.py CHANGED
@@ -344,12 +344,17 @@ class BERTEmbeddings(Embedding):
344
 
345
  # Example usage of BERTEmbedding with LangChain
346
 
347
- embedding_model = BERTEmbedding(model_name="bert-base-uncased")
348
 
349
  # Sample text (replace with your own text)
350
  docs = [
351
  Document(page_content="Mercedes Sosa was an Argentine singer and musician."),
352
- Document(page_content="The 2000s were a significant decade for music in Latin America.")
 
 
 
 
 
353
  ]
354
 
355
  # Get the embeddings for the documents
 
344
 
345
  # Example usage of BERTEmbedding with LangChain
346
 
347
+ embedding_model = BERTEmbeddings(model_name="bert-base-uncased")
348
 
349
  # Sample text (replace with your own text)
350
  docs = [
351
  Document(page_content="Mercedes Sosa was an Argentine singer and musician."),
352
+ Document(page_content="Examine the video at https://www.youtube.com/watch?v=1htKBjuUWec.\n\nWhat does Teal'c say in response to the question \"Isn't that hot?\"),
353
+ Document(page_content="Who nominated the only Featured Article on English Wikipedia about a dinosaur that was promoted in November 2016?"),
354
+ Document(page_content="What is the surname of the equine veterinarian mentioned in 1.E Exercises from the chemistry materials licensed by Marisa Alviar-Agnew & Henry \
355
+ Agnew under the CK-12 license in LibreText's Introductory Chemistry materials as compiled 08/21/2023?"),
356
+ Document(page_content="What is the final numeric output from the attached Python code?"),
357
+ Document(page_content="Who did the actor who played Ray in the Polish-language version of Everybody Loves Raymond play in Magda M.? Give only the first name.")
358
  ]
359
 
360
  # Get the embeddings for the documents