Find answers from the community

Updated 3 months ago

I have a potential use case where I am

I have a potential use case where I am augmenting ChatGPT with strategies. Just a long list of strategies with a title, associated keywords, description & steps to implement. Right now this is in a simple vector file but likely needs to be some kind of JSON setup.

Question: How do I accomplish retrieving 3 of these strategies to be presented to the user in a single prompt? Right now no matter my prompt, it only returns 1 strategy. Is there some kind of recursive function I need to look at?
L
2 comments
try setting the top k

response = index.query("find the strats", similarity_top_k=3, response_mode="compact")
the response mode will just reduce the LLM calls by stuffing as much text into one LLM call as possible
Add a reply
Sign up and join the conversation on Discord