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
Do you have a link? Or maybe you misunderstood what I was taking about
The current workflow is to use the embedding to retrieve documents then dump the text corresponding to the embedding into the LLM context for generation.
Often, the embedding is from a different model from the LLM and it is not compatible with the generation part.
So yea, RAG does not pre-compute the KV for each document.