sample-data/week-03-policy-rag/policies/*.md
→ parse policy metadata
→ split into clause chunks
→ save PolicyDocument rows
→ save PolicyChunk rows without embeddings
→ rerun safely without duplicate chunks
packages/ragCreate:
packages/rag/
package.json
index.ts
types.ts
paths.ts
parse-policy-document.ts
chunk-policy-document.ts
load-policy-documents.ts
In root package.json, add:
"rag:load-policies":"bun --filter @repo/rag load-policies"
packages/rag/types.tspackages/rag/paths.ts


