Supporting RAG with Elasticsearch / OpenSearch #2178
Replies: 2 comments 2 replies
-
It's possible to still provide "knowledge bases" or "data sets" for a collection of vectors that is centrally managed and I plan to provide that with the current implementation.
Depends on your level of expertise with python. I can imagine it working well and not too difficult but will be involved in at least testing the whole setupL https://python.langchain.com/docs/integrations/vectorstores/elasticsearch Fortunately, elasticsearch looks to be compatible with the general approach I use which is similar to LangChain's implementation of the Indexing API: https://python.langchain.com/docs/modules/data_connection/indexing#requirements
No, currently only PGVector is supported wholesale.
This would be somewhat involved but not difficult as you would need to sync up with the mongo database as well for the intended, implemented design. Alternative to all this, you can just inject RAG at any point of the completion process, before the actual API call to the AI service, hacking in your own API, especially if you are more concerned about "general" knowledge and not selecting files. Plugin is also an option. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the discussion. I may also look into meilisearch integration since we already include it in the project: https://python.langchain.com/docs/integrations/vectorstores/meilisearch |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Given that I have a existing OpenSearch cluster with all my knowledge base data in it and with proper embeddings.
So basically I want that LibreChat accesses the data from OpenSearch (e.g. using Hybrid Search).
From what I saw at https://github.com/danny-avila/rag_api, the current RAG implementation is focusing on user provided documents, that will be used in the chat instead of relying on a centrally managed & externally provided vector database for RAG use case.
So my questions are:
Beta Was this translation helpful? Give feedback.
All reactions