knowledge_ingest
Ingest source code or documentation into a knowledge graph to enable retrieval at inference time. Automatically chunk content and generate Q&A pairs for search.
Instructions
Ingest source code or documentation into the knowledge graph. Feed your codebase to Prism so knowledge_search can retrieve it at inference time. Accepts raw source code, file paths, or a git repo URL. The content is chunked, Q&A pairs are generated, and stored in the knowledge graph. Use this when the user says 'learn this code', 'index my repo', or 'ingest this file'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>"
},
"name": "knowledge_ingest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Raw source code or documentation text to ingest. Max 50,000 chars. | |
| project | Yes | Project identifier for the knowledge namespace (e.g. 'my-backend', 'prism-aac'). | |
| file_path | No | Local file path to read and ingest. Alternative to providing content directly. | |
| chunk_size | No | Characters per chunk (default: 4000). Smaller chunks = more granular Q&A. | |
| source_label | No | Human-readable label for the source (e.g. 'auth-middleware', 'payment-flow'). Used in search results. |