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.
- Interact with GPT-4 to generate and understand code snippets
- Leverage embeddings and the Annoy library to search for similar code snippets in the provided codebase
- Utilize the web interface to communicate with the GPT-4 model
- Track token usage during the conversation
- Enable or disable embeddings lookup during the conversation
- Clone the repository:
git clone https://github.com/alfiedennen/gpt-4-coding-assistant.git
- Change to the project directory:
cd gpt-4-coding-assistant
- Install the required dependencies:
pip install -r requirements.txt
- Create embeddings for your codebase:
python create_embeddings.py
- Run the Flask web application:
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.