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

https://github.com/0xpriyanshujha/codeyoda

CodeYoda - Your own code assistant powered by Codellama (Ollama)
https://github.com/0xpriyanshujha/codeyoda

codellama genai gradio-interface langchain ollama python

Last synced: 5 months ago
JSON representation

CodeYoda - Your own code assistant powered by Codellama (Ollama)

Awesome Lists containing this project

README

          

# CodeYoda

**CodeYoda** is an AI-powered code assistant designed to streamline your coding process. Leveraging the advanced capabilities of CodeLlama (Ollama), CodeYoda assists with code generation, debugging, and optimization across various programming languages and frameworks.

## Features

- **Code Generation**: Generate code snippets or complete functions based on your input.
- **Code Debugging**: Identify and fix bugs in your code quickly with intelligent suggestions.
- **Code Optimization**: Get recommendations to optimize your code for performance and readability.
- **Customization**: Tailor CodeYoda's behavior to match your coding style and project requirements.

## Getting Started

### Prerequisites

- **Python 3.8+**: Ensure you have Python installed on your system.
- **Ollama CLI**: Install the Ollama CLI to interact with the CodeLlama model.
- **pip**: Python's package installer.

### Installation

1. Clone the repository:

```bash
git clone https://github.com/0xPriyanshuJha/CodeYoda.git
cd CodeYoda
```

2. Install the required dependencies:

```bash
pip install -r requirements.txt
```

3. Set up the CodeLlama model via Ollama:

```bash
ollama pull codellama
```

4. Start the CodeYoda assistant:

```bash
python codeyoda.py
```

## Usage

After launching CodeYoda, you can interact with it via a command-line interface or integrate it into your IDE of choice using available plugins.

### Basic Commands

- **Generate Code**: Describe the functionality you need, and CodeYoda will generate the code.
- **Debug Code**: Paste your code snippet, and CodeYoda will highlight errors and suggest fixes.
- **Optimize Code**: Submit a piece of code for optimization suggestions.

### Example

![image](https://github.com/user-attachments/assets/df312f01-d7a8-4bc8-a148-0559bac5a260)

![image](https://github.com/user-attachments/assets/be657c13-dd39-4687-a5a4-4b59cba6b9ba)

![image](https://github.com/user-attachments/assets/cfb4f5eb-1259-4860-915a-a891a5401288)

## License

This project is licensed under the MIT License.

## Acknowledgements

- [CodeLlama (Ollama)](https://ollama.com) for providing the core AI capabilities.