This GitHub Action indexes specified file types in Opper.
apikey
: The Opper API key (required)index
: The Opper index name (default:repo-docs
)folder
: The folder to index (default:.
)file_types
: JSON array of file extensions to index (default:.md .mdx .txt
)model
: Custom model to use for indexing (optional)
name: Index Docs in Opper
on:
push:
branches: [main]
jobs:
index-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Index docs in Opper
uses: opper-ai/[email protected]
with:
apikey: ${{ secrets.OPPER_API_KEY }}
name: Index Docs in Opper
on:
push:
branches: [main]
jobs:
index-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Index docs in Opper
uses: opper-ai/[email protected]
with:
folder: 'docs'
apikey: ${{ secrets.OPPER_API_KEY }}
index: 'my-custom-index'
name: Index Docs in Opper
on:
push:
branches: [main]
jobs:
index-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Index docs in Opper
uses: opper-ai/[email protected]
with:
apikey: ${{ secrets.OPPER_API_KEY }}
model: 'azure/gpt-4o-eu'
name: Index Docs in Opper
on:
push:
branches: [main]
jobs:
index-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Index docs in Opper
uses: opper-ai/[email protected]
with:
apikey: ${{ secrets.OPPER_API_KEY }}
file_types: '.md .mdx .txt .html .js'