File size: 248 Bytes
4dc3b79
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
#!/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']}")