We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f9a71d commit 61c1af5Copy full SHA for 61c1af5
example-apps/chatbot-rag-app/api/chat.py
@@ -1,4 +1,4 @@
1
-from langchain_elasticsearch import ElasticsearchStore
+from langchain_elasticsearch import ElasticsearchStore, SparseVectorStrategy
2
from llm_integrations import get_llm
3
from elasticsearch_client import (
4
elasticsearch_client,
@@ -20,7 +20,7 @@
20
store = ElasticsearchStore(
21
es_connection=elasticsearch_client,
22
index_name=INDEX,
23
- strategy=ElasticsearchStore.SparseVectorRetrievalStrategy(model_id=ELSER_MODEL),
+ strategy=SparseVectorStrategy(model_id=ELSER_MODEL),
24
)
25
26
0 commit comments