alfiedennen / GPT-4-coding-assistant

GPT-4 Coding Assistant is a web application that leverages the power of OpenAI's GPT-4 to help developers with their coding tasks.
MIT License
57 stars 14 forks source link

GPT-4 Coding Assistant

GPT-4 Coding Assistant is a web application that leverages the power of OpenAI's GPT-4 to help developers with their coding tasks. The application serves as an interactive chatbot that assists in code generation, understanding, and troubleshooting. It also utilizes embeddings and the Annoy library to search for similar code snippets in the provided codebase, offering more contextually relevant responses.

Table of Contents

Features

Installation

  1. Clone the repository:
git clone https://github.com/alfiedennen/gpt-4-coding-assistant.git
  1. Change to the project directory:
cd gpt-4-coding-assistant
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Create embeddings for your codebase:
python create_embeddings.py

Usage

  1. Run the Flask web application:
python app.py
  1. Visit the web interface at http://localhost:5000.

  2. Start interacting with the GPT-4 Coding Assistant by typing your code-related queries or requests in the chat interface.

  3. Enable or disable the embeddings lookup by toggling the checkbox.

Customization

You can customize the GPT-4 Coding Assistant to work with your codebase by following these steps:

  1. Replace the contents of the code directory with your codebase.

  2. Re-run the create_embeddings.py script to generate embeddings for your codebase:

python create_embeddings.py

Contributing

We welcome contributions to improve the GPT-4 Coding Assistant. To contribute, follow these steps:

  1. Fork the repository.

  2. Create a new branch with a descriptive name:

git checkout -b my-feature-branch
  1. Implement your changes or improvements.

  2. Commit the changes and create a pull request.

  3. Wait for the maintainers to review and merge the changes.

License

This project is licensed under the MIT License. See the LICENSE file for more information.