test(s3-vectors): document dimension autodetect guard

This commit is contained in:
Ganni Galea Curmi 2026-05-27 00:53:41 -04:00
parent 49b7dabd82
commit 039545d4cd

View file

@ -42,6 +42,9 @@ async def test_s3_vectors_ingestion_uses_vector_store_embedding_model():
)
assert embeddings == [[0.1, 0.2, 0.3]]
# Scope the next assertion to dimension auto-detection. It must call
# aembedding with the selected model instead of returning the default
# S3 vector dimension without probing the embedding model.
mock_aembedding.reset_mock()
mock_aembedding.return_value = SimpleNamespace(
data=[{"embedding": [0.1, 0.2, 0.3]}]