top | item 40035563

(no title)

Prosammer | 1 year ago

uh yeah it works out of the box, this is how most RAG systems are designed, just look at pgvector for example.

discuss

order

machinelearning|1 year ago

Nope that’s not how most rag systems work today. I looked at pgvector and couldn’t find anything similar.

Do you have a link? Or maybe you misunderstood what I was taking about

Prosammer|1 year ago

Sorry for the late response. I must be misunderstanding your comment. I read your comment as "RAG doesn't pre-compute KV for each document, which is inefficient". With RAG, you convert your text into vectors and then store them in a DB — this is the pre-compute. Then you just need to compute the vector of your query, and search for vector similarity. So it seems to me like RAG doesn't suffer from inefficiency you were saying it suffers from.