Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -66,8 +66,8 @@ Settings.llm = HuggingFaceInferenceAPI(model_name="mistralai/Mistral-Nemo-Instru
|
|
| 66 |
# tokenizer_kwargs={"max_length": 4096},
|
| 67 |
tokenizer_name="mistralai/Mistral-Nemo-Instruct-2407",
|
| 68 |
)
|
| 69 |
-
|
| 70 |
-
Settings.embed_model = HuggingFaceEmbedding(model_name="
|
| 71 |
#documents = [Document(text="Indian parliament elections happened in April-May 2024. BJP Party won."),
|
| 72 |
# Document(text="Indian parliament elections happened in April-May 2021. XYZ Party won."),
|
| 73 |
# Document(text="Indian parliament elections happened in 2020. ABC Party won."),
|
|
|
|
| 66 |
# tokenizer_kwargs={"max_length": 4096},
|
| 67 |
tokenizer_name="mistralai/Mistral-Nemo-Instruct-2407",
|
| 68 |
)
|
| 69 |
+
# "BAAI/bge-m3"
|
| 70 |
+
Settings.embed_model = HuggingFaceEmbedding(model_name="sentence-transformers/all-MiniLM-L6-v2")
|
| 71 |
#documents = [Document(text="Indian parliament elections happened in April-May 2024. BJP Party won."),
|
| 72 |
# Document(text="Indian parliament elections happened in April-May 2021. XYZ Party won."),
|
| 73 |
# Document(text="Indian parliament elections happened in 2020. ABC Party won."),
|