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

Upgrade vectorize support to Astra's Public Preview available service #33

Merged
merged 4 commits into from
May 28, 2024

Conversation

hemidactylus
Copy link
Collaborator

I have extended the vectorize support to cover for what has been launched in public preview this week.
Namely, this means bumping astrapy to access the latest parameters "service options", and the various ways of passing secrets to embedding services:

  • through the KMS
  • through a header (not through secrets stored in astra)
  • no secrets (i.e. right now nVidia nemo).
    A further param ( <--> the header) is added to the vector store and the helper "util" class to achieve that (plus further ValueError for new unacceptable combinations of parameters)

Much has changed in the tests, which end up unavoidably convoluted for testing these things according to what services are available on which environments: the "main" vectorize is now openai, so that "regular" astra have it. This requires
(a) an openai key - I have not entered any in the CI yet
(b) which must be also set as a secret in the KMS for that account (same)
These two things I have yet to fix on the repo CI, but so far I tested locally and everything is perfect!
The above cover for the kms+header usages.

What remains is the no-auth (=nvidia nemo) way. Right now, this is available only if your Astra org is manually flagged to try that. That is the reason I switched the standard vectorize testing service to openai. However, I have access to an org "in the club", so I could test that vectorize flavour as well: all green.

Copy link
Collaborator

@nicoloboschi nicoloboschi left a comment

Choose a reason for hiding this comment

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

LGTM

@hemidactylus hemidactylus merged commit 77d3d81 into main May 28, 2024
13 checks passed
@hemidactylus hemidactylus deleted the SL-vectorize-pp branch May 28, 2024 16:07
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 this pull request may close these issues.

4 participants