mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Feature ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description - Create azure_ai extension if it is available( in flex cluster) - Add mock aoai server - Add local only tests which will never be run in CI pipeline ---- #### AI description (iteration 1) #### PR Classification New feature #### PR Summary This pull request integrates the `azure_ai` extension and adds local tests for embedding generation using a mock AOAI server. - Added `scripts/mock_aoai/aoai_mock_server.py` to mock AOAI API server for local testing. - Added `pgmongo/src/test/regress/sql/bson_aggregation_pipeline_tests_vector_gen_embedding.sql` and `pgmongo/src/test/regress/expected/bson_aggregation_pipeline_tests_vector_gen_embedding.out` for embedding generation tests. - Updated `pgmongo/src/infrastructure/process_utility_hook.c` to check and create the `azure_ai` extension if available. - Added `scripts/mock_aoai/setup_and_start_mock_server.sh` to set up and start the mock AOAI server. - Modified `pgmongo/src/test/regress/Makefile` to include embedding generation tests with the mock server.