Fixes #1194 Summary: This PR introduces a new "Max results" (top_k) input control to the search UI, allowing users to specify how many results to return for each search. This directly controls the graph exploration depth, enabling both focused and broad explorations. Changes UI Enhancement: Added a number input labeled "Max results" (default: 10, min: 1, max: 100) to the search form, with validation and a tooltip explaining its impact. Placed the input between the search type dropdown and the submit button in SearchView.tsx State Management: Managed top_k value in component state. Included top_k in the form submission. API Integration: Updated useChat.ts to accept and send the top_k parameter in API calls to the backend. @Vasilije1990 |
||
|---|---|---|
| .. | ||
| app | ||
| modules | ||
| ui | ||
| utils | ||
| middleware.ts | ||