byaldi icon indicating copy to clipboard operation
byaldi copied to clipboard

How to store Colqwen model's embeddings in PG vector

Open hrishit123 opened this issue 8 months ago • 3 comments

Hi, Is it necessary for byaldi to always create a new .byaldi folder and store the embeddings in a folder? Can we store the embeddings in a traditional vector database like pg-vector instead of storing them in the same file? If it's possible, please let me know.

hrishit123 avatar Apr 15 '25 03:04 hrishit123

same question

fault-segment avatar Apr 17 '25 10:04 fault-segment

You can store the vectors in a vector database like postgres, but it wouldn't be efficient for querying due to the late interaction mechanism that we use with multi-modal RAG. Better to use vespa.ai for multi-vector retrieval as is the case w multi-modal retrieval

nihirv avatar Apr 20 '25 14:04 nihirv

There is an example here : https://github.com/pgvector/pgvector-python/blob/master/examples/colpali/exact.py

octalpixel avatar May 10 '25 17:05 octalpixel