AIToday

UIUC builds AI teaching assistant for electrical engineering, open-sources core system

Hacker News8h ago
UIUC builds AI teaching assistant for electrical engineering, open-sources core system

Key takeaway

Researchers at the University of Illinois Urbana-Champaign have released an open-source AI teaching assistant designed for their introductory electrical engineering course. The system runs 11 models in parallel to handle text and image retrieval, generation, moderation, and ranking while delivering answers in a median of 2 seconds. It trains on course-specific data—textbooks, lecture videos, and student forums—and uses a novel approach to reinforcement learning from human feedback, with training data publicly available on HuggingFace.

Summaries like this, in your inbox every morning.

Sign up free →

3 Key Points

  • What happened

    Researchers at the University of Illinois Urbana-Champaign launched a multi-modal AI teaching assistant for their introductory electrical engineering course (ECE 120) that runs 11 separate models in parallel and achieves a median 2-second response time. The system is live on HuggingFace and fully open source except for commercial textbooks.

  • Why it matters

    The system trains on textbooks, lecture videos, and student Q&A forums—sources most AI assistants lack access to—and uses a novel semantic search retrieval method during reinforcement learning from human feedback (RLHF) trained on data from five electrical engineering students. This approach allows universities and instructors to build domain-specific teaching tools tailored to their exact course content rather than relying on general-purpose models.

  • What to watch

    The team evaluates system performance by asking GPT-3 whether model-generated answers are better or worse than expert human answers, but they acknowledge a key limitation: GPT-3 evaluates itself and tends to favor its own outputs. They are considering running the same evaluation with other models to validate results more fairly.

In Depth

The University of Illinois Urbana-Champaign has launched a multi-modal AI teaching assistant tailored to their introductory electrical engineering course, ECE 120. The system architecture runs 11 separate models in parallel, each handling different tasks: text retrieval, image retrieval, answer generation, content moderation, and ranking. Despite this computational parallelism, the system achieves a median response time of 2 seconds, making it practical for real classroom and student-help scenarios.

The system ingests three categories of training data: textbooks, lecture videos, and student Q&A forums, which the authors ordered subjectively by importance. Because the project was not granted rights to release this data publicly, those source materials remain private. However, the team has released the reinforcement learning from human feedback (RLHF) dataset openly on HuggingFace. This dataset was iteratively built by hiring five electrical engineering students and covers the specific material taught in ECE 120. This approach—having actual domain experts in the subject matter create comparison labels—strengthens the quality of training signals compared to generic crowdsourced feedback.

Evaluation is continuous: whenever a new feature is pushed to the system, the team re-runs an assessment using an in-house dataset of question-and-answer pairs written by expert electrical engineers. For each question, the system generates an answer from each candidate model, and GPT-3 judges whether that answer is better or worse than the human ground-truth. The team is candid about a limitation of this approach: GPT-3 nearly always rates GPT-3-generated answers as superior, which likely does not reflect reality. They note they should run the same evaluation using other models, such as Cohere's, to obtain a more unbiased comparison.

The project is fully open source (except for the proprietary textbook content), and the team encourages others to adapt it. Installation requires Python 3.8 and standard dependencies, plus API keys for the services the system uses. The critical step is building a Pinecone database—a vector store for retrieval—populated with documents from the user's own course. The team provides helper scripts to convert textbook PDFs and lecture slide images into searchable embeddings, as well as a script to ingest video transcripts from OpenAI's Whisper. Once set up, users run a single bash command to launch the Gradio web interface. The full codebase, including the aggregation logic, prompt engineering, evaluation code, and real user feedback logs, is available on HuggingFace.

Context & Analysis

The UIUC teaching assistant addresses a genuine constraint in deploying AI to education: most large language models are trained on broad internet data and lack access to course-specific materials like textbooks, lecture recordings, and institutional Q&A forums. By combining retrieval-augmented generation (pulling context from a searchable database) with reinforcement learning from human feedback, the team built a system that is aware of the exact material students are being taught.

A key technical choice is the use of semantic search during RLHF—rather than training the model only on raw comparison labels, they use semantic similarity to retrieve relevant context before ranking answers. The publicly released RLHF dataset, created by five electrical engineering students and covering ECE 120 material, is freely available on HuggingFace, lowering the barrier for others to replicate or extend this approach.

The evaluation methodology reveals both the system's strength and a known weakness. Because the team uses GPT-3 to judge whether answers are good, and GPT-3 tends to favor its own outputs, the evaluation results may not reflect the true quality gap versus other models. The authors are transparent about this and propose validating results with alternative evaluation models, suggesting a mature approach to system building even as they acknowledge their current methodology's limits.

FAQ

What course does this teaching assistant support?
The system is built for ECE 120, an introductory electrical engineering course at UIUC.
Can I use this system for my own course or institution?
Yes, the project is fully open source except for commercial textbooks. The instructions encourage instructors to plug in their own Pinecone database of documents and use the system in their work.
How is the system evaluated?
The team uses an in-house dataset of question-and-answer pairs written by expert electrical engineers. They generate answers with each model and ask GPT-3 whether the generated answers are better or worse than the human ground-truth answers, though they acknowledge that GPT-3 evaluating itself is a limitation.

Get AI news like this every morning

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · takes 30 seconds · unsubscribe anytime

Discussion

No discussion yet for this article

Stay ahead with AI news

Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.

Get Started Free

Free · takes 30 seconds · unsubscribe anytime

1 minute a day. The AI essentials.

200+ sources · Email / LINE / Slack

Get it free →