|
|
|
|
|
by martythemaniak
1002 days ago
|
|
> Isn't that itself the province of an LLM? It is! The steps are: 1. Take a bunch of text, run it through an LLM in embedding mode. The LLM turns the text into a vector. If the text is longer than the LLM context window, chunk it. 2. Store the vector in a vector DB. 3. Use the LLM to generate a vector of your question. 4. Query the vectordb for all similar vectors (that fit in the context window) 5. Get the text from all those vectors. Concatenate the text with the question from step 3. 6. Step 5 is your prompt. The LLM can now answer your question with a collection of similar/relevant text already provided to the LLM in the context window along with your question. |
|