Code Monkey home page Code Monkey logo

repo-chat's Introduction

Repo Chat

Repo chat allows you to ask questions about a GitHub repository.

Requirements

In this project we use OpenAI embeddings and Supabase with pgvector as our vector database.

You can switch out either of these with your own preference.

How To Run

  1. Go to Supabase

  2. Create your account, if you already don’t have it.

  3. Once your account is created, click on All projects>Create Project

  4. Put your project name, then it will give you a Supabase URL and a service key.

  5. Copy .env.example file and rename it as .env

  6. Change the Supabase URL and the key in the .env file

  7. Now, click on your project name on Supabase, and click on the SQL Editor menu which is on the left sidebar. image

  8. Open schema.sql file in your IDE, copy it and paste in the Supabase's Query Editor, Hit Run.

  9. Configure the .env file with your repo url, repo branch of your choice, openai key, make sure you changed the Supabase's URL and key in the step 6.

  10. Run pip install -r requirements.txt to install the dependencies.

  11. Run the python3 load.py script to clone the repo.

  12. Run the python3 embed.py script to embed the repo.

  13. Run the python3 main.py script to ask questions about the repo.

Contact

If you have any questions, feel free to reach out to Mckay on Twitter!

repo-chat's People

Contributors

mckaywrigley avatar jdban avatar ilyatriplewhale avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.