๐ง CrumbVector
Semantic Code Search with Trust Layer
Certified Code in Vector Space - nur vertrauenswรผrdiger Code wird indexiert!
๐ฏ Was ist das?
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ CERTIFIED REPO โ CHUNKING โ EMBEDDING โ VECTOR DB โ SEARCH โ
โ โ
โ โโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโ โโโโโโโโโ โโโโโโโโโโ โ
โ โ CKL โ โ โโโบ โ Code โ โโโบ โ Vectorโ โโโบ โChromaDBโ โโโโ Query โ โ
โ โ Trust:4 โ โ Chunksโ โ [768] โ โ Local โ โ "beat" โ โ
โ โโโโโโโโโโโ โโโโโโโโโ โโโโโโโโโ โโโโโโโโโ โโโโโโโโโโ โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CrumbVector ermรถglicht:
- ๐ Semantische Suche in Code-Repositories
- ๐ Trust-Layer: Nur zertifizierte Repos werden indexiert
- ๐ Komplett lokal: Ollama + ChromaDB (keine Cloud!)
- ๐ต Optimiert fรผr Strudel/Music Patterns
๐ Quickstart
# 1. Setup
cd crumbvector
./setup.sh
# 2. Ollama starten (falls nicht lรคuft)
ollama serve &
ollama pull nomic-embed-text
# 3. CrumbMidi indexieren
./crumbvector.py ingest ../crumbmidi --local
# 4. Suchen!
./crumbvector.py search "one drop reggae beat"
./crumbvector.py search "filter house bass" --genre house
./crumbvector.py search "polyrhythm african" --lang strudel
๐ฆ Dependencies
# Python Packages
pip install chromadb requests pyyaml --break-system-packages
# Ollama (fรผr lokale Embeddings)
# macOS:
brew install ollama
# Linux:
curl -fsSL https://ollama.com/install.sh | sh
# Embedding Model
ollama pull nomic-embed-text
๐ Trust System
Nur Repos mit gรผltiger .crumbvector/trust.yaml werden indexiert:
# .crumbvector/trust.yaml
certification:
status: verified
license: CKL-1.0
verified_by: crumbforest
verified_at: 2026-01-13
trust_level: 4 # 1-5 Scale
allowed_for:
- teaching
- code_completion
- pattern_search
- remix
Trust Levels
| Level | Beschreibung |
|---|---|
| 1 | Unknown (nur License-Datei) |
| 2 | Community reviewed |
| 3 | Maintainer verified |
| 4 | Foundation certified |
| 5 | Core/Official |
๐ป CLI Commands
Ingest
# Lokales Verzeichnis
./crumbvector.py ingest ./mein-repo --local
# Git Repository
./crumbvector.py ingest https://github.com/user/repo
# Mit Mindest-Trust
./crumbvector.py ingest ./repo --local --min-trust 3
# In andere Collection
./crumbvector.py ingest ./repo --local --collection patterns
Search
# Einfache Suche
./crumbvector.py search "wie mache ich einen beat"
# Mit Filtern
./crumbvector.py search "bass line" --genre reggae
./crumbvector.py search "drum pattern" --lang strudel
./crumbvector.py search "euclid rhythm" --genre baobab
# Mehr Ergebnisse
./crumbvector.py search "filter sweep" -n 10
๐ต Beispiel: CrumbMidi Suche
$ ./crumbvector.py search "one drop beat" --genre reggae
๐ CrumbVector - Searching
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Query: one drop beat
Genre: reggae
โโโ Result 1 (distance: 0.234) โโโ
๐ patterns/REGGAE_DUB_75BPM.js
๐ท๏ธ strudel | pattern | reggae | ONE DROP
๐ Trust: 4 | CKL-1.0
let oneDrop = stack(
sound("~ ~ bd ~").gain(1.1).lpf(150).room(0.2),
sound("~ ~ rim ~").gain(0.7).hpf(800).room(0.15)
)
...
๐ Architektur
crumbvector/
โโโ crumbvector.py # Main script
โโโ setup.sh # Installation helper
โโโ CONCEPT.md # Detailed architecture docs
โโโ README.md # This file
โโโ crumbvector_db/ # ChromaDB storage (auto-created)
๐ Pipeline
1. INGEST
โโโ Clone/Read Repository
โโโ Verify Trust (.crumbvector/trust.yaml)
โโโ Check License
โโโ Extract Metadata
2. CHUNK
โโโ Strudel: By sections & let/const patterns
โโโ Python: By functions & classes
โโโ Bash: By functions
โโโ Markdown: By headers
3. EMBED (Ollama)
โโโ Prepare text with metadata context
โโโ Generate vector (nomic-embed-text)
โโโ 768-dimensional embeddings
4. STORE (ChromaDB)
โโโ Vectors + Documents + Metadata
โโโ Persistent local storage
โโโ Fast similarity search
5. QUERY
โโโ Natural language input
โโโ Convert to embedding
โโโ Similarity search with filters
โโโ Return ranked results
๐๏ธ Chunking Strategien
Strudel Patterns (.js)
// Erkennt Sections:
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SECTION TITLE
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Und Pattern-Definitionen:
let patternName = stack(...)
const anotherPattern = note(...)
Python
# Chunked by:
def function_name(): # โ function chunk
...
class ClassName: # โ class chunk
...
Markdown
# Header 1 โ Section chunk
## Header 2 โ Section chunk
### Header 3 โ Section chunk
๐ฆ Integration mit Crumbforest
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ CrumbMidi (Patterns) โ
โ โ โ
โ โผ โ
โ CrumbVector (Index) โโโโโ Query: "wie mache ich house drums?" โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Result: OLDSCHOOL_HOUSE_128BPM.js โ โ
โ โ "sound('bd bd bd bd')" + "sound('~ hh ~ hh')" โ โ
โ โ Trust: 4 | License: CKL โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ Strudel (Play!) โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฎ Roadmap
- [ ] FastAPI Server (
crumbvector serve) - [ ] Web UI fรผr Suche
- [ ] VSCode Extension
- [ ] Multi-Repo Support
- [ ] Trust Verification via Signatures
- [ ] Code Completion Integration
- [ ] Strudel REPL Integration
๐ฆ FunkFox says
"Nicht jeder Code verdient Vertrauen.
Nicht jede Antwort ist richtig.
CrumbVector gibt dir:
โ Verified Code
โ Licensed Content
โ No Hallucination
Code finden. Code verstehen. Code vertrauen."
#crumbvector #rag #semantic-search #chromadb #ollama #trust
๐ง ๐๐