cognee/cognee-frontend/src/ui/Partials
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
..
Footer feat: websockets for pipeline update streaming (#851) 2025-06-11 20:29:26 +02:00
IFrameView feat: implement cognee ui redesign 2024-05-26 23:49:50 +02:00
SearchView feat: add top_k-input and send it to backend 2025-08-15 14:17:17 +05:30
SettingsModal move to gpt5 2025-08-17 12:19:34 +02:00
SignInForm feat: migrate new UI to cognee (#966) 2025-06-18 20:56:44 +02:00
FeedbackForm.tsx feat: migrate new UI to cognee (#966) 2025-06-18 20:56:44 +02:00
index.ts feat: migrate new UI to cognee (#966) 2025-06-18 20:56:44 +02:00