We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 798468a commit 43c5da2Copy full SHA for 43c5da2
sdks/python/apache_beam/ml/rag/ingestion/postgres_common.py
@@ -318,13 +318,16 @@ def with_sparse_embedding_spec(
318
conv_fn: Optional[Callable[[Tuple[List[int], List[float]]], Any]] = None
319
) -> 'ColumnSpecsBuilder':
320
"""Add sparse embedding :class:`.ColumnSpec` with optional conversion.
321
+
322
Args:
323
column_name: Name for the sparse embedding column
324
(defaults to "sparse_embedding")
325
conv_fn: Optional function to convert the sparse embedding tuple
326
If None, converts to PostgreSQL-compatible JSON format
327
328
Returns:
329
Self for method chaining
330
331
Example:
332
>>> builder.with_sparse_embedding_spec(
333
... column_name="sparse_vector",
0 commit comments