Create a new embedding by PUT#8
Open
prantlf wants to merge 3 commits into
Open
Conversation
Apply Sweep Rules to your PR?
|
Add a simple metadata filter based on equality of key-value pairs. * An undefined filter or an empty array matches all embeddings. * An empty object in the array matches any embedding. * If an object in the array is not empty, it will match an embedding, if all its key-value pairs are found in the embedding's metadata. * If there are more than one objects in the array, the whole filter will match an ambedding, if at least one object matches the embedding's metadata.
* GET /collections - list collection names * GET `/collections/:collection_name/embeddings` - get embedding identifiers * POST /collections/:collection_name/embeddings - filter embeddings with metadata * DELETE /collections/:collection_name/embeddings - delete embeddings by metadata * GET /collections/:collection_name/embeddings/:embedding_id - get an embedding * DELETE /collections/:collection_name/embeddings/:embedding_id - delete an embedding
Follow the unusual patter from PUT /collections/:collection_name: objects are created by PUT /place/<name> Instead of POST /collections/:collection_name/insert, use PUT /collections/:collection_name/embeddings/:embedding_id.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #7.
Follow the unusual pattern from PUT
/collections/:collection_name:objects are created by
PUT /place/<name>.Instead of
POST /collections/:collection_name/insert,use
PUT /collections/:collection_name/embeddings/:embedding_id.