Skip to content

Code Wizard is a coding companion/ code generation tool empowered by CodeLLama-v2-34B AI to automatically generate and enhance code based on best practices found in your GitHub repository.

Notifications You must be signed in to change notification settings

ShashankGupta10/Code-Wizard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Wizard AI 🧙

Project Description

Code Wizard is a groundbreaking code generation tool empowered by advanced AI to automatically generate and enhance code based on best practices found in your GitHub repository. Whether you're a developer looking to streamline code creation or seeking intelligent solutions for code-related queries, Code Wizard is your coding companion, providing context-aware responses and code generation aligned with your project's standards.

Overview

Code Wizard revolutionizes the coding landscape by introducing an AI-driven solution that understands the intricacies of your GitHub repository. Imagine having an intelligent assistant that not only answers your coding questions but also generates and refines code snippets tailored to your project's coding practices. Code Wizard makes this vision a reality, offering a seamless solution for developers and teams dealing with code-centric tasks.

1. Intelligent Code Generation

Code Wizard utilizes state-of-the-art generative AI techniques to analyze your GitHub repository, understand coding patterns, and generate context-aware code snippets. Say goodbye to repetitive coding tasks – Code Wizard automates code generation, saving you time and ensuring adherence to your project's coding standards.

2. Code Refactoring

Improve the quality of your codebase with Code Wizard's intelligent code refactoring capabilities. It identifies areas for improvement, suggests changes, and enhances your code according to established best practices, promoting cleaner and more maintainable code.

3. Context-Aware Code Responses

When faced with coding questions, Code Wizard doesn't just provide generic answers. It analyzes the context of your project, considers your coding practices, and delivers responses tailored to your specific codebase, offering valuable insights and guidance.

4. Seamless Integration

Code Wizard seamlessly integrates with your development environment, providing an effortless coding experience. Whether you're using popular IDEs or working in a collaborative coding environment, Code Wizard adapts to your workflow, enhancing your coding efficiency.

Code Wizard is not just a code generation tool; it's an intelligent companion for developers seeking to elevate their coding experience by leveraging the power of AI. Experience the efficiency and precision of Code Wizard and redefine the way you approach coding challenges!

Use Cases

Explore the versatility of Code Wizard and discover how it can elevate various aspects of your coding workflow.

1. Code Quality Enhancement

Use Code Wizard to identify and address code quality issues in your project. It suggests refactoring options, helping you maintain a high standard of code across your codebase.

2. Codebase Understanding

For new team members or contributors, Code Wizard serves as an onboarding assistant by providing context-aware explanations and examples, facilitating a quicker understanding of the project's codebase.

3. Codebase Query Resolution

When faced with coding questions, ask Code Wizard for context-aware responses. It understands the specifics of your project and provides guidance aligned with your coding practices, acting as a reliable coding mentor.

4. Collaborative Coding

In a collaborative coding environment, Code Wizard ensures consistency by generating code that aligns with the established practices in your project. It becomes an essential tool for maintaining coding standards across team members.

Tech Stack

  • GitHub API: Code Wizard leverages the GitHub API to access and analyze repository data.
  • Generative AI: The project incorporates advanced generative AI techniques for code generation and refactoring.
  • Python: The project is primarily developed in Python.
  • Langchain: Langchain is used for natural language processing (NLP) tasks, including text extraction and understanding.
  • Streamlit: Streamlit is the framework used for creating a user-friendly web interface for the chatbot.
  • FAISS: Used as the vector store to provide context to the LLMs. Free, Open source and Fast.
  • Cohere Embeddings: Cohere Embeddings are used for creating embeddings in the FAISS vector database.
  • Together AI: Together AI is used for taking the Phind/Phind-CodeLlama-34B-v2 code model from HuggingFace Hub.

Deployed Link

Live

Getting Started

Get Code Wizard up and running on your local machine by following these simple steps.

Prerequisites

Ensure you have the following prerequisites installed on your machine:

  • Python (version 3.10 or higher)
  • pip (Python package installer)

Installation

  1. Clone the Repository:

    git clone https://github.com/ShashankGupta10/Code-Wizard.git
    cd Code-Wizard
    
  2. Install Dependencies:

    pip install -r requirements.txt
    
  3. Obtain API Keys

    • Create a .streamlit folder in the root directory of the project.
    • Add a secrets.toml file and include the following line:
    • COHERE_API_KEY = "your-api-key"
    • TOGETHER_API_KEY = "your-api-key"
  4. Run the Application:

    • Execute the following command:
    streamlit run app.py
    

Demo

code-wizard.mp4

Author

Made with ❤️ by Shashank Gupta

Experience the transformative capabilities of Code Wizard and redefine your coding journey!

About

Code Wizard is a coding companion/ code generation tool empowered by CodeLLama-v2-34B AI to automatically generate and enhance code based on best practices found in your GitHub repository.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages