JevMade hello@JevMade.com
← Back to guides

JevMade field notes / Technical guide

Improve the order of document search results with Jev

LlamaIndex helps applications search documents. This add-on lets Jev put promising passages first or select from search tools the application already provides.

Original by WiktorB2004Retrieval

Listen to this guide

JevMade’s plain-English explanation

0:00 /

AI narration

Credits and license

“LlamaIndex + TypeSafe Jev” by WiktorB2004. Read the original source.

This expanded guide is an AI-narrated adaptation of the source’s essential explanation, examples and caveats, not a word-for-word reading. The synthetic voice does not imitate the author or imply their endorsement.

License: MIT

MIT License

Copyright (c) 2026 WiktorB2004

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Our summary

LlamaIndex helps software search a collection of documents. This connection gives Jev two jobs: judge how well already-found passages answer a question, or choose which prepared search tool should handle it. Neither job asks Jev to create a new tool or document.

For ordering results, the program asks Jev to rate passages on four described levels of usefulness. For tool selection, it compares written tool descriptions and chooses one or several. The application supplies the collection, available tools, and question being answered.

Reordering cannot recover a passage the first search missed. The documented failure responses also differ: result ordering keeps the old order, while tool selection reports an error unless a default was chosen. Check these rules before relying on the connection in a real service.

Key takeaways

  1. Reordering only changes results already found.
  2. Tool selection is limited to the tools supplied.
  3. Choose what should happen when either kind of request fails.

Performance and cost figures are reported by the project authors. JevMade did not repeat the benchmark or run the examples.

GitHub README · Source reviewed

Read the original guide Opens the author’s site in a new tab.