You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:class:`InvalidTextRepresentationError <asyncpg.exceptions.InvalidTextRepresentationError>`: if the `ids` data type does not match that of the `id_column`.
236
+
"""
233
237
ifnotids:
234
238
ids= [str(uuid.uuid4()) for_intexts]
235
239
ifnotmetadatas:
@@ -276,10 +280,14 @@ async def aadd_texts(
276
280
self,
277
281
texts: Iterable[str],
278
282
metadatas: Optional[List[dict]] =None,
279
-
ids: Optional[List[str]] =None,
283
+
ids: Optional[List] =None,
280
284
**kwargs: Any,
281
285
) ->List[str]:
282
-
"""Embed texts and add to the table."""
286
+
"""Embed texts and add to the table.
287
+
288
+
Raises:
289
+
:class:`InvalidTextRepresentationError <asyncpg.exceptions.InvalidTextRepresentationError>`: if the `ids` data type does not match that of the `id_column`.
:class:`InvalidTextRepresentationError <asyncpg.exceptions.InvalidTextRepresentationError>`: if the `ids` data type does not match that of the `id_column`.
:class:`InvalidTextRepresentationError <asyncpg.exceptions.InvalidTextRepresentationError>`: if the `ids` data type does not match that of the `id_column`.
lambda_mult (float): Number between 0 and 1 that determines the degree of diversity among the results with 0 corresponding to maximum diversity and 1 to minimum diversity. Defaults to 0.5.
359
376
index_query_options (QueryOptions): Index query option.
360
377
378
+
Raises:
379
+
:class:`InvalidTextRepresentationError <asyncpg.exceptions.InvalidTextRepresentationError>`: if the `ids` data type does not match that of the `id_column`.
lambda_mult (float): Number between 0 and 1 that determines the degree of diversity among the results with 0 corresponding to maximum diversity and 1 to minimum diversity. Defaults to 0.5.
426
446
index_query_options (QueryOptions): Index query option.
427
447
448
+
Raises:
449
+
:class:`InvalidTextRepresentationError <asyncpg.exceptions.InvalidTextRepresentationError>`: if the `ids` data type does not match that of the `id_column`.
0 commit comments