@@ -56,6 +56,11 @@ async with AsyncVortexDB(
5656 payload = Payload.text(" hello async vortex" ),
5757 )
5858```
59+ ### Batch Insertion and Search Support
60+
61+ The client now supports batch insertion and batch search queries.
62+ Methods of usage and examples available in:
63+ ``` examples/batch_insert_usage.py ``` & ``` examples/search_query_usage.py ```
5964
6065---
6166
@@ -115,6 +120,22 @@ Raises
115120
116121---
117122
123+ #### ** Batch Insert**
124+
125+ Insert multiple vectors with payloads in a single request
126+ ```
127+ batch_insert(*, items: list[tuple[DenseVector, Payload]]) -> list[str]
128+ ```
129+
130+ Returns
131+ - List of ` point_id ` (UUID string)
132+
133+ Raises
134+ - ` TypeError ` if input structure is invalid
135+ - gRPC-mapped errors (see Error Handling)
136+
137+ ---
138+
118139#### ** Get**
119140
120141Fetch a point by its ID
@@ -149,6 +170,32 @@ Raises
149170
150171---
151172
173+ #### ** Batch Search**
174+
175+ Search for nearest neighbours for multiple queries in a single request
176+ ```
177+ batch_search(
178+ *,
179+ queries,
180+ similarity: Similarity | None = None,
181+ limit: int | None = None,
182+ ) -> list[list[str]]
183+ ```
184+
185+ Returns
186+ - ` TypeError ` for invalid query formats
187+ - ` ValueError ` if required parameters are missing
188+
189+ Supported Input Formats:
190+ The ` queries ` parameter is flexible and supports multiple formats:
191+ - List of ` SearchQuery ` objects
192+ - List of ` (DenseVector, Similarity, Limit) ` tuples
193+ - List of ` (DenseVector, Similarity) ` tuples with a global ` Limit `
194+ - List of ` (DenseVector, Limit) ` tuples with a global ` Similarity `
195+ - List of ` DenseVector ` with global ` Similarity ` and ` Limit `
196+
197+ ---
198+
152199#### ** Delete**
153200
154201Delete a point by its ID
@@ -214,6 +261,19 @@ All fields are directly accessible:
214261
215262---
216263
264+ ### ` SearchQuery `
265+
266+ ```
267+ SearchQuery(
268+ vector: DenseVector,
269+ similarity: Similarity,
270+ limit: int,
271+ )
272+ ```
273+ Structured representation of a search request
274+
275+ ---
276+
217277### ` Similarity `
218278
219279Enum representing distance functions:
0 commit comments