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
+4 -2
View File
@@ -1,3 +1,4 @@
# Copyright (c) 2026, Oracle and/or its affiliates.
"""Pydantic configuration for the Oracle AI Vector Search integration."""
import re
@@ -91,8 +92,9 @@ class OracleAIVectorSearchConfig(BaseModel):
exclude_none=True,
)
if self.index_accuracy and not (0 < self.index_accuracy <= 100):
raise ValueError("`index_accuracy` must be between 1 and 100")
if self.index_accuracy is not None:
if not (0 < self.index_accuracy <= 100):
raise ValueError("`index_accuracy` must be between 1 and 100")
if not (0 < self.embedding_model_dims):
raise ValueError("`embedding_model_dims` must be bigger than 0")
+1
View File
@@ -1,3 +1,4 @@
# Copyright (c) 2026, Oracle and/or its affiliates.
"""Oracle AI Vector Search vector store integration for mem0."""
import array