Open suma-sai-paluri opened 10 months ago
Have you tried changing this line?
To:
top = 10 or some other number?
In terms of dynamically deciding search results based on query, you'd need to change it in that function. I'm not sure what criteria you're using it for changing it, but you could try changing the function call to have a second parameter for number of sources, and then modify the query prompt few shots to demonstrate when it'd call different numbers of sources:
Hi @pamelafox I have tried making the changes in the following line of code: top = overrides.get("top", 3) but the changes are not being reflected. Do you think I should change else where , as of now I am able to control the number of document from the visual interface of the application only. In the case of dynamically deciding the search results, I am still trying to figure it out. If you have any repos that are using functions or any of these properties would be of great help. Thanks in advance
any update on this issue ?
Ah, sorry! You actually need to change it in the frontend, in Chat.tsx:
That's because the frontend sends top to the backend here:
If you removed that line above, then the modification to the Python code should work. But assuming you're keeping "Developer settings" around in the frontend, you should change the default there. Sorry for the confusion!
Minimal steps to reproduce
Mention any other details that might be useful