Skip to content

GPT-4 Coding Assistant is a web application that leverages the power of OpenAI's GPT-4 to help developers with their coding tasks.

License

Notifications You must be signed in to change notification settings

alfiedennen/GPT-4-coding-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • 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

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.

About

GPT-4 Coding Assistant is a web application that leverages the power of OpenAI's GPT-4 to help developers with their coding tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published