cognee-ingestion 是什么?
Use when putting data into cognee memory with remember() — choosing inputs (text, files, folders, URLs, repos, databases), datasets and node_sets, loaders, ontologies, the graph extractor (LLM or GLiNER), chunking, dry-run cost estimates, or when remember() raises on a keyword argument.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
cognee-ingestion,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 cognee-ingestion
请在 Codex 的当前工作环境中安装并检查 cognee-ingestion 这个 Skill。
项目身份:topoteretes/cognee / cognee-ingestion
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-ingestion/SKILL.md
已定位的源文件:.agents/skills/cognee-ingestion/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 cognee-ingestion
请在 Claude Code 的当前工作环境中安装并检查 cognee-ingestion 这个 Skill。
项目身份:topoteretes/cognee / cognee-ingestion
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-ingestion/SKILL.md
已定位的源文件:.agents/skills/cognee-ingestion/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 cognee-ingestion
请在 Cursor Agent 的当前工作环境中安装并检查 cognee-ingestion 这个 Skill。
项目身份:topoteretes/cognee / cognee-ingestion
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-ingestion/SKILL.md
已定位的源文件:.agents/skills/cognee-ingestion/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 cognee-ingestion
请在 当前 Agent 的当前工作环境中安装并检查 cognee-ingestion 这个 Skill。
项目身份:topoteretes/cognee / cognee-ingestion
来源:https://github.com/topoteretes/cognee/blob/1961133d0c68b450fe8e71941a756371e94f7c04/.agents/skills/cognee-ingestion/SKILL.md
已定位的源文件:.agents/skills/cognee-ingestion/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-23T04:29:48.865Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
.agents/skills/cognee-ingestion/SKILL.md · 抓取时间 2026-11-23T04:29:48.865Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Use when putting data into cognee memory with remember() — choosing inputs (text, files, folders, URLs, repos, databases), datasets and node_sets, loaders, ontologies, the graph extractor (LLM or GLiNER), chunking, dry-run cost estimates, or when remember() raises on a keyword argument.
查看源文件章节 / Source sections
- 原文:Ingest data with remember()
- 原文:Use it
- 原文:Inputs
- 原文:Where the data goes
- 原文:How the graph is built
- 原文:Ontologies
- 原文:Loaders
- 原文:Check the cost first
- 原文:Without an LLM: GLiNER
- 原文:Pitfalls
- 原文:How it works
- 原文:Extending it
原文:Ingest data with remember()
`remember()` is cognee's ingestion API. One call stores the data, builds the knowledge graph, and enriches it. Use it for all ingestion; every option in this skill is a `remember()` argument unless it says otherwise. ```python import cognee result = await cognee.remember("Einstein was born in Ulm.") # text result = await cognee.remember( ["./notes.md", "./report.pdf"], # files dataset_name="research", ) print(result.status, result.dataset_id) # "completed", UUID ``` All cognee functions are async. Without `dataset_name` data goes to `main_dataset`. Needs `LLM_API_KEY` unless you use the GLiNER extractor (below).
原文:Inputs
`data` accepts a string, a list of strings, file paths (absolute, `file://`, `s3://`), http(s) URLs, binary streams, or a list mixing them. - **URLs** are fetched and scraped (allowed by default in the SDK, CLI and MCP; over HTTP the server needs `ALLOW_HTTP_REQUESTS=true`). - **Folders** are ingested file by file. A folder that looks like a code project, or a GitHub/GitLab URL, becomes one code repository (needs `git` on PATH). - **Code files** (`.py`, `.ts`, `.go`, …) go down the code-graph route: a deterministic graph, no LLM calls, searchable only with `SearchType.CODE`. To index a whole repository explicitly, pass `content_type="code"`. - **Databases and dlt sources**: a SQL connection string, a dlt `DltResource` / `DltSource`, or a CSV. dlt is a core dependency, so no extra is needed (`cognee[dlt]` is an empty compatibility extra). Options: `primary_key` (default `"id"`), `write_disposition` (`"replace"` default, or `"append"`), `query`, `max_rows_per_table`. - **Skill playbooks** (`SKILL.md` files): `content_type="skills"`; ingests into the target dataset (default `main_dataset`), so pass `dataset_name` to keep skills in their own dataset.
原文:Where the data goes
| Argument | What it does | |---|---| | `dataset_name` / `dataset_id` | Target dataset. `dataset_id` wins. A dataset is the unit of permissions and isolation. | | `node_set=["AI", "FinTech"]` | Tags the data so recall can filter to it later with `recall(..., node_name=["AI"])`. With `session_id` it pins the session's node set instead (first write wins, a different set later is a 409); `improve()` carries it into the graph. See the `cognee-improve-sessions` skill. | | `session_id="chat_1"` | Writes to the fast session cache instead of the graph; `improve()` bridges it into the graph in the background. See the `cognee-improve-sessions` skill. Requires `CACHING=true`. |
原文:How the graph is built
| Argument | What it does | |---|---| | `extractor` | `"llm"` or `"gliner_demo"` (alias `"gliner"`). Default is `GRAPH_EXTRACTOR=auto`: the LLM when an API key is configured, otherwise GLiNER. | | `graph_model=MyModel` | Extract into your own DataPoint model instead of the generic `KnowledgeGraph`. See the `cognee-custom-graph-models` skill. | | `custom_prompt` | Replaces the entity-extraction prompt (ignored by GLiNER). | | `config={"ontology_config": {...}}` | Ground entities in an OWL ontology (below). | | `chunk_size`, `chunker` | Max tokens per chunk (default: derived from the embedding and LLM limits) and the chunker class (default `TextChunker`). | | `preferred_loaders` | Choose a loader per file type (below). | | `self_improvement` | Default `True`: runs `improve()` after the graph is built. Its outcome is on `result.improve` / `result.improve_error`; a failed improve never fails the remember. | | `run_in_background=True` | Returns immediately with `status="running"`; `await result` to wait. |
原文:Ontologies
```python from cognee.modules.ontology.rdf_xml.RDFLibOntologyResolver import RDFLibOntologyResolver config = { "ontology_config": { "ontology_resolver": RDFLibOntologyResolver(ontology_file="./my.owl"), # "ontology_mode": "strict", # drop entities with no ontology match } } await cognee.remember(texts, config=config) ``` Or set `ONTOLOGY_FILE_PATH` (plus `ONTOLOGY_MODE`, `MATCHING_STRATEGY`) in `.env`. `annotate` (default) only enriches; `strict` drops entities that match no ontology class or individual. It prunes only the graph, chunk text is still stored. Strict mode with an empty or missing ontology file is a hard error. Over HTTP, upload the ontology to `/api/v1/ontologies` and pass its `ontology_key` to `POST /api/v1/remember`. Example: `examples/guides/ontology_quickstart.py`.
原文:Loaders
Each file is claimed by the first loader that accepts it. Default order: code, text, pypdf, image, audio, video, dlt_csv, csv, unstructured, advanced_pdf, docling. Names: `text_loader`, `code_loader`, `csv_loader`, `dlt_csv_loader`, `pypdf_loader`, `image_loader`, `audio_loader`, `video_loader`, `unstructured_loader`, `advanced_pdf_loader`, `docling_loader`, `beautiful_soup_loader`. ```python # Treat a code file as a plain document (chunking + LLM extraction): await cognee.remember("./script.py", preferred_loaders={"text_loader": {}}) ``` Office formats (DOCX, PPTX, …) need the `docs` (unstructured) or `docling` extra. A preferred loader that is not installed is skipped with only an info log, so check the extra is installed when a file comes out wrong.
文件 SHA256:aca4bd7c9fab6cb9ea6e14e07b2663364b95b41fcf8c2cc473fd58c80ad12de6
仓库许可证记录:Apache-2.0;repository-license-recorded-scope-unverified,查看来源。
Use when putting data into cognee memory with remember() — choosing inputs (text, files, folders, URLs, repos, databases), datasets and node_sets, loaders, ontologies, the graph extractor (LLM or GLiNER), chunking, dry-run cost estimates, or when remember() raises on a keyword argument.
历史收录数据
| 来源仓库 | topoteretes/cognee |
|---|---|
| Skill源路径 | .agents/skills/cognee-ingestion/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
