Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add update trigger for docsite embeddings
  • Loading branch information
hanna-paasivirta committed Apr 22, 2025
commit 0f5e46b310569432d32501a8e4ddd52bb2a72ed7
22 changes: 22 additions & 0 deletions .github/workflows/trigger-embed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Trigger Embed Service

on:
push:
branches:
- main

jobs:
trigger-embed:
runs-on: ubuntu-latest
steps:
- name: Trigger Embed Service
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
curl -X POST https://apollo.staging.openfn.org/services/embed_docsite \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have production and staging pinecone databases, right? We only have one?

So calling out to staging will update the shared database, and production will also get the latest versions on the next search?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as the key that is added on GitHub for this action is the same as the key used in Apollo in the AI Assistant then it will be the same shared database. So we need to make sure we add the same one on GitHub – do you have permission to add secrets?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. Maybe we can add a comment here because this might confuse someone later on

Keys are all sorted!

-H "Content-Type: application/json" \
-d '{
"pinecone_api_key": "${{ secrets.PINECONE_API_KEY }}",
"openai_api_key": "${{ secrets.OPENAI_API_KEY }}"
}'