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

feat: add embedding support #19

Merged
merged 2 commits into from
Apr 3, 2024
Merged

feat: add embedding support #19

merged 2 commits into from
Apr 3, 2024

Conversation

ogzhanolguncu
Copy link
Contributor

No description provided.

constructor(payload: UpsertCommandPayload<TMetadata> | UpsertCommandPayload<TMetadata>[]) {
super(payload, "upsert");
constructor(
payload: VectorPayload<TMetadata> | DataPayload<TMetadata> | PayloadArray<TMetadata>

Choose a reason for hiding this comment

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

do we also hint that these can be arrays?
previously it was used

UpsertCommandPayload<TMetadata> | UpsertCommandPayload<TMetadata>[]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah. There are 3 different variants

  • VectorPayload[] | DataPayload[];
  • VectorPayload
  • DataPayload

And, old tests are still working fine. Everything is backwards compatible

@ogzhanolguncu ogzhanolguncu merged commit 0f9f881 into master Apr 3, 2024
1 check failed
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