Skip to content
name: Clear and update index
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: Indexing
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install
- name: Clear index
run: poetry run python _scripts/clear_index.py
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
WEAVIATE_URL: ${{ secrets.WEAVIATE_URL }}
WEAVIATE_API_KEY: ${{ secrets.WEAVIATE_API_KEY }}
RECORD_MANAGER_DB_URL: ${{ secrets.RECORD_MANAGER_DB_URL }}
- name: Ingest docs
run: poetry run python backend/ingest.py
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
WEAVIATE_URL: ${{ secrets.WEAVIATE_URL }}
WEAVIATE_API_KEY: ${{ secrets.WEAVIATE_API_KEY }}
RECORD_MANAGER_DB_URL: ${{ secrets.RECORD_MANAGER_DB_URL }}

Check failure on line 37 in .github/workflows/clear-and-update-index.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/clear-and-update-index.yml

Invalid workflow file

You have an error in your yaml syntax on line 37
VOYAGE_API_KEY: ${{ secrete.VOYAGE_API_KEY }}
VOYAGE_AI_MODEL: ${{ secrets.VOYAGE_AI_MODEL }}
VOYAGE_AI_URL: ${{ secrets.VOYAGE_AI_URL }}