Overview
Kapso provides two search backends for querying the Knowledge Graph:| Backend | Best For | Storage |
|---|---|---|
kg_graph_search | Wiki pages with semantic search | Weaviate + Neo4j |
kg_llm_navigation | JSON knowledge graphs | Neo4j only |
kg_graph_search
The primary backend for wiki-based knowledge. Combines vector embeddings with graph structure.Architecture
Features
- Semantic search: OpenAI embeddings for similarity matching
- LLM reranking: Reorder results by query relevance
- Graph enrichment: Add connected pages from Neo4j
- Filtering: By page type, domain, score threshold
Usage
Configuration
kg_llm_navigation
Alternative backend for JSON-based knowledge graphs with LLM-guided navigation.Architecture
Features
- LLM-guided: LLM decides which nodes to visit
- Graph navigation: Follows edges to find relevant nodes
- No embeddings: Works with any graph structure
Usage
Configuration
Search Data Structures
KGSearchFilters
KGOutput
KGResultItem
Indexing
Index Wiki Pages
Index JSON Graph
Index File Format
The.index file is a JSON reference:
Search Presets
| Preset | top_k | LLM Reranker | Connected Pages |
|---|---|---|---|
DEFAULT | 10 | Yes | Yes |
FAST | 5 | No | No |
THOROUGH | 20 | Yes | Yes |