GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SRafi007/ai-tutorial-crew: Multi-agent AI system using CrewAI and Ollama to automatically research, write, and review beginner-friendly Python tutorials

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
agents
agents
 
 
configs
configs
 
 
models
models
 
 
output
output
 
 
tasks
tasks
 
 
tools
tools
 
 
ui
ui
 
 
utils
utils
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
activate
activate
 
 
deactivate
deactivate
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

🧠 AI Tutorial Crew

A multi-agent system built using CrewAI and local LLMs via Ollama. This intelligent team of AI agents collaborates to research, write, and review beginner-friendly Python tutorials automatically.

✨ Features

  • šŸ¤– Multi-agent architecture - Specialized Researcher, Writer, and Reviewer agents
  • 🧠 Local LLM powered - Runs on Mistral, Qwen, LLaMA, or other Ollama models
  • āš™ļø YAML-based configuration - Easy to customize and extend
  • šŸ“ Markdown output generation - Clean, structured tutorial files
  • šŸ” Environment variable support - Secure configuration management
  • 🌐 Extensible design - Ready for web search tools and API integrations

šŸ—ļø Project Structure

crewai_python_tutorial_agent/
ā”œā”€ā”€ agents/
│   ā”œā”€ā”€ researcher.py       # Research agent implementation
│   ā”œā”€ā”€ writer.py          # Writing agent implementation
│   └── reviewer.py        # Review agent implementation
ā”œā”€ā”€ tools/
│   └── web_search.py      # Web search utilities
ā”œā”€ā”€ tasks/
│   └── generate_tutorial.py  # Task definitions
ā”œā”€ā”€ models/
│   └── local_llm.py       # Local LLM configuration
ā”œā”€ā”€ configs/
│   └── crew_config.yaml   # Crew configuration
ā”œā”€ā”€ output/                # Generated tutorials
ā”œā”€ā”€ main.py               # Main entry point
ā”œā”€ā”€ requirements.txt      # Python dependencies
ā”œā”€ā”€ .env                  # Environment variables
└── README.md            # This file

šŸš€ Quick Start

Prerequisites

  • Python 3.8+
  • Ollama installed and running

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/ai-tutorial-crew.git
    cd ai-tutorial-crew
  2. Install Ollama and pull a model

    # Install Ollama (if not already installed)
    curl -fsSL https://ollama.com/install.sh | sh
    
    # Pull your preferred model
    ollama pull mistral
    # Or try: ollama pull qwen2 or ollama pull llama3
  3. Install Python dependencies

    pip install -r requirements.txt
  4. Set up environment variables

    cp .env.example .env
    # Edit .env with your configurations

Usage

  1. Run the tutorial generation crew

    python main.py
  2. Check the output

    # Generated tutorial will be saved at:
    cat output/python_tutorial.md

šŸ“– How It Works

The system employs three specialized AI agents working in sequence:

  1. šŸ” Researcher Agent - Gathers information about Python concepts and best practices
  2. āœļø Writer Agent - Creates structured, beginner-friendly tutorial content
  3. šŸ“ Reviewer Agent - Reviews and improves the tutorial for clarity and accuracy

Each agent uses the local LLM through Ollama to perform their specialized tasks, ensuring privacy and eliminating API costs.

šŸ”§ Configuration

Customize the crew behavior by editing configs/crew_config.yaml:

# Example configuration
agents:
  researcher:
    role: "Python Tutorial Researcher"
    goal: "Research comprehensive Python concepts"
    backstory: "Expert in Python programming..."
  
  writer:
    role: "Tutorial Writer"
    goal: "Create engaging beginner tutorials"
    backstory: "Skilled technical writer..."

šŸ“Š Example Output

# Understanding Python Lists: A Beginner's Guide

## What is a List in Python?

A list is a versatile data structure in Python that allows you to store multiple items in a single variable. Lists are ordered, changeable, and allow duplicate values...

## Creating Lists

```python
# Creating a simple list
fruits = ["apple", "banana", "orange"]
print(fruits)  # Output: ['apple', 'banana', 'orange']

Common List Operations

Adding Items

  • append() - Add item to end
  • insert() - Add item at specific position ...

## šŸ› ļø Development

### Adding New Agents

1. Create a new agent file in `agents/`
2. Define the agent's role, goal, and backstory
3. Add the agent to your crew configuration
4. Update `main.py` to include the new agent

### Adding Custom Tools

1. Create tool files in `tools/`
2. Implement your custom functionality
3. Register tools with appropriate agents

## šŸ”® Roadmap

- [ ] **Web Search Integration** - Add real-time research capabilities
- [ ] **Multiple Topic Support** - Generate tutorials for various Python topics
- [ ] **Interactive Mode** - Allow users to specify tutorial topics
- [ ] **Output Formats** - Support for HTML, PDF, and other formats
- [ ] **Quality Metrics** - Automated tutorial quality assessment
- [ ] **Unit Tests** - Comprehensive test coverage

## šŸ¤ Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## šŸ“‹ Requirements

- Python 3.8+
- CrewAI
- Ollama
- PyYAML
- python-dotenv

See `requirements.txt` for complete dependencies.

## šŸ› Troubleshooting

### Common Issues

**Ollama not responding:**
```bash
# Check if Ollama is running
ollama list

# Restart Ollama service
ollama serve

Model not found:

# Pull the required model
ollama pull mistral

Permission errors:

# Ensure output directory exists and is writable
mkdir -p output
chmod 755 output

šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

šŸ™ Acknowledgments

  • CrewAI - For the amazing multi-agent framework
  • Ollama - For local LLM infrastructure
  • The open-source community for inspiration and support

šŸ“¬ Contact

  • GitHub: @yourusername
  • Email: [email protected]

⭐ If you find this project helpful, please consider giving it a star on GitHub!

About

Multi-agent AI system using CrewAI and Ollama to automatically research, write, and review beginner-friendly Python tutorials

Topics

crewailocal-llmmultiagentollamapythonpython-automation

Resources

Readme
Activity

Stars

4 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.