math-chatbot-v2 / test.py
pranshu dhiman
Deploy MathSutra Space
7fab45b
Raw
History Blame Contribute Delete
431 Bytes
from src.edurag_math_bot.config import get_settings
from src.edurag_math_bot.rag_chain import MathRAGAssistant
if __name__ == "__main__":
assistant = MathRAGAssistant(settings=get_settings())
question = "What is the difference between differentiability and continuity?"
result = assistant.answer(question)
print(result["answer"])
print("\nSources:")
for source in result["sources"]:
print(source)