Repository Context
The repository context is used to connect Tabby with a source code repository from Git, GitHub, GitLab, etc. Tabby fetches the source code from the repository, parses it into an AST, and stores it in the index. During LLM inference, this context is utilized for code completion, as well as chat and search functionalities.
Adding a Repository through Admin UIβ
- Navigate to the Integrations > Repository Providers page.
- Click Create to begin the process of adding a repository provider.
-
For Git, you only need to fill in the name and the URL of the repository.
Local repositories are supported via the file:// protocol, but if running from a Docker container, you need to make it accessible with the
--volume
flag and use the internal Docker path. -
For GitHub / GitLab, a personal access token is required to access private repositories.
- Check the instructions in the corresponding tab to create a token.
- Once the token is set, you can add the repository by selecting it from the dropdown list.
-
After adding the repository, a job will be created to fetch its information and build it into the index. You can view the job's log on the
Jobs
page.