🌐 AI搜索 & 代理 主页
Skip to content

Commit ed98b77

Browse files
author
Jay Bhambhani
committed
fixes and cleanup
1 parent c1b0965 commit ed98b77

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

docarray/index/backends/opensearchv2.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ def __init__(self, db_config=None, **kwargs):
9191

9292
self._logger.debug('Mappings have been updated with db_config.index_mappings')
9393

94-
print('INFO', self._column_infos)
9594
for col_name, col in self._column_infos.items():
9695

9796
if safe_issubclass(col.docarray_type, AnyDocArray):
@@ -342,7 +341,6 @@ def python_type_to_db_type(self, python_type: Type) -> Any:
342341
or None if ``python_type`` is not supported.
343342
"""
344343
self._logger.debug(f'Mapping Python type {python_type} to database type')
345-
print('PYTHON_TYPE', python_type)
346344

347345
for allowed_type in OPENSEARCH_PY_VEC_TYPES:
348346
if safe_issubclass(python_type, allowed_type):
@@ -477,7 +475,6 @@ def execute_query(self, query: Dict[str, Any], *args, **kwargs) -> Any:
477475
self._logger.error(err_msg)
478476
raise ValueError(err_msg)
479477

480-
print('EXECUTING', query)
481478
resp = self._client.search(index=self.index_name, body=query)
482479
docs, scores = self._format_response(resp)
483480

tests/index/opensearch/test_subindex_os.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def index():
3737
[
3838
SimpleDoc(
3939
id=f'docs-{i}-{j}',
40-
simple_tens=np.ones(10) * (j + 1),
40+
simple_tens=np.ones(10),
4141
simple_text=f'hello {j}',
4242
)
4343
for j in range(5)
@@ -51,18 +51,18 @@ def index():
5151
[
5252
SimpleDoc(
5353
id=f'list_docs-docs-{i}-{j}-{k}',
54-
simple_tens=np.ones(10) * (k + 1),
54+
simple_tens=np.ones(10),
5555
simple_text=f'hello {k}',
5656
)
5757
for k in range(5)
5858
]
5959
),
6060
simple_doc=SimpleDoc(
6161
id=f'list_docs-simple_doc-{i}-{j}',
62-
simple_tens=np.ones(10) * (j + 1),
62+
simple_tens=np.ones(10),
6363
simple_text=f'hello {j}',
6464
),
65-
list_tens=np.ones(20) * (j + 1),
65+
list_tens=np.ones(20),
6666
)
6767
for j in range(5)
6868
]

0 commit comments

Comments
 (0)