From 4483a659209a97cf22cdb5784811dd2f34a7fd52 Mon Sep 17 00:00:00 2001 From: eric-volz Date: Mon, 18 Sep 2023 15:55:31 +0200 Subject: [PATCH] update embeddings workflow --- .github/workflows/wiki_scraping_staging.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wiki_scraping_staging.yml b/.github/workflows/wiki_scraping_staging.yml index 363261b..f241ef5 100644 --- a/.github/workflows/wiki_scraping_staging.yml +++ b/.github/workflows/wiki_scraping_staging.yml @@ -19,8 +19,15 @@ jobs: pip install -r requirements.txt working-directory: ./job - - name: Run the script - run: python ./job/app.py + - name: Embeddings for DefichainWiki + run: python ./job/wiki_embedding.py + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + SUPABASE_URL: ${{ vars.STAGING_SUPABASE_API_URL }} + SUPABASE_KEY: ${{ secrets.STAGING_SUPABASE_API_ANON_KEY }} + + - name: Embeddings for DefichainPython + run: python ./job/defichainpython_embedding.py env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} SUPABASE_URL: ${{ vars.STAGING_SUPABASE_API_URL }}