Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,10 @@ Settings.llm = HuggingFaceLLM(model_name="facebook/blenderbot-400M-distill",
|
|
| 25 |
tokenizer_name="facebook/blenderbot-400M-distill"
|
| 26 |
)
|
| 27 |
Settings.embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-small-en-v1.5")
|
| 28 |
-
documents = [Document(text="Indian parliament elections happened in April-May 2024. BJP Party won.")
|
|
|
|
|
|
|
|
|
|
| 29 |
index = VectorStoreIndex.from_documents(
|
| 30 |
documents,
|
| 31 |
)
|
|
|
|
| 25 |
tokenizer_name="facebook/blenderbot-400M-distill"
|
| 26 |
)
|
| 27 |
Settings.embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-small-en-v1.5")
|
| 28 |
+
documents = [Document(text="Indian parliament elections happened in April-May 2024. BJP Party won."),
|
| 29 |
+
Document(text="Indian parliament elections happened in April-May 2021. XYZ Party won.",
|
| 30 |
+
Document(text="Indian parliament elections happened in 2020. ABC Party won.",
|
| 31 |
+
]
|
| 32 |
index = VectorStoreIndex.from_documents(
|
| 33 |
documents,
|
| 34 |
)
|