rag_api
rag_api copied to clipboard
feat: Pinecone Vector Database
Added Pinecone vector database support. To setup (also in readme) set VECTOR_DB_TYPE=pinecone and PINECONE_API_KEY=<api key>
Tested with Pinecone, openai text-embedding-3-small
- Embedding multiple text files
- Getting all ids for multiple files
- Deleting documents, ensuring not in database
- Querying one file, ensuring relevant results to query
- Getting documents according to id
- Querying multiple documents, ensuring all documents are queried
- Change back to Pgvector , to ensure still working
IDs per vector assigned as (file_id)_# . Using a prefix file_id with numbering 0,1,2,.... Should not affect naming file_id able to include '_' in file_id such that read my_file_0