Hi, I am trying to figure out what is the best way to add the option to connect to an existing vector database and use RAG with that database. It would work like this:
- The user would add the credentials and embedding model of the database in a configuration, and maybe other parameters like the number of documents to retrieve. This configuration would be saved in the LibreChat database.
- Once that's configured, LibreChat use the provided information to retrieve the information and add it to the prompt
For Step 2, I can probably use the existing RAG code but without requiring filenames. I would also need to add the code for getting the credentials
For Step 1, I want need to add popup configuration in the header options, similar to the presets configuration
Need Assistance:
- I need help figuring out what parts of the code I need to change to add these feature, so it would be great if you could help me locate the files and components that I must change.
- I would also appreciate any recommendations or comments about how to add this feature to LibreChat.