Skip to content

Commit

Permalink
docs: fix add item batch documentation for the async client (#376)
Browse files Browse the repository at this point in the history
The docstring for `add_item_batch` was out of sync between the async
and synchronous clients. This fixes that.
  • Loading branch information
malandis authored Aug 29, 2023
1 parent c60c47b commit 700a0d8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/momento/vector_index_client_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,7 @@ async def list_indexes(self) -> ListIndexesResponse:
async def add_item_batch(self, index_name: str, items: list[Item]) -> AddItemBatchResponse:
"""Adds a batch of items into a vector index.
Adds an item into the index regardless if the ID already exists.
On duplicate ID, a separate entry is created with the same ID.
To deduplicate, first call `delete_item_batch` to remove all items
with the same ID, then call `add_item_batch` to add the new items.
Adds an item into the index.
Args:
index_name (str): Name of the index to add the items into.
Expand Down

0 comments on commit 700a0d8

Please sign in to comment.