mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 21:38:43 +00:00
retrieval.utils: omit logging file contents at level INFO
This commit is contained in:
parent
bc7622c0fe
commit
03e9add96d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user