Turn documents into memory your AI can recall
Cognee turns documents into connected knowledge that you and your AI agents can recall. Add documents to a dataset, ask questions and check the supporting sources, or let your AI agents recall the same knowledge through MCP. On Olares, your documents and the knowledge built from them stay on your own device. Answer generation uses the default chat model configured in Olares Router.
Learning objectives
- Create a dataset and add project documents to it.
- Ask questions in Cognee and check the supporting sources and knowledge graph.
- Connect Lares or Hermes Agent to Cognee through MCP, then ask questions in a new conversation.
Prerequisites
- Olares 1.12.7 or later.
- Olares Router with a callable model assigned to
default-chat.
Install Cognee
- Open Market and search for "Cognee".
- Click Get, then Install. When prompted, set an initial password with at least 12 characters.
- When the installation finishes, open Cognee from Launchpad.
- Sign in with the built-in initial account
default_user@example.comand the password you set during installation.
Create a project dataset
Create a dataset and add your project documents to it. One dataset can hold one or many documents, and a search covers every document in it, so keep related documents together. You can paste text or upload a file. This guide uses the two sample documents below.
Open Datasets and click Create dataset. If you already have a dataset, click New dataset.
Name the dataset
project_rehearsal. Use letters, numbers, and underscores in the name.Select the new dataset.
Choose Paste text and add each document below as a separate item. Wait until the first item shows Ready before adding the second.
Meeting notes
textProject Harbor: Migration Rehearsal Meeting Notes This document contains fictional test data. All people, dates, and project details are invented for a documentation walkthrough. Project: Harbor document migration Meeting date: November 4, 2026 Rehearsal date: November 12, 2026, at 10:00 AM, Asia/Shanghai Maya Chen coordinates the migration rehearsal. She schedules the rehearsal and collects the validation results. Before handoff, the team must complete the rehearsal, confirm that the source and destination file counts match, verify the SHA-256 checksums, and attach the validation report to the handoff record. Omar Lee is the project owner. Handoff requires his approval after he reviews the validation report. The migration runbook identifies the escalation contact for checksum mismatches.Migration validation runbook
textProject Harbor: Migration Validation Runbook This document contains fictional test data. All people and project details are invented for a documentation walkthrough. Scope: Validation for the Harbor document migration rehearsal. File validation compares the source and destination file counts and SHA-256 checksums. The validation report records the results and any unresolved differences. Noah Zhou is the data integrity lead and the escalation contact when migration checksums do not match. The report sent to Noah must identify the affected files and include the expected and actual checksums. A checksum mismatch blocks handoff until it has been investigated, resolved, and checked again. Any remaining mismatch must be recorded as unresolved in the validation report. Maya Chen coordinates the rehearsal. Omar Lee, the project owner, approves handoff after reviewing the completed validation report.First processing job
The first document may take longer to process because Cognee needs to download its embedding model. This small model runs on CPU inside Cognee. Later processing jobs reuse the saved model cache. Wait for the current import to finish before submitting the same document again.
Query a project dataset
Ask a question about your dataset, then check the answer, evidence, and graph against the original documents.
Open Search, select
project_rehearsalin the dataset selector above the question input, and then ask:textWho coordinates the rehearsal, what must be complete before handoff, and who should we contact if migration checksums do not match? Distinguish the meeting notes from the runbook in your sources.Verify the answer and compare the supporting text in Evidence with the two original documents. If an excerpt is truncated, do not treat it as a complete source check.
In this example, the answer identifies Maya Chen as the coordinator, explains the validation and approval required before handoff, and names Noah Zhou as the checksum-mismatch contact.
Chat model connection
If answer generation fails, make sure a default chat model is assigned on the Default models page and shows callable status. See Olares Router.
Open Graph and select
project_rehearsalin the DATASET selector in the upper-left corner. Layouts and generated relationships can vary with the model.
Query in Lares or Hermes Agent
Connect Lares or Hermes Agent to Cognee's MCP server so you can search your datasets in a conversation without pasting the documents again.
Get Cognee's MCP address
Copy the MCP endpoint URL from Olares Settings, then add /mcp to it.
- Open Olares Settings, go to Applications > Cognee > Cognee MCP, and then copy its endpoint URL. For example,
https://ba2717462.laresprime.olares.com. - Add
/mcpto the end of the copied URL. This is the MCP URL for the assistant connections below.
Default access without a key
By default, no client API key is needed. The MCP server uses the built-in initial account, default_user@example.com, so assistants can access the knowledge you added with that account. Connected assistants share that account's permissions. The official tools can add and delete knowledge as well as retrieve it. Review tool requests before approving them.
Connect Lares
Register Cognee as an MCP server in Lares, then ask a question that uses the recall tool.
Open Lares, open its settings, select MCP, then click Add server. Enter:
Field Value Server name cogneeTransport Streamable HTTP MCP URL The MCP URL obtained above, including /mcpHeaders Keep the default empty JSON object, {}.Click Save. Lares connects and loads the official tools, including
recallandremember.Start a new conversation and send the prompt below. Approve the
recalltool when prompted.textUse Cognee recall to search dataset project_rehearsal for who coordinates the rehearsal and who to contact when migration checksums do not match. Set include_references to true.The prompt specifies three things:
Part Required What it does recalltoolYes Searches your stored knowledge in Cognee. Dataset name Yes recallsearches one dataset at a time. Use the exact name shown in Cognee.include_referencesNo Also return the source text behind the answer. Set to truehere so you can compare it with the original in the next step. Omit it if you only need the answer.Compare the answer and the returned source text with the original documents you added.
Connect Hermes Agent
Open Files and go to Data > hermesagent > home.
Double-click
config.yamland click the edit icon in the upper-right corner.Add the following connection under
mcp_servers, replacing any existingcogneeentry and keeping other entries unchanged. Replace<mcp-url>with the MCP URL obtained above. This example enables only therecalltool.yamlmcp_servers: cognee: url: <mcp-url> tools: include: - recallSave the file changes.
Open Hermes CLI from Launchpad.
If a Hermes Agent session is open, enter
/exitto return to the shell.Run
hermesto start a new agent session and load the configuration. Use the same recall prompt as Lares.Compare the answer and the returned source text with the original documents you added.
Learn more
- Olares Router: Manage model routes, including the
default-chatendpoint. - Cognee documentation: Official reference for datasets, graphs, and the Cognee API.