From 9b6d4a18cbb787604d2dfc8d7a0d588084d0ccbd Mon Sep 17 00:00:00 2001 From: Benjamin-Janes Date: Tue, 20 Aug 2024 16:48:38 +0200 Subject: [PATCH] Finished, can relase --- genai_4_dps_helper/milvus.py | 4 ++++ pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/genai_4_dps_helper/milvus.py b/genai_4_dps_helper/milvus.py index c789355..0fcda7c 100644 --- a/genai_4_dps_helper/milvus.py +++ b/genai_4_dps_helper/milvus.py @@ -67,3 +67,7 @@ def print_milvus_search_results( if key_to_return: ret_list.append(getattr(entity, key_to_return)) print(entity_str) + + if len(ret_list) > 0: + return ret_list + return None diff --git a/pyproject.toml b/pyproject.toml index 8c00dda..91e3fa8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools>=73.0","ibm_watsonx_ai==1.1.6","pandas==2.1.4","pymilvus build-backend = "setuptools.build_meta" [project] name = "genai_4_dps_helper" -version = "0.0.10" +version = "0.1.11" authors = [ { name="Benjamin A. Janes", email="benjamin.janes@se.ibm.com" }, ]