# Communication knowledge vectors (RAG for GPT-4o-mini)

Independent of `data/verticals/` (UW HTML/JSON corpus). **Do not overwrite or merge those files.**

Source: `knowledge_base/{bmi,health,mortgage}_details/*.md`

| Vertical | Store | Use for |
|----------|--------|---------|
| bmi | `data/knowledge/bmi/` | Height/weight capture talk tracks |
| health | `data/knowledge/health/` | Disease-history interview talk tracks |
| mortgage | `data/knowledge/mortgage/` | Mortgage protection fact-find talk tracks |

Each folder: `embeddings.json`, `chunks.jsonl`, `catalog.json`. Index: `data/knowledge/index.json`.

Rebuild (does not run UW ingest):

```bash
npm run ingest:knowledge
```

Query: load **one** `data/knowledge/<vertical>/embeddings.json`, retrieve chunks, send to **gpt-4o-mini** with a communication system prompt.
