Files
buddha-gpt/scripts/ask.py
marcuspaico 37caa87b49 feat: RAG answers with sutta citations (M1)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-14 17:26:26 -07:00

8 lines
242 B
Python

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"]))