An open API service indexing awesome lists of open source software.

https://github.com/code-master-harsh/study-crew-v2

An AI-powered study assistant using CrewAI that extracts text from PDFs and generates structured summaries and notes. Modular agent-based design with YAML-configured tasks and tools.
https://github.com/code-master-harsh/study-crew-v2

ai-assistant automation crewai langchain llm modular-ai openai-api poetry python study-tool

Last synced: 3 days ago
JSON representation

An AI-powered study assistant using CrewAI that extracts text from PDFs and generates structured summaries and notes. Modular agent-based design with YAML-configured tasks and tools.

Awesome Lists containing this project

README

          

# study-crew-v2

AI-powered study assistant built with CrewAI.
Upload study materials (PDFs), and interact with an intelligent agent crew to generate summaries and structured notes.

---

## ๐Ÿš€ Features

- ๐Ÿง  Extracts text from PDF study material
- โœ๏ธ Generates concise summaries and structured notes
- ๐Ÿค– Modular CrewAI agent orchestration
- โš™๏ธ Extensible tool setup and agent config via YAML

---

## ๐Ÿ“ Project Structure

```
study_crew_v2/
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ poetry.lock
โ”œโ”€โ”€ knowledge/ # Upload your PDF files here
โ”œโ”€โ”€ src/
โ”‚ โ””โ”€โ”€ study_crew_v2/
โ”‚ โ”œโ”€โ”€ main.py # Entrypoint to run the crew
โ”‚ โ”œโ”€โ”€ crew.py # Crew and agent assembly
โ”‚ โ”œโ”€โ”€ config/
โ”‚ โ”‚ โ”œโ”€โ”€ agents.yaml
โ”‚ โ”‚ โ””โ”€โ”€ tasks.yaml
โ”‚ โ””โ”€โ”€ tools/
โ”‚ โ””โ”€โ”€ custom_tool.py
โ”œโ”€โ”€ .env.example # Example environment variables
```

---

## ๐Ÿ› ๏ธ Installation

> This project uses [Poetry](https://python-poetry.org/) for dependency management.

### 1. Clone the repo

```bash
git clone https://github.com/YOUR-USERNAME/study-crew-v2.git
cd study-crew-v2
```

### 2. Install Poetry (if not already installed)

```bash
curl -sSL https://install.python-poetry.org | python3 -
```

Or via pipx:

```bash
pipx install poetry
```

### 3. Install dependencies

```bash
poetry install
```

### 4. Create `.env` file

Duplicate the `.env.example` file and fill in your API keys and configuration:

```bash
cp .env.example .env
```

Edit `.env` with your Azure OpenAI details.

---

## ๐Ÿงช Running the Project

### Upload study materials

Place all your `.pdf` files in the `knowledge/` directory.

### Start the AI Crew

```bash
poetry run run_crew
```

---

## ๐Ÿ” .env Configuration

Example `.env.example`:

```
model=azure/gpt-35-turbo
AZURE_OPENAI_API_KEY=your_azure_api_key_here
AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com/
AZURE_OPENAI_API_VERSION=2024-05-01-preview # API version for Azure OpenAI
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-35-turbo # Deployment name for Azure OpenAI

OPENAI_API_KEY=your_azure_api_key_here
```

> Both Azure OpenAI and OpenAI key fields are set for compatibility. Use Azure credentials for both.

---

## ๐Ÿงฉ Dependencies

- `crewai[tools]`
- `openai`, `langchain`, `langchain-openai`, `langchain-core`, `langchain-tools`
- `pymupdf` for PDF parsing

All handled via Poetry in `pyproject.toml`.

---

## โœ๏ธ Author

**Harsh Vardhan Sharma**

[GitHub Profile](https://github.com/code-master-harsh)

---