langchain-ai / langchain-weaviate

MIT License
31 stars 13 forks source link

Documention on Weaviate does not discuss saving and reloading later. Getting index_name/text_key errors when i test. #197

Open heyjohnlim opened 1 month ago

heyjohnlim commented 1 month ago

The weaviate documentation does not explain how to save a database with an index_name nor load an existing vector database and query it. It assumes that we are just using from_documents or from_text.

Also when i was trying to load an existing vector database, i got errors saying index_name and text_key were required parameters to WeaviateVectorStore

Reference: https://python.langchain.com/v0.2/docs/integrations/vectorstores/weaviate/

Thanks again!

hsm207 commented 1 month ago

It seems that based on issue https://github.com/langchain-ai/langchain/issues/11471, the vector store interface does not specify a standard way to reuse an index and it is up to the implementation to define it.

@efriis can you confirm if this is true?

efriis commented 1 month ago

the parameters are integration-specific (e.g. weaviate has different parameters required to connect vs. chroma), and I would recommend adding documentation on how to connect to an existing store since it's not there yet! Maybe add it to the "connecting to weaviate" section?

Good issue!