Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ jobs:
supabase-url: 'https://your-project-ref.supabase.co'
supabase-service-role-key: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
openai-key: ${{ secrets.OPENAI_KEY }}
embedding-model: 'text-embedding-3-large' # optional; defaults to text-embedding-ada-002
docs-root-path: 'docs' # the path to the root of your md(x) files
```

Make sure to set `SUPABASE_SERVICE_ROLE_KEY`, and `OPENAI_KEY` as repository secrets in your repo settings (settings > secrets > actions).

You can override the OpenAI embedding model by providing the optional `embedding-model` input (defaults to `text-embedding-ada-002` if not supplied).

See the instructions in the [`headless-vector-search`](https://github.com/supabase/headless-vector-search) for more information on how to query your database from your website.

## Developers
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
supabase-service-role-key:
required: true
description: 'Your Supabase SERVICE_ROLE key'
embedding-model:
required: false
description: 'The embedding model to use. Defaults to text-embedding-ada-002'
openai-key:
required: true
description: 'Your OpenAI API key'
Expand Down
Loading
Loading