Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_embedders_1 sample does not use the embedders route #3096

Closed
ellnix opened this issue Jan 11, 2025 · 0 comments · Fixed by #3099
Closed

update_embedders_1 sample does not use the embedders route #3096

ellnix opened this issue Jan 11, 2025 · 0 comments · Fixed by #3099

Comments

@ellnix
Copy link
Contributor

ellnix commented Jan 11, 2025

In update embedders settings, the endpoint is PATCH /indexes/{index_uid}/settings/embedders. However, the curl code sample uses the main /settings endpoint:

curl \
  -X PATCH 'http://localhost:7700/indexes/INDEX_NAME/settings' \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "embedders": {
      "default": {
        "source":  "openAi",
        "apiKey": "anOpenAiApiKey",
        "model": "text-embedding-3-small",
        "documentTemplate": "A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}"
      }
    }
  }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant