| Name | Type | Description |
|---|---|---|
index_name* | str | Name of the Elasticsearch index to create. |
bes_url* | str | URL of the Baidu Elasticsearch instance to connect to. |
user | Optional[str] | Default: NoneUsername to use when connecting to Elasticsearch. |
password | Optional[str] | Default: None |
More information can be obtained from* | unknown | |
https* | unknown |
Baidu Elasticsearch vector store.
Example:
.. code-block:: python
from langchain_community.vectorstores import BESVectorStore from langchain_community.embeddings.openai import OpenAIEmbeddings
embeddings = OpenAIEmbeddings() vectorstore = BESVectorStore( embedding=OpenAIEmbeddings(), index_name="langchain-demo", bes_url="http://localhost:9200" )
Password to use when connecting to Elasticsearch.
//cloud.baidu.com/doc/BES/s/8llyn0hh4