Skip to content

Commit

Permalink
update upsert docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice committed Nov 16, 2023
1 parent 6346b82 commit 2163145
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/vecs/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,12 @@ def upsert(
Inserts or updates *vectors* records in the collection.
Args:
records (Iterable[Tuple[str, Any, Metadata]]): An iterable of vectors to upsert.
Each vector is represented as a tuple where the first element is a unique string identifier,
the second element is an iterable of numeric values, and the third element is metadata associated with the vector.
records (Iterable[Tuple[str, Any, Metadata]]): An iterable of content to upsert.
Each record is a tuple where:
- the first element is a unique string identifier
- the second element is an iterable of numeric values or relevant input type for the
adapter assigned to the collection
- the third element is metadata associated with the vector
skip_adapter (bool): Should the adapter be skipped while upserting. i.e. if vectors are being
provided, rather than a media type that needs to be transformed
Expand Down

0 comments on commit 2163145

Please sign in to comment.