cognee-recall
Skill31k starsChanged 2 months agoApache-2.0View on GitHub
Use when querying cognee memory with recall() (or search()) — picking a search type, understanding auto-routing, scoping to datasets, node sets or sessions, getting context or citations instead of an answer, reading the results, or debugging empty or unexpected results.
Trending
More talk lately.about the whole repository
Who's talking about topoteretes/cognee
- A Hacker News story“Show HN: Cognee – Open-Source AI Memory Layer That Remembers Context”Hacker News · Jun 3, 2025 · 9 points
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 4,853 (+414) 🗒 Python Memory for AI Agents …”Bluesky · Jun 9, 2025 · 7 likes
- A Hacker News story“Show HN: Auto-optimizing deterministic LLM outputs using knowledge graphs”Hacker News · Apr 22, 2024 · 7 points
- A Hacker News story“Show HN: Cognee – Turn RAG and GraphRAG into custom dynamic semantic memory”Hacker News · Feb 13, 2025 · 6 points
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 28,581 (+303) 🗒 Python Cognee is the …”Bluesky · Jul 20, 2026 · 5 likes
The biggest 5 of 70 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 70
Talked about on GitHub, Bluesky and Hacker News (70 times).
On GitHub · 50
- Apr 10, 2026[Add App]Cognee — beclab/apps2 reactions
- Nov 15, 2025[Request] Implement Long-term Cross-session Memory through Cognee Integration — lobehub/lobehub2 reactions · 6 comments
- Jun 28, 2026Epic: Cross-project knowledge storage — queryable KB over the board — joelfuller2016/KanbanFlow-v21 reaction · 4 comments
- Nov 20, 2026[spike] Cognee GitHub ingestion vs file memory, Phase 0 measurement only — anchapin/plan-coder0 reactions · 1 comment
- Nov 16, 2026مرشحون جدد للدليل (2026-11-16) — mgrd281/Skill-0 reactions
45 more on GitHub
- Nov 3, 2026feat(connector): add Gitee data-source connector (cognee#6364) — topoteretes/cognee-community0 reactions
- Nov 3, 2026feat(connector): add Atlassian Jira project issues and agile tracking data-source connector (cognee#6466) — topoteretes/cognee-community0 reactions
- Nov 3, 2026feat(connector): add Zendesk support tickets and conversations data-source connector (cognee#6465) — topoteretes/cognee-community0 reactions
- Nov 3, 2026feat(connector): add Trello boards, lists, and cards data-source connector (cognee#6471) — topoteretes/cognee-community0 reactions
- Nov 3, 2026feat(connector): add AtCoder competitive programming data-source connector (cognee#6406) — topoteretes/cognee-community0 reactions
- Nov 3, 2026chore(deps): bump cognee from 0.4.1 to 1.5.0 in /ai-memory-hackathon-2026-02-07 — topoteretes/cognee-hackathons0 reactions
- Oct 30, 2026Bump the pip group across 2 directories with 2 updates — MendyData/agents-towards-production0 reactions
- Oct 29, 2026memory-lab: Cognee — развернуть на PVE и проверить — TeaShaman-cyber/theseus-local-lab0 reactions · 38 comments
- Oct 28, 2026feat(connector): add Traefik reverse proxy routing and middleware topology connector — topoteretes/cognee-community0 reactions
- Oct 26, 2026chore(deps-dev): bump cognee from 1.1.2 to 1.6.5 — TSchonleber/brainctl0 reactions
- Oct 26, 2026feat(connector): add Habitica gamified habits and task management connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add lemlist outreach and campaigns REST connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add Jotform form builder and submissions REST connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add npm package registry public REST API connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 25, 2026feat(connector): add WooCommerce store catalog and orders connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add Hardcover books and reading journals GraphQL connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add Bitrix24 CRM inbound webhook connector — topoteretes/cognee-community0 reactions
- Oct 25, 2026feat(connector): add BigCommerce catalog and orders connector — topoteretes/cognee-community0 reactions
- Oct 23, 2026MEMSYNC — Umbrella: governed synchronization of persistent memories across Cogentia agents — JeanHuguesRobert/cogentia0 reactions
- Oct 22, 2026Memoria que el agente escribe durante la sesión — e2its/myrmion-graphrag0 reactions
- Oct 22, 2026Olvidar y borrar como herramienta — e2its/myrmion-graphrag0 reactions
- Oct 20, 2026fix(storage): explain embedding mismatch recovery — volcengine/OpenViking0 reactions
- Oct 15, 2026[P0][Comparator][Cognee] Execute first local-model external same-harness comparison — MythologIQ-Labs-LLC/agent-memory0 reactions · 3 comments
- Oct 14, 2026feat: add Read.ai connector with OAuth and scoped sync — topoteretes/cognee-community0 reactions
- Oct 13, 2026[Benchmark][Comparators] Expand real same-harness market cohort beyond Mem0, with per-profile peer coverage — MythologIQ-Labs-LLC/agent-memorysays it tested it0 reactions · 9 comments
- Oct 9, 2026feat(linear): implement linear integration - #4699 — topoteretes/cognee-community0 reactions
- Oct 9, 2026feat(connector): add Airtable data-source connector — topoteretes/cognee-community0 reactions
- Oct 8, 2026feat(connector): add Snowflake data-source connector — topoteretes/cognee-community0 reactions · 2 comments
- Oct 8, 2026feat(connector): add Databricks workspace data connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 8, 2026feat(connector): add Outline Knowledge Base data-source connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 8, 2026feat(connector): add Appwrite data-source connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 8, 2026feat(connector): add Ghost CMS data-source connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 5, 2026feat(connector): add tl;dv meeting data-source connector — topoteretes/cognee-community0 reactions · 1 comment
- Oct 5, 2026feat(connector): add LogRocket MCP data source — topoteretes/cognee-community0 reactions · 1 comment
- Oct 3, 2026Bump the pip group across 2 directories with 2 updates — herominutes/agents-towards-production0 reactions
- Sep 27, 2026[assessment] Competitor assessment 3×7: KIP, mem0, ruflo, MemPalace, [redacted vendor], cognee, agentmemory, [redacted vendor] Agent Memory, Haystack vs ai-memory release/v1.0.0 (level, value, licensing) — alphaonedev/ai-memory-mcp0 reactions · 11 comments
- Sep 24, 2026Reality probe: Cognee #5161 passes local prune tests but the end-to-end claim is contradicted — hippoley/CounterProof0 reactions
- Sep 20, 2026Freshness: cognee v1.5.4 -> v1.6.5 — thoroc/context-radar0 reactions
- Sep 15, 2026[GHSA-fcch-9ph8-q3p4] Cognee thru v0.4.0 contains a critical remote code... — github/advisory-database0 reactions
- Sep 4, 2026Bump cognee from 1.0.9 to 1.5.0 in /testbed/dmas/memory — rustic-ai/dmas-memory0 reactions
- Sep 3, 2026chore(deps): bump cognee from 1.1.0 to 1.5.0 in /cognee-mcp — monk-io/cognee0 reactions
- Sep 3, 2026chore(deps): bump the pip group across 2 directories with 1 update — CorInfinitum/cognee0 reactions
- Sep 3, 2026chore(deps): bump cognee from 0.2.0 to 1.5.0 in /evals/src — AhindraD/cognee0 reactions
- Sep 3, 2026chore(deps): bump cognee from 0.2.0 to 1.5.0 in /evals/src — monk-io/cognee0 reactions
- Sep 3, 2026chore(deps): bump cognee from 0.2.0 to 1.5.0 in the pip group across 1 directory — PhilippMT/cognee0 reactions
On Bluesky · 15
- Jun 9, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 4,853 (+414) 🗒 Python Memory for AI Agents in 5 lines of code — @github-trending.bsky.social7 likes and reposts
- Jul 20, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 28,581 (+303) 🗒 Python Cognee is the open-source AI memory platform for… — @github-trending.bsky.social5 likes and reposts · 1 reply
- Mar 15, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 topoteretes / cognee ⭐ 13,644 (+168) 🗒 Python Knowledge Engine for AI Agent Memory in 6 lines of code — @github-trending.bsky.social5 likes and reposts
- Jun 3, 2025Explore the research: arxiv.org/abs/2505.24478 Our GitHub: github.com/topoteretes/... — @vasilijee.bsky.social3 likes and reposts
- Jan 17, 2025What will you build with cognee? Try it out: github.com/topoteretes/... — @vasilijee.bsky.social2 likes and reposts · 1 reply
10 more on Bluesky
- Jan 16, 2025Check it out and let us know what you’ll build 🛠️ github.com/topoteretes/... github.com/milvus-io/mi... @cognee.bsky.social… — @vasilijee.bsky.social2 likes and reposts
- Jul 20, 2026今日のGitHubトレンド topoteretes/cognee CogneeはAIエージェントにセッションをまたいだ永続的な長期記憶を提供するためのオープンソースAIメモリプラットフォームです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 27, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 topoteretes / cognee ⭐ 23,567 (+729) 🗒 Python Cognee is the open-source AI memory platform for… — @github-trending.bsky.social1 likes and repost · 1 reply
- Jun 15, 2026Cognee transforma datos no estructurados en un grafo de conocimiento persistente. plugins para OpenClaw, Claude Code y Hermes Agent.… — @samuel-ferrero.bsky.social1 likes and repost
- Apr 16, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 topoteretes / cognee ⭐ 15,589 (+156) 🗒 Python Knowledge Engine for AI Agent Memory in 6 lines of code — @github-trending.bsky.social1 likes and repost
- Jun 19, 2025cognee Memory for AI Agents in 5 lines of code. https://github.com/topoteretes/cognee — @pythonhub.dev1 likes and repost · 1 reply
- Jun 8, 2025今日のGitHubトレンド topoteretes/cognee このリポジトリは、AIエージェント向けの動的なメモリ機能を提供することを目的に作成されました。 従来のRAG(Retrieval Augmented… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 6, 2025今日のGitHubトレンド topoteretes/cognee このリポジトリは、AIエージェントにメモリ機能を持たせるためのライブラリです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jan 21, 2025and try @cognee.bsky.social with LanceDB in our repo: github.com/topoteretes/... — @vasilijee.bsky.social1 likes and repost
- Jun 21, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 topoteretes / cognee ⭐ 18,410 (+361) 🗒 Python Cognee is the open-source AI memory platform for… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 5
- Jun 3, 2025Show HN: Cognee – Open-Source AI Memory Layer That Remembers Context9 points · 2 comments
- Apr 22, 2024Show HN: Auto-optimizing deterministic LLM outputs using knowledge graphs7 points
- Feb 13, 2025Show HN: Cognee – Turn RAG and GraphRAG into custom dynamic semantic memory6 points · 1 comment
- Jan 13, 2025Cognee: Reliable LLM Memory for AI Applications and AI Agents2 points
- Feb 6, 2026Memory for AI agents in 6 lines of code1 point
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cognee-cliSkill
- cognee-communitySkill
- cognee-custom-graph-modelsSkill
- cognee-custom-pipelinesSkill
- cognee-dockerSkill
- cognee-forgetSkill
- cognee-improve-sessionsSkill
- cognee-ingestionSkill
- cognee-installSkill
- cognee-integrationsSkill
- cognee-migrationsSkill
- cognee-performanceSkill
- cognee-permissionsSkill
- cognee-serverSkill
- cogneeSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 79
When scope is omitted:
- Very specific: line 119
When a query sounds procedural ("how do I…", "runbook", "steps to…") and exactly one dataset is targeted, recall also runs a small SKILLS …
- Very specific: line 142
Hybrid silently becomes graph completion: when you pass neighborhood_depth or feedback_influence > 0 (including a nonzero …
- Very specific: line 171
Use recall(). Drop to cognee.search() only for agentic parameters (skills, tools, max_iter, node_type) as first-class arguments, raw …
- Very specific: line 203
Write the retriever in cognee/modules/retrieval/ (subclass BaseRetriever or a completion base).
- Very specific: line 205
Add the SearchType member and its search_core_registry entry.
- Very specific: line 206
Add a row to the README table.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Query memory with recall()
recall() is cognee's query API. It picks a search strategy, searches the
graph and (with a session) the session cache, and returns a list of tagged
results.
import cognee
results = await cognee.recall("Where was Einstein born?")
for r in results:
print(r.source, r.text) # e.g. "graph", "Einstein was born in Ulm."Without datasets it searches every dataset the user can read. Pass
datasets=["research"] (names) or dataset_ids=[...] (UUIDs, which win) to
narrow it; that is also faster.
Use it
How the search type is picked
- An explicit
query_type=SearchType.Xalways wins. - Otherwise, with no usable LLM key,
CHUNKS(plain vector search). - Otherwise the router (
auto_route=True, the default). It is two regex rules, first match wins, no LLM call:- the whole query is one
"quoted phrase"→CHUNKS_LEXICAL - mentions coding rules/standards/conventions or code-review guidelines
→
CODING_RULES
- the whole query is one
- Everything else →
HYBRID_COMPLETION.
A routed type (never a pinned one) that the backend rejects, or a routed
CHUNKS_LEXICAL / CODING_RULES that returns nothing, is retried once as
HYBRID_COMPLETION. The router never picks CYPHER.
from cognee import SearchType
await cognee.recall("What changed in v2?", query_type=SearchType.GRAPH_COMPLETION)Search types
The full list is cognee/modules/search/types/SearchType.py; the
type-to-retriever table is cognee/modules/retrieval/README.md.
| Type | LLM? | Use for |
HYBRID_COMPLETION (default) | yes | General questions: document passages plus entity neighbourhoods, then an answer |
GRAPH_COMPLETION | yes | Answers from graph relationships |
GRAPH_COMPLETION_COT, _CONTEXT_EXTENSION, _DECOMPOSITION | yes | Harder multi-hop questions (more LLM calls) |
GRAPH_SUMMARY_COMPLETION | yes | Summarizes the retrieved graph edges at query time (extra LLM call), then answers |
RAG_COMPLETION | yes | Classic chunk RAG |
TRIPLET_COMPLETION | yes | Subject-predicate-object facts (needs triplet embedding) |
TEMPORAL | yes | Time questions; needs data remembered with temporal_cognify=True |
CHUNKS | no | Raw passages by vector similarity |
CHUNKS_LEXICAL | no | Keyword / exact-phrase match |
SUMMARIES | no | Document summaries |
CODE | no | Code-graph operations via code_query={...}; needs scope="code" in recall |
SKILLS | no | Discover skill playbooks; exactly one dataset |
CYPHER | no | Raw Cypher. On by default; ALLOW_CYPHER_QUERY=false disables it. It can write, so only pass user-authored queries deliberately |
NATURAL_LANGUAGE | yes | LLM writes Cypher, then runs it (same flag) |
GRAPH_REPORT | partly | Graph insight report: hubs, cross-set links, suggested questions |
FEELING_LUCKY | yes | An LLM picks the type |
AGENTIC_COMPLETION | yes | Multi-step loop with skills/tools; exactly one dataset. Use search() for its parameters |
Scope: which sources are searched
scope is one of, or a list of: graph, session, session_first,
trace, session_context, all, tools, code. all means graph +
session + trace + session_context; tools and code are never included
implicitly.
When scope is omitted:
| You pass | Sources |
session_id only | Session first; a session hit skips the graph |
session_id + datasets | Session and graph both contribute |
session_id + query_type | Graph only — pinning a type drops the session |
no session_id | Graph only |
Session and trace search is keyword overlap, not embeddings.
Filters and knobs
top_k=15: per dataset, not in total. The default HYBRID caps each lane atmin(top_k, 10); setchunks_top_k/entities_top_k/facts_top_kinretriever_specific_configto go higher.node_name=["AI"](+node_name_filter_operator="OR"|"AND"): restricts graph/chunk/completion types to data remembered with thatnode_set. SUMMARIES, CHUNKS_LEXICAL, GRAPH_REPORT, CYPHER, NATURAL_LANGUAGE, CODE and SKILLS ignore it; CODING_RULES treats it as the rules node-set name.system_prompt/system_prompt_path: change the answering prompt.response_model=MyPydanticModel: structured answer, onr.structured.include_references=True: attach the document chunks that support each graph edge used (needsEDGE_EVIDENCE_ENABLED=true, the default).only_context=True: return what the LLM would have received instead of an answer.r.textis the rendered user prompt,r.system_promptthe system prompt. Pinquery_typewhen you use it.retriever_specific_config={...}: retriever-only options. For the agentic extras (skills,tools,max_iter) andnode_type, callcognee.search()instead, which takes them as parameters.
Reading the results
Each item is a Pydantic model with a source discriminator: graph,
session, trace, session_context, code, tools, skills, or
system. Graph items carry text (always renderable), search_type,
kind, score, dataset_id / dataset_name, metadata, raw, and
structured. A system item is a status
marker, not data (see "memory warming up" below).
When a query sounds procedural ("how do I…", "runbook", "steps to…") and
exactly one dataset is targeted, recall also runs a small SKILLS lookup
and appends hits with source="skills". Disable with
SKILL_GATE_ENABLED=false.
Pitfalls
- Permissions change what you get back. With no
datasets, recall searches only datasets the user can read, so a user without grants gets onesource="system"memory_warming_upmarker from a graph-only recall (withonly_context=TrueorRECALL_WARMUP_SHORTCIRCUIT=falseit gets[]; with session sources included only the graph lane is empty, and session and trace hits still come back). Asking for a dataset id the user cannot read raisesPermissionDeniedError(HTTP 403). Dataset names resolve only among the user's own datasets, so a name that is not theirs (even one shared with them) raisesDatasetNotFoundError; usedataset_idsfor shared datasets. See thecognee-permissionsskill. - "Memory warming up". On an empty graph, a graph-only recall (no
session sources, not
only_context) returns onesource="system"item withstatus="memory_warming_up"(or"build_failed"pluserror_message) instead of results; a multi-source recall just returns no graph results. Wait for the remember to finish, or check why it failed. - Hybrid silently becomes graph completion when you pass
neighborhood_depthorfeedback_influence > 0(including a nonzeroDEFAULT_FEEDBACK_INFLUENCE), or the chunk collection is missing.node_namestays on hybrid, which filters to that node set.search()also defers for a customnode_typeornode_namewithnode_type=None;recall()has nonode_type.wide_search_top_kandtriplet_distance_penaltywith hybrid raiseInvalidHybridSearchConfig; pinGRAPH_COMPLETIONto use them. SKILLSandAGENTIC_COMPLETIONneed exactly one dataset. ForSKILLS,search()raises unless exactly one dataset is given.recall()runs SKILLS per dataset with access control on (zero datasets gives[], not an error) and raises only with access control off and not exactly one dataset. ForAGENTIC_COMPLETIONonlysearch()checks it up front, so call it throughsearch()with one dataset.code_querywithoutscope="code"raises, andscope="tools"also needsTOOL_CALLS_ENABLED=true.- Latency. Most completion types make one LLM call; COT,
DECOMPOSITION, CONTEXT_EXTENSION, GRAPH_SUMMARY_COMPLETION, TEMPORAL,
FEELING_LUCKY (one call to pick the type, then the chosen type's) and
AGENTIC_COMPLETION (a loop of up to
max_iter, default 6) make more. NATURAL_LANGUAGE makes one (no answer call) and retries only on an empty or failed query, up to 3 attempts. WithCACHINGandAUTO_FEEDBACKon (defaults), each answered turn adds one analysis call, even without asession_id. SetAUTO_FEEDBACK=falsefor low-latency reads (see thecognee-performanceskill).
recall() or search()?
Use recall(). Drop to cognee.search() only for agentic parameters
(skills, tools, max_iter, node_type) as first-class arguments, raw
SearchResult objects, or a pinned type with no router. search() never
searches the session cache; its session_id only adds conversation history
to the prompt. Full guide: docs/recall-vs-search.md.
How it works
recall() resolves scope and search type, then calls the same authorized
search search() uses: datasets resolve through the permission layer with
read, one search per dataset runs concurrently, and results are
normalized and tagged.
- Entry point, scope and type resolution:
cognee/api/v1/recall/recall.py - Router:
cognee/api/v1/recall/query_router.py - Skill gate:
cognee/api/v1/recall/skill_gate.py - Result types:
cognee/modules/recall/types/RecallResponse.py,SearchResultItem.py - Scope names:
cognee/memory/entries.py:normalize_scope - Warm-up config (
RECALL_WARMUP_*):cognee/modules/recall/config.py - Core search and fan-out:
cognee/modules/search/methods/search.py - Hybrid fallback rules:
cognee/modules/search/methods/hybrid_deferral.py - Registry:
cognee/modules/search/methods/get_search_type_retriever_instance.py
Examples in examples/guides/: recall_core.py,
hybrid_retrieval_recall.py, references_example.py, temporal_recall.py,
sessions.py.
Extending it
Adding a search type, per cognee/modules/retrieval/README.md:
- Write the retriever in
cognee/modules/retrieval/(subclassBaseRetrieveror a completion base). - Add the
SearchTypemember and itssearch_core_registryentry. - Add a row to the README table. A unit test
(
cognee/tests/unit/modules/retrieval/retriever_readme_index_test.py) fails if the table and registry disagree. - Optional: add it to
SEARCH_TYPE_CHOICESincognee/cli/config.pyfor the CLI, or a regex rule toquery_router.pyfor auto-routing. Never route a type that can write.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

