Connect Git repositories as a documentation source

Adding a GitHub repository as a source when creating a Biel.ai project

The best answer to "how does this work?" is often the code itself, not the doc page describing it. You can now connect a Git repository as a source, so the chatbot reads your code alongside your written docs.

This works for both public and private repositories. The chatbot indexes the files, and answers can pull from the implementation directly.

A few ways this plays out:

  • Someone asks how a config option behaves and the answer cites the function that reads it, not a doc page that drifted out of date
  • A user needs an example and gets one from a real test or sample file in the repo
  • An internal team asks about a service and the answer references the source, even when nobody wrote a doc page for it

Public and private repos both work, so you can mix open-source code with internal repositories in the same knowledge base.

To turn it on, add a Git source in Settings > Sources and point it at the repository. The sources docs cover access for private repos.

One tip: scope the source to the directories that hold real reference material (examples, SDKs, config) and skip build output and vendored dependencies. A tighter index gives sharper answers than dumping the whole tree.


Want a hand connecting your first repo? Hit reply and we'll get you set up.

Try me ↓