chatdoc / scripts /ask.py
celiolr's picture
Deploy: 51 arquivos (116.9 MB) - 2025-12-18 13:52:22
4dc3b79
Raw History Blame Contribute Delete
248 Bytes
#!/usr/bin/env python3
import sys
sys.path.append("../app")
from app.services.rag_service import RAGService
rag = RAGService()
pergunta = input("Pergunta: ").strip()
resposta = rag.query(pergunta)
print(f"\nResposta: {resposta['answer']}")