Skip to main content
Glama

AI Tutoring RAG System

rag_interface.pyโ€ข1.01 kB
from rag.system import TutoringRAGSystem def knowledge_base_retrieval_interface( student_id: str, current_question: str, subject: str, topic: str, context_limit: int = 5, ) -> str: """ Generates a personalized response using the RAG system. Args: student_id: The unique identifier for the student. current_question: The question the student is currently asking. subject: The subject of the question (e.g., "Mathematics", "History"). topic: The specific topic within the subject (e.g., "Algebra", "World War II"). context_limit: The number of previous learning interactions to consider for context. Returns: A personalized and empathetic response from the AI tutor. """ rag_system = TutoringRAGSystem() return rag_system.generate_personalized_response( student_id=student_id, current_question=current_question, subject=subject, topic=topic, context_limit=context_limit, )

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Chukwuebuka-2003/ebuka_mcps'

If you have feedback or need assistance with the MCP directory API, please join our Discord server