-
Notifications
You must be signed in to change notification settings - Fork 1.3k
37 lines (35 loc) · 1.13 KB
/
update-index.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Update index
on:
workflow_dispatch:
inputs:
force_update:
description: 'Whether to overwrite documents found in the record manager'
required: false
default: false
type: boolean
schedule:
- cron: '0 13 * * *'
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: 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 }}
VOYAGE_AI_MODEL: ${{ secrets.VOYAGE_AI_MODEL }}
VOYAGE_AI_URL: ${{ secrets.VOYAGE_AI_URL }}
VOYAGE_API_KEY: ${{ secrets.VOYAGE_API_KEY }}
FORCE_UPDATE: ${{ github.event.inputs.force_update }}