Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 120ceab

Browse files
authored
Fix renaming of embeddable_to_dict_fn (#37646)
1 parent 41779ad commit 120ceab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/notebooks/beam-ml/bigquery_vector_ingestion_and_search.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@
12751275
" },\n",
12761276
" schema_config=SchemaConfig(\n",
12771277
" schema=SCHEMA,\n",
1278-
" chunk_to_dict_fn=chunk_to_dict_custom\n",
1278+
" embeddable_to_dict_fn=chunk_to_dict_custom\n",
12791279
" )\n",
12801280
")"
12811281
],

sdks/python/apache_beam/ml/rag/ingestion/bigquery_it_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_custom_schema(self):
138138
'name': 'source', 'type': 'STRING'
139139
}]
140140
},
141-
chunk_to_dict_fn=lambda chunk: {
141+
embeddable_to_dict_fn=lambda chunk: {
142142
'id': chunk.id, 'embedding': chunk.embedding.dense_embedding,
143143
'source': chunk.metadata.get('source')
144144
})

0 commit comments

Comments
 (0)