rag_add_source
Register a GitHub repository as a documentation source for RAG indexing. Specify repo, branch, and file patterns, then run ingestion to make the docs searchable.
Instructions
Register a new documentation source for RAG indexing.
After adding a source, run rag_ingest(source_name=name) to index it.
Args: name: Unique name for this source (e.g., "my-project-docs") repo_owner: GitHub repository owner (e.g., "informatics-isi-edu") repo_name: GitHub repository name (e.g., "deriva-ml") branch: Git branch to index (default "main") path_prefix: Only index files under this path (default "docs/") include_patterns: File patterns to include (default ["*.md"]) doc_type: Document type tag for filtering (default "user-guide")
Returns: Dict confirming the source was added.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| branch | No | main | |
| doc_type | No | user-guide | |
| repo_name | Yes | ||
| repo_owner | Yes | ||
| path_prefix | No | docs/ | |
| include_patterns | No |