-
Notifications
You must be signed in to change notification settings - Fork 8
Labels
completedThis item is complete and has been releasedThis item is complete and has been released
Description
Feature Description
When running the search tool, I would expect the result set to be reasonably small, maybe around 10 - 20 records. Having a large number of records returned is not helpful for the LLM to process and decipher.. Large context does not always mean a good result and is wasteful of LLM tokens.
Problem Statement
Lunr.js only ever returns ALL the results. While this is fast, it returns over 100+ results, which is excessive. Some searches return 170 results!!
The MCP Search tool should restrict the resultant payload to fewer records - maybe around 10?
The search itself is all in-memory and fast. Lunr does not appear to have a way to reduce the returned results from a query.
Metadata
Metadata
Assignees
Labels
completedThis item is complete and has been releasedThis item is complete and has been released