Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 1.87 KB

File metadata and controls

66 lines (44 loc) · 1.87 KB

LC-0 VIC — live demo (terminal)

End-to-end retrieval over a sample warehouse using Ollama embeddings (default embeddinggemma) and optional L2 vision.

One-command demo (from repo root)

Requires pip install -e ".[index]", Ollama running, embedding model pulled.

vic demo

This seeds data/mock_storage/, runs vic index --full into data/vector_db (or VIC_DB_PATH), then runs two sample vic ask queries with human-readable output.

  • Fast path (no embeddings): vic demo --quick — seeds only; queries use legacy L0 unless you already indexed.

Interactive asks

Default warehouse resolution:

  1. --root DIR if you pass it
  2. Else VIC_WAREHOUSE_ROOT
  3. Else data/mock_storage if that directory exists
  4. Else current working directory
vic ask --format human "compliance checklist"
vic ask --root ./data/mock_storage --format json "stand-up notes"

Output formats

Flag Behavior
--format json (default) AskResponse JSON (includes stats: pipeline, latency, hit counts, paths).
--format human Sectioned text report: summary, warnings, hits with paths/excerpts.

See also

  • scripts/demo.sh / demo.ps1 — shell equivalents
  • docs/API.mdstats schema and HTTP bridge
  • docs/ROADMAP_DEEP_DIVE.md — production roadmap

Bridge async indexing (optional)

Start bridge:

vic bridge

Create async index job:

curl -X POST http://127.0.0.1:8765/v1/index/start ^
  -H "Content-Type: application/json" ^
  -d "{\"root\":\"./data/mock_storage\",\"db_path\":\"./data/vector_db\",\"full\":true}"

Poll status:

curl "http://127.0.0.1:8765/v1/index/status?job_id=<job_id>"

If VIC_BRIDGE_API_KEY is set, include Authorization: Bearer <key> on all /v1/* calls.