fix(vector-stores/oracledb): Fix accuracy bug (#6848)

This commit is contained in:
Elif Sema Balcioglu
2026-08-07 18:07:12 +05:30
committed by GitHub
parent b05dc2740f
commit 6fe6140dba
5 changed files with 19 additions and 3 deletions
+11
View File
@@ -1,3 +1,4 @@
# Copyright (c) 2026, Oracle and/or its affiliates.
import os
import uuid
from contextlib import nullcontext
@@ -267,6 +268,16 @@ def test_index_parameters_reject_non_string_keys():
)
def test_index_accuracy_rejects_zero():
with pytest.raises(ValueError, match="index_accuracy.*between 1 and 100"):
OracleAIVectorSearchConfig(
collection_name=_unique_collection_name(),
embedding_model_dims=DIM,
client=object(),
index_accuracy=0,
)
def test_index_parameters_canonicalize_int_subclasses():
class FormattedInt(int):
def __format__(self, format_spec):