Skip to content

Commit

Permalink
disable pinecone encoding in actions (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
mruwnik authored Aug 21, 2023
1 parent 9ecf594 commit 43d9a2c
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/update-pinecone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 43d9a2c

Please sign in to comment.