Github Integration with Bind AI
Overview
Bind AI allows you to connect your GitHub code repository to provide personalized context for code generation. When you connect your GitHub, Bind AI creates embeddings and securely stores your data so that it can be automatically retrieved when you ask questions about your data, or if you want to generate code based on your repo or previous code.
Integrations require a Premium subscription, or a Scale plan trial (start a free trial) to test it out.
Connecting GitHub Integration:
Create Github Access Token: Before you get started, you will need to create an access token and authorize which repos you want to provide access to. This detailed video will guide you through it
Go to GitHub Settings:
Click on your profile picture in the upper right corner of any GitHub page.
Select “Settings”.
Navigate to Developer Settings:
In the left sidebar, click on “Developer settings”. You’ll find this option at the bottom of the left sidebar
Generate a New Token:
Click on “Personal access tokens” in the left sidebar and select “Fine grained tokens”
Click on “Generate new token”.
Configure the Token:
Give your token a descriptive name.
Select the scopes or permissions you’d like to grant this token. For example, select “repo” for full control of private repositories.
Set Expiration Period: Configure the expiration period. You can choose from 7 days, 30 days, 60 days, 90 days, or no expiration.
Important: Repository access
You need to select which repos you want to access via the token.
The options are Public Repositories, All Repositories, and Only Select repositories.
It depends on your personal preferences and which data you want to connect. You can always edit the token and update the repository access permissions. Make sure to re-sync any new files via the Bind AI integrations popup.
Make sure to copy your new personal access token now. You won’t be able to see it again!
Now, go to Bind AI, and click on the Github option in the Left Navigation, it will open a popup which shows you the option to Sync your Github with Bind AI. Here's a detailed step-by-step video
Click on "Get Started"
Enter your Github username (note this is the username, and not the email address for your Github account)
Enter the access token you created.
Click "Fetch Repositories": This step will only get the list of your Repositories and the Branches
After that, select the Repository name.
When you click on the Name, you will see the list of all branches.
Select one branch at a time, and click "Initiate Sync"
You can select multiple branches, however, it will slow down your sync, and Github API may rate limit or truncate.
How many repositories can you sync?
Premium plan allows syncing 1 Github repository
Scale plan allows syncing up to 3 Github repositories with multiple branches.
See Pricing here: https://www.getbind.co/pricing
Last updated