Welcome to the Explainit Crew project, powered by crewAI. A basic CrewAI app that tries to explain given topics in simple terms.
Ensure you have Python >=3.10 <=3.13 installed on your system. This project uses UV for dependency management and package handling, offering a seamless setup and execution experience.
ExplainIt uses Llama3.2, you can find the installation instructions here. Feel free to explore other LLMs based on the CrewAI documentation and speed up the inference.
First, if you haven't already, install uv:
pip install uv
Next, navigate to your project directory and install the dependencies:
(Optional) Lock the dependencies and install them by using the CLI command:
crewai install
Add your Llama
details into the .env
file
- Modify
src/explainit/config/agents.yaml
to define your agents - Modify
src/explainit/config/tasks.yaml
to define your tasks - Modify
src/explainit/crew.py
to add your own logic, tools and specific args - Modify
src/explainit/main.py
to add custom inputs for your agents and tasks
To kickstart your crew of AI agents and begin task execution, run this from the root folder of your project:
$ crewai run
This command initializes the explainIt Crew, assembling the agents and assigning them tasks as defined in your configuration.
This example, unmodified, will run the create a report.md
file with the output of a research on LLMs in the root folder.
Instead of dealing with the CLI, if you want to interact with the app via browser, then, go to src/explainit/main.py
:
- comment the existing code block
- install "streamlit" using:
uv pip install streamlit
- enable the code block containing streamlit block
- run
streamlit run main.py
- access the app at: http://localhost:8501
![Screenshot 2024-11-21 at 5 21 44 PM](https://private-user-images.githubusercontent.com/3032301/388758092-3963c64a-d2f8-4330-b39d-088feea9cb3c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMDkyOTIsIm5iZiI6MTczOTIwODk5MiwicGF0aCI6Ii8zMDMyMzAxLzM4ODc1ODA5Mi0zOTYzYzY0YS1kMmY4LTQzMzAtYjM5ZC0wODhmZWVhOWNiM2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMTczNjMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mjc1M2Y2YjJlYWFjZTYxZWEwMjA4MTk5ZWY2Zjg4NDkwNzVkZGQ4ZjlmZjU2NTg0NjEwYTBjMzliMzRjOWNlYyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.uSJjxfp-P1t082eFBxdnDEK0UtX1WTjIcvvnD2iqy-k)