Skip to content

Commit

Permalink
elasticsearch url in from_documents
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisoSouza committed May 20, 2024
1 parent d54846c commit 4785bac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/store/elasticsearch_vector_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def save(self, docs: list[Document])-> list[str]:
res = self.vectorstore.from_documents(
docs,
self.vectorstore.embeddings,
es_url=os.environ.get("ELASTICSEARCH_URL"),
index_name=index,
bulk_kwargs={
"chunk_size": os.environ.get("DEFAULT_CHUNK_SIZE", 75),
Expand Down

0 comments on commit 4785bac

Please sign in to comment.