AI Personalized Learning Agent: phidata + googledocs4

This commit is contained in:
Madhu 2025-01-08 22:14:13 +05:30
parent 0d2f04f390
commit f7b1c8f4eb
2 changed files with 12 additions and 10 deletions

View file

@ -1,6 +1,6 @@
# AI Personal Learning Agent
A Personal learning assistant built on PraisonAI Framework that explains a particular topic, creates learning plans and roadmaps using multiple specialized AI agents which are self reflective and hierarchical. The system uses OpenAI's GPT-4o to generate comprehensive learning materials, roadmaps, and practice exercises.
A Personal learning Roadmap Architect assistant built on Phidata Framework that explains a particular topic, creates learning plans and roadmaps using multiple specialized AI agents which are hierarchical. The system uses OpenAI's GPT-4o to generate comprehensive learning materials, roadmaps, and practice exercises. This uses streamlit for UI.
## Features
@ -8,7 +8,7 @@ A Personal learning assistant built on PraisonAI Framework that explains a parti
- 🗺️ Learning Roadmaps: Generates structured learning paths with time estimates
- 📚 Resource Curation: Finds and validates high-quality learning materials
- ✍️ Practice Materials: Creates progressive exercises and projects
- 🔍 Internet Search Integration: Used a custom InternetSearchTool tool for real-time research
- 🔍 Internet Search Integration: Used a DuckDuckGo tool for real-time research
- 📊 Live Terminal Output: Shows real-time agent interactions in terminal - also in streamlit UI
## Agents
@ -31,18 +31,18 @@ A Personal learning assistant built on PraisonAI Framework that explains a parti
pip install -r requirements.txt
```
## Configuration
## Configuration - IMPORTANT STEP
1. Get your OpenAI API Key
- Create an account on [OpenAI Platform](https://platform.openai.com/)
- Navigate to API Keys section
- Create a new API key
2. (Optional) Set up environment variables
```bash
export OPENAI_API_KEY='your-api-key-here'
```
This way of using the openai key is fundamental to how PraisonAI is designed - it initializes the OpenAI client at module import time, which means setting the environment variable after import won't help. We need to set the environment variable BEFORE importing PraisonAI. So, export way helps majorly - else if you want to use streamlit, keep the session state openai api key intializations before the imports of praisonAI
2. Get your Composio API Key
- Create an account on [Composio Platform](https://composio.ai/)
- [IMPORTANT] - For you to use the app, you need to make new connection ID with google docs and composio.Follow the below two steps to do so:
- composio add googledocs (IN THE TERMINAL) -> Create a new connection -> Select OAUTH2 -> Select Google Account and Done.
- In the composio account website, go to apps, select google docs tool, and click create integration (violet button) and click Try connecting defaults googldocs button and we are done. (https://app.composio.dev/app/googledocs )
## Usage
@ -53,6 +53,7 @@ streamlit run ai_personal_learning_agent.py
2. Use the application
- Enter your OpenAI API key in the sidebar (if not set in environment)
- Enter your Composio API key in the sidebar
- Type a topic you want to learn about (e.g., "Python Programming", "Machine Learning")
- Click "Generate Learning Plan"
- Wait for the agents to generate your personalized learning plan

View file

@ -2,5 +2,6 @@ streamlit==1.41.1
openai==1.58.1
duckduckgo-search==6.4.1
typing-extensions>=4.5.0
phidata
composio-phidata
phidata==2.7.3
composio-phidata==0.6.9
composio_core