retrieval.utils: omit logging file contents at level INFO

This commit is contained in:
execgit 2024-10-29 14:33:37 +02:00
parent bc7622c0fe
commit 03e9add96d

View File

@ -76,7 +76,7 @@ def query_doc(
limit=k, limit=k,
) )
log.info(f"query_doc:result {result}") log.info(f"query_doc:result {result.ids} {result.metadatas}")
return result return result
except Exception as e: except Exception as e:
print(e) print(e)
@ -127,7 +127,10 @@ def query_doc_with_hybrid_search(
"metadatas": [[d.metadata for d in result]], "metadatas": [[d.metadata for d in result]],
} }
log.info(f"query_doc_with_hybrid_search:result {result}") log.info(
"query_doc_with_hybrid_search:result " +
f"{result.metadatas} {result.distances}"
)
return result return result
except Exception as e: except Exception as e:
raise e raise e