Skip to main content
The Search page (route /search, under General in the sidebar) is a chat with your memory. Ask a question in plain language and Cognee answers from the knowledge graphs of the datasets you choose, with the sources it used.
Search uses token credits under usage-based billing. If your workspace has no active subscription, the box reads Subscribe to use search…; if credits run out, the question is refused and a dialog links to Billing. See Running out of credit.
Search page

A Search chat: Cognee answers from two datasets and names them, with the sources it used

Ask a question

Search answers only from what is in your datasets. It doesn’t know your lists, accounts or past chats elsewhere until you add them: upload a file or paste text on Datasets, or connect a source on Integrations, and ask once processing has finished. A new chat opens with What are you looking for today? and up to three suggestions: your own recent questions first, then What’s in {dataset}? for your datasets, then general starters. Click one to send it. Type in the box (Ask a question about your data…) and press Enter to send; Shift+Enter adds a new line. The answer streams in as it is written. While it is pending, it shows its stage: Searching your data… during retrieval, then Writing…. You can leave the page while an answer is coming; it keeps arriving, and the chat is open where you left it when you come back. Under the box, Earn points shows the points a question earns, until today’s cap is reached (Today’s points earned). See Rewards and Points.

Choose datasets

The scope picker next to the box decides which datasets the question runs against:
  • All datasets (the default): every dataset you can read.
  • Any number of datasets: tick them one by one. Picking every dataset is the same as All datasets.
With several datasets, Cognee retrieves from all of them and writes one answer, with one list of sources. If nothing matches, the answer says where it looked, for example No results found in sales-notes, product-docs. The scope belongs to the chat: each chat remembers its own datasets. A dataset deleted since is dropped from the scope automatically.

Read the answer

Each answer can carry:
  • Reasoning completed: a folded row above the answer with the steps that led to it.
  • {n} sources: hover or click to see the passages the answer was built from. Click a source to open the Graph; tick its dataset under Datasets if it is not shown.
  • Copy answer.
  • Helpful and Not helpful: rate the answer. Not helpful asks what was off: Missed something, Wrong sources, Too long or Not what I meant. The rating is saved with the answer and weighs what later answers favour.

Search type

The page has no search-type picker: Cognee chooses how to retrieve for each question (usually HYBRID_COMPLETION, which combines semantic and graph retrieval). To choose a search type yourself, or to add dataset summaries to the context, use the API. See Choosing a search type. Questions about code work differently. A GitHub repository connected through the GitHub data source lands in a dataset named github_<account> and is searched through its code graph, not by a model. When every dataset in the scope is a repository, the chat becomes a code lookup: the box reads Search a function, class or file name… and suggestions include Show the architecture, List the API routes and List the modules. Ask for the architecture, a kind of thing (List the API routes), a file, or a symbol name. If the scope mixes repositories with other datasets, the repositories are not searched, and a note says so: Code in {repository} is not searched together with other datasets. Choose only repositories to ask about code. A chat keeps its type. Changing the scope to the other type starts a new chat. Code chats are kept only in this browser.

Chats

The Chats panel on the left lists your past chats, grouped as Today, Yesterday, Previous 7 days, Previous 30 days and Older. Use Show chats / Hide chats to open or fold it, and New chat to start over.
  • Filter: show only chats asked against certain datasets.
  • Sort: Newest first, Oldest first or A–Z.
The panel lists your 20 most recent chats. Each chat is named after its first question. To rename it, double-click its name above the thread, or use Rename in the row’s menu (up to 120 characters). Reset name goes back to the first question. To delete a chat, choose Delete in its row menu and confirm Delete this chat? The chat and its answers are deleted and can’t be restored. Chats are stored in your workspace as sessions with the search-ui- prefix, so they survive a reload and other devices. A chat is kept for one year after its last message. See Session retention.

How it works

A question calls POST /api/v1/recall/combined with query, the selected dataset_ids (none for all datasets), the chat’s session_id, and stream: true, so the answer arrives as server-sent events. See Search & Recall for the API. A code lookup calls POST /api/v1/search with a structured code query instead. It does not stream and is not recorded as a session. Ratings are saved with PUT /api/v1/sessions/{session_id}/qa/{qa_id}/feedback.