Skip to content

Conversation

@hanna-paasivirta
Copy link
Contributor

Short Description

Add workflow action to trigger an update to docsite embeddings in Apollo when the docsite is updated.

Details

Posts a request to Apollo to trigger the embed_docs service. It requires Pinecone and OpenAI keys (to be added in secrets).

AI Usage

Please disclose how you've used AI in this work (it's cool, we just want to
know!):

  • Code generation (copilot but not intellisense)
  • Learning or fact checking
  • Strategy / design
  • Optimisation / refactoring
  • Translation / spellchecking / doc gen
  • Other
  • I have not used AI

You can read more details in our
Responsible AI Policy

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!

@josephjclark
Copy link
Collaborator

wonderful - holding off the merge until staging is ready

@josephjclark josephjclark merged commit 9fe48a0 into main Apr 23, 2025
1 check passed
@josephjclark josephjclark deleted the update-docs-embeddings-fixed branch April 23, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants