ingest_fragment
Benchmarked against: Anthropic โ Memory tool MCP Tool: Available on both Cloud UB and Local UBI servers Cost: Free (internal operation)
ingest_fragment is the primary content ingestion tool โ the entry point for all knowledge entering Universal Brain. It runs the full MTAAA pipeline to classify and store content.
Usageโ
# Ingest a file
ingest_fragment(path="/path/to/spec.md", input_type="file")
# Ingest text directly
ingest_fragment(path="LangGraph 1.0.9 released with new checkpoint API...", input_type="text")
# Ingest from URL
ingest_fragment(path="https://example.com/article", input_type="url")
Parametersโ
| Parameter | Type | Default | Description |
|---|---|---|---|
path | string | required | File path, text content, or URL |
input_type | string | "file" | file / text / url / screenshot |
source | string | "manual" | manual / api / nq_alpha / ss_vault / downloads |
Responseโ
{
"entry_id": "ub-abc123def456",
"category": "knowledge",
"title": "LangGraph 1.0.9 Release Notes",
"vectorized": true
}
The MTAAA pipelineโ
Every ingestion runs through the 5-node classification pipeline:
- Caller โ Agent calls
ingest_fragment() - UBI Router โ Detects content type, routes to handler
- Handler (e.g., ๆๅญ้็บ) โ Classifies content
- 3D Classification โ Topic ร Type ร Lifecycle from Controlled Vocabulary
- Result โ Entry stored in D1 + vectorized for search
See File Ingestion (MTAAA) for full pipeline details.
Ingestion rulesโ
From Company Constitution ยง1-ยง2 and UB Governance:
| Rule | Detail |
|---|---|
| Language | All entries must be in English |
| Title | Descriptive, searchable |
| Content | Self-contained (reader needs no other context) |
| Tags | Lowercase, hyphenated, max 8 per entry |
| No duplicates | search_brain() first to check |
| Timestamp | Include Taipei time |
Quality checklistโ
Before calling ingest_fragment():
- Is the title descriptive and searchable?
- Is the content self-contained?
- Are tags following controlled vocabulary?
- Did you search UB first to avoid duplicates?
- Is the content in English?