Find answers from the community

Updated 12 months ago

from llama_index.vector_stores.

At a glance
from llama_index.vector_stores.elasticsearch import ElasticsearchStore
from llama_index.core import VectorStoreIndex, StorageContext

from llama_index.core.vector_stores import ExactMatchFilter, MetadataFilters

Initialize the vector store

vector_store = ElasticsearchStore(
index_name="",
es_url=es_cloud_id,
es_user=es_user,
es_password=es_password,
verify_certs=False,
) for this code, im getting this error:
vector_store = ElasticsearchStore(
30 index_name="",
31 es_url=es_cloud_id,
32 es_user=es_user,
33 es_password=es_password,
34 verify_certs=False,
35
36 )
38 # Create a storage context
39 storage_context = StorageContext.from_defaults(vector_store=vector_store)

TypeError: ElasticsearchStore.init() got an unexpected keyword argument 'verify_certs'
L
n
10 comments
Right, as the error says verify_certs is not a valid kwarg
I don't see this in the source code
im not able to add ca_certs paramter to send ssl certificate and im not able to make the certificates as false too, like how we can do in elastic search client.
elastic search client allows verify_certs and ca_certs as paramters but elastic search store doesnt allow it. How can i send these paramters?
Probably pass in the es_client directly
I tried that as well.. es_client was not working with query method due to asynchronous issue- elastic search class used for es client was not asynchronous
haha right. I guess this needs a PR to fix then
sure i will open pr
Add a reply
Sign up and join the conversation on Discord