Feature/stem ai integration#290
Merged
halinhtvn3a merged 4 commits intodevfrom Dec 23, 2025
Merged
Conversation
Introduced compact per-student progress summaries in GetClassroomLearningSnapshotQueryHandler to provide assessment and content completion rates. Updated ServiceExtensions to add RabbitMQ service reference and environment variable configuration for improved service integration.
Adds a new IngestionService for RAG indexing with debouncing and TTL, integrates it into event handling and teacher service, and exposes a test endpoint for triggering progress events. Improves context gathering to prioritize ingestion documents, adds richer logging throughout the context and agent pipelines, and enhances student/class data tools to utilize progress summaries. Also updates content generation to support language selection and improves robustness in graph building and agent analysis.
Removed debug logging from TeacherService and enhanced student status classification to account for new students based on enrollment duration. Student 'joined_at' is now included in overviews, and the student analysis agent now provides a mapping of student IDs to names for more natural responses. The agent prompt was streamlined for clarity, emphasizing the use of student names, improved date handling, and more concise, actionable guidance for teachers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces improvements to the context gathering and ingestion flow for classroom data, adds a new test endpoint for triggering progress events, and enhances logging and debugging for RAG (Retrieval Augmented Generation) pipelines. It also updates protocol buffer definitions to support richer student progress summaries. The most significant changes are grouped below:
RAG Ingestion & Context Gathering Improvements:
IngestionServiceprovider and dependency injection into relevant services and event handlers, enabling debounced, event-driven ingestion of classroom data for RAG pipelines (app/api/http/dependencies.py). [1] [2] [3]app/core/context/gather.py).app/core/context/builder.py).API & Testing Enhancements:
/test/trigger-progress-eventendpoint and request model to allow manual triggering of classroom student progress events, supporting both direct and RabbitMQ-based event handling for testing the ingestion and snapshot update flow (app/api/http/routers/teacher.py). [1] [2]Protocol Buffer Updates:
GrpcStudentProgressSummarymessage and added a repeated field for student progress summaries to the classroom snapshot response, allowing richer progress reporting (classrooms.proto). [1] [2]Agent Logging Cleanup:
app/core/agent/plan_solve_agent.py). [1] [2] [3]