shahithmohamed202-collab opened a new pull request, #41333:
URL: https://github.com/apache/beam/pull/41333

   ### Summary
   
   - Reuse a single Milvus sink/client across write batches in `_WriteMilvusFn`.
   - Lazily initialize the sink when the first non-empty batch is flushed.
   - Flush remaining records when `finish_bundle()` is called.
   - Close the reusable sink during `teardown()`.
   - Add lifecycle tests covering client reuse, partial batch flushing, empty 
bundles, and teardown.
   
   ### Tests
   
   ```bash
   .venv/bin/python -m pytest 
sdks/python/apache_beam/ml/rag/ingestion/milvus_search_test.py -q
   ```
   
   **Result:** 13 tests passed.


-- 
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]

  • [PR] Fix Milvus client re... shahithmohamed202-collab (via GitHub) via github

Reply via email to