/GitChat

Chat with your git repo

Primary LanguageTypeScriptOtherNOASSERTION

GitChat

Deploy with Vercel

GitChat is a chatbot that is able to search and answer questions about a GitHub repository.

hello

Demo

Demo chat: https://gitchat.kpolley.com

Demo share: https://gitchat.kpolley.com/share/FrAT0ak

Use cases

You can use this chatbot to answer questions about a repository you are new to, or you can offer GitChat as an internal service to an organization so every engineer has a helpful chatbot to answer questions about the organization's private repository.

Features

The UI was built using Vercel's Next.js AI Chatbot Template

It includes

  • Google authentication with Auth.js
  • User session management and chat history
  • Chat sharing
  • Dark/Light mode

Usage

# Install dependencies
npm install

# Create and populate the .env.local file with your environment variables
# (OpenAI key, Github repo, etc.)
cp .env.example .env.local

# Initialize the vector DB
# this command will clone the GitHub repo and populate the database with the vector embeddings of the code
npm run generate

# Run the server. Visit http://localhost:3000 to see the chatbot
npm run dev