arijeetmukherjee3108-droid opened a new pull request, #41690:
URL: https://github.com/apache/beam/pull/41690
Fixes #41689
### Summary
- Serialize `options` in `BigQueryVectorSearchParameters.format_query()` as
a properly escaped, single-quoted JSON string literal (`options =>
'{"use_brute_force": true}'`) instead of interpolating Python `dict` repr.
- Deduplicate `embedding_column` in the `VECTOR_SEARCH` base table `SELECT`
subquery when `embedding_column` is already included in `columns`.
- Add unit tests in
`sdks/python/apache_beam/ml/rag/enrichment/bigquery_vector_search_test.py`
covering JSON options serialization, special-character escaping, empty/`None`
options, `embedding_column` deduplication, and
`distance_type`/`include_distance` formatting.
### Testing
- Ran `pytest
sdks/python/apache_beam/ml/rag/enrichment/bigquery_vector_search_test.py -v` (6
passed).
- Verified `yapf --diff` and `git diff --cached --check` report no
formatting or whitespace issues.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]