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.
git clone https://github.com/alfiedennen/gpt-4-coding-assistant.git
cd gpt-4-coding-assistant
pip install -r requirements.txt
python create_embeddings.py
python app.py
Visit the web interface at http://localhost:5000.
Start interacting with the GPT-4 Coding Assistant by typing your code-related queries or requests in the chat interface.
Enable or disable the embeddings lookup by toggling the checkbox.
You can customize the GPT-4 Coding Assistant to work with your codebase by following these steps:
Replace the contents of the code
directory with your codebase.
Re-run the create_embeddings.py
script to generate embeddings for your codebase:
python create_embeddings.py
We welcome contributions to improve the GPT-4 Coding Assistant. To contribute, follow these steps:
Fork the repository.
Create a new branch with a descriptive name:
git checkout -b my-feature-branch
Implement your changes or improvements.
Commit the changes and create a pull request.
Wait for the maintainers to review and merge the changes.
This project is licensed under the MIT License. See the LICENSE file for more information.