What problem does it solve?
This skill provides a complete guide to building a ChromaDB-backed vector store for a legal RAG pipeline. It enables embedding, indexing, and retrieval of statutes, precedents, and store policies to support evidence-based legal analysis.
Core Features & Use Cases
- ChromaDB-based vector store with persistent storage for laws, precedents, and store policies.
- Contextual chunking that preserves legal structure (articles, sections, rulings) into 500–1000 character chunks with 100–200 character overlap.
- Ingestion pipeline: fetch from law_api, clean HTML, chunk, and upsert into the correct collection with source metadata; supports deduplication.
- Query & retrieval: search across chunks to retrieve relevant context with a defined similarity threshold.
- Sync & maintenance: periodic data synchronization to keep the vector store up to date.
Quick Start
Initialize the ChromaDB client, chunk sample legal texts, and verify context-aware retrieval.