Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vectara/vectara-index-git-docs

Index contents from a GitHub repository to Vectara
https://github.com/vectara/vectara-index-git-docs

search vectara

Last synced: 11 days ago
JSON representation

Index contents from a GitHub repository to Vectara

Awesome Lists containing this project

README

        

## vectara-index-git-docs

Find all documents that have changed in a GitHub repository and submit them to Vectara.

Useful for auto-indexing documentation and other enterprise content contained in GitHub repositories.

## Usage

To use this GitHub action, add a file at `.github/workflows/vectara.yml` with the following contents.

Add secrets to the repository for the `secrets.` values in this template.

```yaml
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
name: Index changed-files
steps:
- uses: vectara/[email protected]
with:
vectaraAccountNumber: ${{ secrets.VECTARA_ACCOUNT_NUMBER }}
vectaraCorpusID: ${{ secrets.VECTARA_CORPUS_NUMBER }}
vectaraClientID: ${{ secrets.VECTARA_CLIENT_ID }}
vectaraClientSecret: ${{ secrets.VECTARA_CLIENT_SECRET }}
filesPattern: |
**/*.md
```

## Configuration
| Parameter | Description | Default
|:-----------------------:|:--------------------------------------------:|:----------------------------:
| vectaraAccountNumber | Vectara Account Number | N/A
| vectaraCorpusID | Vectara Account ID | N/A
| vectaraClientID | Vectara OAuth2 Client ID | N/A
| vectaraClientSecret | Vectara OAuth2 Client Secret | N/A
| incrementalIndexing | Whether this is the first time indexing (set to "true") to you want an incremental | true
| filesPattern | What files to index | Optional: ** (All files)
| vectaraAuthEndpoint | Where to authenticate for an OAuth 2.0 token | Optional: Auto-set based on your Account number
| vectaraIndexingEndpoint | api.vectara.io | Optional: not needed for most accounts