Skip to content

Commit

Permalink
Update libs/elasticsearch/langchain_elasticsearch/vectorstores.py
Browse files Browse the repository at this point in the history
Co-authored-by: Erick Friis <[email protected]>
  • Loading branch information
isahers1 and efriis authored Aug 6, 2024
1 parent f3f0b15 commit e31d1db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/elasticsearch/langchain_elasticsearch/vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,9 @@ class ElasticsearchStore(VectorStore):
from langchain_openai import OpenAIEmbeddings
vector_store = ElasticsearchStore(
"langchain-demo", embedding=OpenAIEmbeddings(), es_url="http://localhost:9200"
index_name="langchain-demo",
embedding=OpenAIEmbeddings(),
es_url="http://localhost:9200",
)
If you want to use a cloud hosted Elasticsearch instance, you can pass in the
Expand Down

0 comments on commit e31d1db

Please sign in to comment.