From 43d9a2cbe4d3ddccd9c723db0a49a1f6765e05e6 Mon Sep 17 00:00:00 2001 From: Daniel O'Connell Date: Tue, 22 Aug 2023 00:37:16 +0200 Subject: [PATCH] disable pinecone encoding in actions (#148) --- .github/workflows/update-pinecone.yml | 46 +++++++++++++-------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/update-pinecone.yml b/.github/workflows/update-pinecone.yml index 0cb7924b..7f033ca0 100644 --- a/.github/workflows/update-pinecone.yml +++ b/.github/workflows/update-pinecone.yml @@ -78,28 +78,28 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Setup Python environment - uses: actions/setup-python@v2 - with: - python-version: '3.x' + # - name: Setup Python environment + # uses: actions/setup-python@v2 + # with: + # python-version: '3.x' - - name: Install dependencies - run: | - pip install -r requirements.txt; - python -c 'import nltk; nltk.download("punkt")' + # - name: Install dependencies + # run: | + # pip install -r requirements.txt; + # python -c 'import nltk; nltk.download("punkt")' - - name: Process dataset - env: - ARD_DB_USER: ${{ secrets.ARD_DB_USER || inputs.db_user }} - ARD_DB_PASSWORD: ${{ secrets.ARD_DB_PASSWORD || inputs.db_password }} - ARD_DB_HOST: ${{ secrets.ARD_DB_HOST || inputs.db_host }} - ARD_DB_NAME: alignment_research_dataset - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || inputs.openai_api_key }} - PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY || inputs.pinecone_api_key }} - PINECONE_ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT || inputs.pinecone_environment }} - run: | - if [ "${{ inputs.datasource }}" = "all" ]; then - python main.py pinecone_update_all - else - python main.py pinecone_update ${{ inputs.datasource }} - fi + # - name: Process dataset + # env: + # ARD_DB_USER: ${{ secrets.ARD_DB_USER || inputs.db_user }} + # ARD_DB_PASSWORD: ${{ secrets.ARD_DB_PASSWORD || inputs.db_password }} + # ARD_DB_HOST: ${{ secrets.ARD_DB_HOST || inputs.db_host }} + # ARD_DB_NAME: alignment_research_dataset + # OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY || inputs.openai_api_key }} + # PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY || inputs.pinecone_api_key }} + # PINECONE_ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT || inputs.pinecone_environment }} + # run: | + # if [ "${{ inputs.datasource }}" = "all" ]; then + # python main.py pinecone_update_all + # else + # python main.py pinecone_update ${{ inputs.datasource }} + # fi