feat: RAG answers with sutta citations (M1)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
marcuspaico
2026-08-14 17:26:26 -07:00
parent c14b314107
commit 37caa87b49
3 changed files with 42 additions and 0 deletions

7
scripts/ask.py Normal file
View File

@@ -0,0 +1,7 @@
import sys
from pathlib import Path
from buddhagpt.rag import answer
r = answer(sys.argv[1], "mlx-community/Qwen2.5-7B-Instruct-4bit", Path("data/lancedb"))
print(r["answer"])
print("\nSources:", ", ".join(c["uid"] for c in r["citations"]))