Skip to content

Feature/stem ai integration#290

Merged
halinhtvn3a merged 4 commits intodevfrom
feature/STEM-ai-integration
Dec 23, 2025
Merged

Feature/stem ai integration#290
halinhtvn3a merged 4 commits intodevfrom
feature/STEM-ai-integration

Conversation

@halinhtvn3a
Copy link
Copy Markdown
Contributor

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:

  • Added an IngestionService provider 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]
  • Enhanced the context gathering logic to prioritize ingestion documents, combine results from general and ingestion-focused retrieval, and provide detailed logging and fallbacks when ingestion data is missing (app/core/context/gather.py).
  • Improved logging in the context builder to provide more transparency at each stage of the context construction pipeline (app/core/context/builder.py).

API & Testing Enhancements:

  • Added a new /test/trigger-progress-event endpoint 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:

  • Introduced the GrpcStudentProgressSummary message 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:

  • Removed verbose logging of full prompts in the plan-solve agent to reduce log noise and potential information leakage (app/core/agent/plan_solve_agent.py). [1] [2] [3]

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.
@halinhtvn3a halinhtvn3a merged commit 4cc5486 into dev Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant