RAG + multi-agent (retrieval, policy-compliance, drafting) support assistant for a fictional shipping company, built in Rust with Qdrant for vector storage and a hand-rolled Anthropic tool-calling client (no Rust pydantic-ai equivalent exists). A deterministic supervisor orchestrates the agents and runs every response through a rule-based guardrail pipeline with an append-only audit log. Includes a 44-example golden dataset (normal/injection/policy- violation/hallucination-bait/out-of-scope) and a regression harness that scores retrieval, generation, and guardrail correctness separately, plus a write-up of the failure modes and trade-offs. Co-Authored-By: Claude Sonnet 5 <[email protected]>
13 lines
393 B
Bash
13 lines
393 B
Bash
# Required
|
|
ANTHROPIC_API_KEY=
|
|
|
|
# Optional overrides (defaults shown)
|
|
MARITIME_LLM_MODEL=claude-sonnet-5
|
|
MARITIME_QDRANT_URL=http://localhost:6334
|
|
MARITIME_COLLECTION_NAME=maritime_kb
|
|
MARITIME_EMBEDDING_CACHE_DIR=.fastembed_cache
|
|
MARITIME_TOP_K=4
|
|
MARITIME_AUDIT_LOG_PATH=data/audit_log.jsonl
|
|
MARITIME_DOCUMENTS_DIR=src/knowledge/documents
|
|
MARITIME_GOLDEN_DATASET_PATH=data/golden_dataset.jsonl
|