vector-db-ingest)
Ingests and indexes repository files into the ChromaDB vector store for semantic retrieval.
Contents
- Critical Constraints
- Quick start
- Workflow
- Verification
Critical Constraints
- Profile Sovereignty: Always specify
--profileto ensure the correct manifest and batch configuration are loaded. - Lock Concurrency: Ensure no concurrent process holds a lock on the database folder during ingestion.
- Transparency: Report target profile, indexed file count, and any processing errors.
Quick start
Run incremental ingestion for the default wiki profile (last 24 hours):
python3 scripts/ingest.py --profile wiki --since 24
Workflow
- Prerequisite Check: Ensure profiles exist in
.agent/learning/vector_profiles.json(or initialize viavector-db-init). - Execute Ingest: Run
scripts/ingest.pywith--profileand appropriate target scope:- Specific file:
python3 scripts/ingest.py --profile wiki --file path/to/file.md - Specific directory:
python3 scripts/ingest.py --profile wiki --folder path/to/folder - Incremental:
python3 scripts/ingest.py --profile wiki --since 24 - Full rebuild:
python3 scripts/ingest.py --profile wiki --full
- Specific file:
- Report Output: State target profile, number of chunks created, and total runtime.
Verification
Confirm indexed content is immediately retrievable via semantic query:
python3 scripts/query.py "test query" --profile wiki --limit 3