Agentic AI Meets Memory: Building Smarter Workflows That Learn Over Time
This project showcases how to build an adaptive AI learning assistant using CrewAI, Streamlit, OpenAI, and ChromaDB. The trainer teaches a topic, quizzes the user, evaluates the responses, and adapts its future teaching strategy by storing contextual memory.
It’s designed for educational, productivity, or coaching workflows that require agent-based reasoning and persistent memory.
- ✅ Multi-agent workflow using CrewAI
- ✅ Dynamic lesson and quiz generation using OpenAI GPT
- ✅ Feedback evaluation with real-time personalization
- ✅ Long-term memory powered by ChromaDB (Vector Store)
- ✅ Streamlit web app for clean UI and interactive demo
| Component | Purpose |
|---|---|
streamlit |
Frontend UI |
openai |
LLM for teaching, quizzes, feedback |
crewai |
Agentic workflow management |
chromadb |
Persistent memory via vector DB |
- Python: >= 3.10 and < 3.13
We recommend usingpyenvto manage Python versions.
pip install streamlit==1.45.1
pip install openai==1.75.0
pip install chromadb==1.0.10
pip install crewai==0.121.0- Set your OpenAI API key
Editadaptive_trainer.pyandmemory_store.py:
openai.api_key = "your-openai-api-key"- Run the app using Streamlit
streamlit run adaptive_trainer.py- Open your browser at http://localhost:8501
.
├── adaptive_trainer.py # Main Streamlit app with agents
├── memory_store.py # Handles ChromaDB integration
├── chroma_storage/ # (auto-created) Persistent memory DB
└── README.md # You're hereThis project is ideal for:
- Personalized education apps
- Agentic AI research demos
- Adaptive productivity tools
- Use cases needing workflow + memory
- Stores user responses, feedback, and weak areas
- Uses OpenAI embeddings + Chroma to persist memory
- Recalls similar learning sessions to guide next steps
- "Photosynthesis"
- "Basics of Python"
- "World War II history"
- "Introduction to Machine Learning"
MIT License. Open for customization and integration into your own projects.