cognee-install 是什么?
Use when the user wants to install cognee and run their first remember → recall flow with the Python SDK — fresh setup, virtual env, extras selection, or a minimal working example.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
cognee-install,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 cognee-install
请在 Codex 的当前工作环境中安装并检查 cognee-install 这个 Skill。
项目身份:topoteretes/cognee / cognee-install
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-install/SKILL.md
已定位的源文件:.agents/skills/cognee-install/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 cognee-install
请在 Claude Code 的当前工作环境中安装并检查 cognee-install 这个 Skill。
项目身份:topoteretes/cognee / cognee-install
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-install/SKILL.md
已定位的源文件:.agents/skills/cognee-install/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 cognee-install
请在 Cursor Agent 的当前工作环境中安装并检查 cognee-install 这个 Skill。
项目身份:topoteretes/cognee / cognee-install
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-install/SKILL.md
已定位的源文件:.agents/skills/cognee-install/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 cognee-install
请在 当前 Agent 的当前工作环境中安装并检查 cognee-install 这个 Skill。
项目身份:topoteretes/cognee / cognee-install
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-install/SKILL.md
已定位的源文件:.agents/skills/cognee-install/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-23T04:29:48.865Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
.agents/skills/cognee-install/SKILL.md · 抓取时间 2026-11-23T04:29:48.865Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Use when the user wants to install cognee and run their first remember → recall flow with the Python SDK — fresh setup, virtual env, extras selection, or a minimal working example.
查看源文件章节 / Source sections
- 原文:Install and run cognee
- 安装 / Install
- 原文:Configure
- 原文:First run
- 原文:Verify / troubleshoot
安装 / Install
Requires Python 3.10–3.14. Prefer uv: ```bash uv venv && source .venv/bin/activate uv pip install cognee # from PyPI # or, working inside this repo: uv pip install -e . ``` Add extras only when needed — examples: `cognee[postgres]`, `cognee[neo4j]`, `cognee[docling]` (office/HTML document parsing, slim), `cognee[docs]` (unstructured), `cognee[anthropic]`, `cognee[ollama]`, `cognee[aws]`. The full list is in `pyproject.toml` under `[project.optional-dependencies]`.
原文:Configure
The only required setting is an LLM API key. Create `.env` in the working directory (or export the variable): ```bash LLM_API_KEY="your_openai_api_key" ``` Defaults need no services: SQLite (relational), LanceDB (vector), and Ladybug (graph), all stored locally. OpenAI is the default LLM and embedding provider — if you configure a different LLM but not embeddings (or vice versa), the other silently stays on OpenAI. For other providers and databases use the cognee-integrations skill.
原文:First run
As of cognee 1.x the memory API — `remember`, `recall`, `forget`, `improve` — is the primary surface. All SDK functions are async. Minimal end-to-end script: ```python import asyncio import cognee async def main(): await cognee.remember("Cognee turns documents into AI memory.") results = await cognee.recall("What does cognee do?") print(results) asyncio.run(main()) ``` `remember()` is the whole ingestion path in one call — it runs `add()` + `cognify()`, then `improve()` to index the graph (`self_improvement=True` by default). It accepts text, file paths, URLs, and binary streams, with an optional `dataset_name="my_project"`; pass `datasets=["my_project"]` to `recall()` to stay inside one dataset. `recall()` auto-routes the query to a search strategy by default. Pass `query_type=SearchType.CHUNKS` (etc.) to pin one, or `auto_route=False` to fall back to `GRAPH_COMPLETION`. Session memory is the other half of the API — `remember(..., session_id="chat_1")` writes to a fast session cache rather than running add+cognify inline, and `recall(..., session_id="chat_1")` reads it back (session hits short-circuit the graph search). With the default `self_improvement=True` it still bridges that data into the permanent graph in the background; `improve(dataset=..., session_ids=[...])` does the same explicitly. Session memory runs on the session cache, which is on by default (`CACHING=true`); setting `CACHING=false` disables it entirely and makes `remember(session_id=...)` raise. Start with `examples/advanced_guides/remember_recall_improve_example.py`, which walks through permanent memory, session memory, and the sync between them. The `add()` / `cognify()` / `search()` primitives still exist and are what `remember`/`recall`/`improve` call underneath — reach for them when you need to drive a stage in isolation (e.g. custom pipeline tasks), not for ordinary ingestion. `cognee.delete` is formally deprecated (since 0.3.9); `forget()` is the v1 replacement, unifying the old delete/empty_dataset paths behind one call. When to use `recall()` versus the low-level `search()` is covered in `docs/recall-vs-search.md`.
原文:Verify / troubleshoot
- `cognee-cli remember "hello" && cognee-cli recall "hello"` exercises the same flow from the shell. - To wipe local state during experiments: `cognee-cli forget --all` (or `await cognee.forget(everything=True)`). - Reads slow or spending tokens on every query → set `AUTO_FEEDBACK=false` (keep `CACHING=true`); by default cognee makes one structured-output LLM call per answered query to self-tune its memory. - Structured LLM output errors usually mean the model/provider needs an explicit instructor mode: `LLM_INSTRUCTOR_MODE="json_schema_mode"`.
文件 SHA256:d402cb2556b1529179972a81bdf35372a74911a4df9442721f4ba1c56206a4f7
仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。
Use when the user wants to install cognee and run their first remember → recall flow with the Python SDK — fresh setup, virtual env, extras selection, or a minimal working example.
历史收录数据
| 来源仓库 | topoteretes/cognee |
|---|---|
| Skill源路径 | .agents/skills/cognee-install/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
