This project showcases an advanced Agentic AI application using Groq Llama 3.3 70B model. It employs multiple specialized agents to handle web searches, financial data analysis, and YouTube video comprehension. The application features an intuitive web-based playground interface for seamless interaction.
- Role: Searches the web for information using DuckDuckGo.
- Capabilities:
- Performs general web searches.
- Provides results with sources.
- Summarizes news and updates.
- Tools: DuckDuckGo search integration.
- Role: Gathers and analyzes financial data.
- Capabilities:
- Retrieves stock prices, analyst recommendations, company information, and news.
- Presents results in tables.
- Assists users in making informed investment decisions.
- Tools: YFinanceTools with financial data features.
- Role: Analyzes and summarizes YouTube videos.
- Capabilities:
- Extracts video metadata and captions.
- Answers user questions based on video content.
- Summarizes videos when provided with a URL.
- Tools: YouTubeTools for video analysis.
- Python: Ensure Python 3.8+ is installed.
- Dependencies: Install required packages using
pip.
-
Clone the repository:
git clone <repository_url> cd <repository_folder>
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile and configure environment variables if needed:touch .env
Example:
Groq_API_KEY=<your_api_key> phi_api_key=<your_api_key> DB_PATH=tmp/groq_agents.db
-
Run the application:
python main.py
-
Open the web application in your browser:
http://127.0.0.1:8000
- Ask questions requiring web searches.
- Provides sourced information using DuckDuckGo.
- Query for stock prices, recommendations, or news.
- Displays results in structured tables.
- Provide a YouTube video URL.
- Summarizes videos or answers questions based on their content.
first.py: Entry point of the application.requirements.txt: Lists dependencies.tmp/: Stores SQLite databases for agent history and storage.
- Model: Groq Llama 3.3 70B (Versatile)
- Tools:
- DuckDuckGo for web searches.
- YFinance for financial data.
- YouTubeTools for video analysis.
- Backend: SQLite for agent storage.
- Frontend: Playground interface for user interaction.
Feel free to contribute to the project by submitting issues or pull requests. Ensure proper documentation of new features or bug fixes.
Special thanks to the Groq and PHI teams for their advanced models and tools, making this project possible.
- Integrate more agents for specialized domains (e.g., healthcare, education).
- Add real-time streaming capabilities for responses.
- Improve the user interface for a seamless experience.