Reputation: 1
I am using llama-index to retrieve information from legal documents. (model: llama3 run with Ollama)
My use case does not require maintaining a chat history, so I am using a standalone QueryEngine for each query.
Even if I don't use a chat history, I’ve observed a pattern where the model's response time is significantly shorter when a question similar to the previous one is asked. For example:
By "similar," I mean the questions have the same meaning and expect the same answer, though they might be worded differently.
The pattern suggests that the model somehow "remembers" the previous query and uses this information to speed up the response for similar questions. However, this effect seems limited to the immediately preceding query (it does not apply to questions asked before that).
My Questions:
I would appreciate any insight into how llama-index handles query processing and if there are any optimizations I can apply to benefit from faster response times.
Upvotes: 0
Views: 49