Spaces:
Sleeping
Sleeping
| 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) | |