mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
retrieval.utils: omit logging file contents at level INFO
This commit is contained in:
parent
bc7622c0fe
commit
03e9add96d
1 changed files with 5 additions and 2 deletions
|
|
@ -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 a new issue