Find answers from the community

Updated 4 months ago

Hi Is there some way to get multiple

At a glance

The community member is asking if there is a way to get multiple results from a query with llama_index, as the current engine.query() function returns a single response string. They are interested in getting the top k responses, where each entry in k is a potential result of the query.

In the comments, another community member suggests that the community member could try setting the temperature a little higher and querying a few times, which could be an interesting feature to add to llama_index. However, there is no explicitly marked answer to the original question.

Hi, Is there some way to get multiple results from a query with llama_index? Currently, engine.query() returns a single response string. What if I need the top k responses where each entry in k is a potential result of the query.
L
1 comment
hmm, not at the moment. You'd have maybe set the temperature a little high and query a few times?

Would be an interesting feature to add though!
Add a reply
Sign up and join the conversation on Discord