Core Installation
1
Install from PyPI (recommended)
2
Or install from source (for development or wiki data)
This repository uses Git LFS for large files in
data/wikis_batch_top100/.
If you didn’t install Git LFS before cloning, run these commands to fetch the files.3
Configure API keys
Create
.env in project root:Coding Agent Setup
Kapso supports multiple coding agents. Install the ones you plan to use:- Aider (Default)
- Claude Code
- Gemini
- OpenHands
Aider is installed automatically with
pip install -e .No additional setup required. Uses git-centric diff-based editing.Leeroopedia MCP (Optional)
Connect Kapso to Leeroopedia — a curated knowledge base of 1000+ ML/AI frameworks. Kapso agents use it during ideation and implementation to search docs, build plans, verify code, diagnose failures, and look up hyperparameter defaults..env:
Benchmark Installation
- MLE-Bench
- ALE-Bench
MLE-Bench provides Kaggle competition problems.Prerequisites:Verify:
- Git LFS (
sudo apt-get install git-lfsorbrew install git-lfs)
Infrastructure Setup
Kapso uses Docker containers for its knowledge graph infrastructure:- Weaviate: Vector database for semantic search
- Neo4j: Graph database for relationships
- MediaWiki (optional): Web UI for browsing wiki pages
Quick Start (Recommended)
Default Service URLs
Manual Setup
If you prefer to start services individually:Docker Compose (All Services)
Docker Compose (All Services)
- Weaviate (port 8080) - Vector database for embeddings
- Neo4j (ports 7474, 7687) - Graph database for relationships
- MediaWiki (port 8090) - Web UI for browsing wiki pages
- MariaDB - Backend database for MediaWiki
Individual Containers
Individual Containers
Weaviate (vector DB):Neo4j (graph DB):
Configure Environment
Add infrastructure settings to your.env:
Knowledge Graph Indexing
After infrastructure is running, index your wiki pages:Using Kapso API (Recommended)
Index File Format
The.index file is a JSON reference to the indexed data:
KG Search Backends
Environment Variables Reference
Verify Installation
Troubleshooting
Services won't start
Services won't start
MediaWiki issues
MediaWiki issues
Port conflicts
Port conflicts
If default ports are in use, modify
services/infrastructure/docker-compose.yml or use different port mappings.