chatdoc / scripts\ask.py
celiolr's picture
Deploy Docker: scripts\ask.py
7986b72 verified
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']}")