Skip to main content

Overview

Kapso provides two search backends for querying the Knowledge Graph: 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

NullKnowledgeSearch

A no-op implementation used when KG is disabled:

Creating Custom Backends