Overview
The knowledge system provides domain-specific guidance during problem-solving. It helps the agent recommend proven approaches and avoid common pitfalls by learning from repositories, research, and past experiments.Key Concepts
Knowledge Graph (KG)
The KG stores domain knowledge in a structured format:- Storage: Weaviate (vector embeddings) + Neo4j (graph structure)
- Schema: 5 page types organized as a directed acyclic graph (DAG)
- Content: Wiki pages with overviews, content, and connections
Knowledge Pipeline
A two-stage process for learning from sources:- Stage 1 (Ingestors): Extract WikiPages from sources
- Stage 2 (Merger): Intelligently merge into the KG
Knowledge Search
Hybrid retrieval that combines:- Semantic search: Vector similarity in Weaviate
- Graph traversal: Connected pages from Neo4j
- LLM reranking: Relevance scoring
Using Knowledge in Kapso
Option 1: Pre-indexed KG
Option 2: Learn from Sources
Option 3: Research as Context
Wiki Page Types
The KG uses 5 page types organized as a Top-Down DAG:| Type | Role | Example |
|---|---|---|
| Workflow | The Recipe - ordered sequence of steps | ”QLoRA Fine-tuning” |
| Principle | The Theory - library-agnostic concepts | ”Low Rank Adaptation” |
| Implementation | The Code - concrete API reference | ”TRL_SFTTrainer” |
| Environment | The Context - hardware/dependencies | ”CUDA_11_Environment” |
| Heuristic | The Wisdom - tips and optimizations | ”Learning_Rate_Tuning” |
Connection Schema
Search Backends
| Backend | Data Format | Storage | Use Case |
|---|---|---|---|
kg_graph_search | Wiki pages (.md) | Weaviate + Neo4j | Semantic search with reranking |
kg_llm_navigation | JSON (nodes/edges) | Neo4j only | LLM-guided graph navigation |