Skip to content

Study Guide agent#253

Merged
BrandonwLii merged 2 commits intomainfrom
study-guide-agent-214
Aug 1, 2025
Merged

Study Guide agent#253
BrandonwLii merged 2 commits intomainfrom
study-guide-agent-214

Conversation

@BrandonwLii
Copy link

Closes #214

Added a study guide agent to examples that loads .txt and .pdf documents located in agentic/examples/study/docs. The agent uses the weaviate rag tool.

The study guide agent has 3 main "modes":

  • Test Prep: creates a short-answer test and answers
  • Study Buddy: answers questions about the content in the RAG
  • Multiple Choice Quiz: generates a multiple choice quiz and an answer key

The agent provides citations whenever RAG content is used, and is prompted to use general knowledge as little as possible.

Here is a segment from the openstax Calculus textbook (free) that I used for testing:
calc1.pdf

@scottpersinger scottpersinger self-assigned this Jul 29, 2025

from agentic.common import Agent, AgentRunner
from agentic.models import GPT_4O_MINI
# This is the "hello world" agent example. A simple agent with a tool for getting weather reports.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest you update the comment with a fuller description of this agent and how it works. Note your PR comment will be lost to history, but this comment in code will live forever.

The comment should explain how to setup and run the agent. Also , does the RAG indexing happen every time or only once?

Copy link
Collaborator

@scottpersinger scottpersinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BrandonwLii
Copy link
Author

Just updated the documentation for the agent, and added it into the examples list. Also changed the multiple choice agent to generate answers with the questions (hopefully reducing odds of hallucination)

@BrandonwLii BrandonwLii merged commit 91f129b into main Aug 1, 2025
2 checks passed
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.

Demo agent: Study Guide agent

2 participants