cognee/cognee-frontend/src
Vasilije bf1970b679
feat: Add top_k Input Control to Search UI for Adjustable Graph Exploration Depth (#1202)
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
2025-08-19 16:22:46 +02:00
..
app Fix canvas resize issues in graph visualization 2025-07-30 02:16:09 +05:30
modules feat: add top_k-input and send it to backend 2025-08-15 14:17:17 +05:30
ui feat: Add top_k Input Control to Search UI for Adjustable Graph Exploration Depth (#1202) 2025-08-19 16:22:46 +02:00
utils fix: UI (#1134) 2025-07-23 15:35:21 +02:00
middleware.ts feat: migrate new UI to cognee (#966) 2025-06-18 20:56:44 +02:00