Spaces:
Sleeping
Sleeping
Update app.py
Browse files
agent.py
CHANGED
|
@@ -348,15 +348,11 @@ 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
|
| 352 |
-
Document(page_content="
|
| 353 |
-
Document(page_content="
|
| 354 |
-
Document(page_content="
|
| 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
|
| 361 |
embeddings = embedding_model.embed([doc.page_content for doc in docs])
|
| 362 |
|
|
|
|
| 348 |
|
| 349 |
# Sample text (replace with your own text)
|
| 350 |
docs = [
|
| 351 |
+
Document(page_content="Mercedes Sosa released many albums between 2000 and 2009."),
|
| 352 |
+
Document(page_content="She was a prominent Argentine folk singer."),
|
| 353 |
+
Document(page_content="Her album 'Al Despertar' was released in 1998."),
|
| 354 |
+
Document(page_content="She continued releasing music well into the 2000s.")
|
|
|
|
|
|
|
|
|
|
| 355 |
]
|
|
|
|
| 356 |
# Get the embeddings for the documents
|
| 357 |
embeddings = embedding_model.embed([doc.page_content for doc in docs])
|
| 358 |
|