GitChat is a chatbot that is able to search and answer questions about a GitHub repository.
Demo chat: https://gitchat.kpolley.com
Demo share: https://gitchat.kpolley.com/share/FrAT0ak
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.
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
# 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