danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
19.33k stars 3.23k forks source link

Enhancement: More than 5 results from azure search index as a tool #4764

Closed mansiibm closed 5 days ago

mansiibm commented 5 days ago

What features would you like to see added?

Hello, the azure search index is able to provide at least 50 matches to the query in the azure portal but when added as a tool to the plugin then it does not cross more than 5 suggestions, rather it repeats itself with the answer even after being prompted to return a new result. I believe it is happening due to this configuration-

class AzureAISearch extends Tool { // Constants for default values static DEFAULT_API_VERSION = '2023-11-01'; static DEFAULT_QUERY_TYPE = 'simple'; static DEFAULT_TOP = 5;

Request is to kindly make this field configurable so that more than top 5 results are captured to the query for the users.

More details

Due to the default_top parameter much of the data is being excluded from the answer thereby providing non-sufficient information to the user.

Thanks in advance!

Which components are impacted by your request?

Other- The user may not get the complete information.

Pictures

image image

Code of Conduct