Commit 2c36a162 by tinywell

Fix issue with splitting similarity_doc_hash in get_similarity_doc function

parent 08737072
......@@ -260,9 +260,9 @@ def re_generate(chat_request: ReGenerateRequest, token: str = Header(None)):
}
def get_similarity_doc(similarity_doc_hash: str):
if hashs:
if similarity_doc_hash:
hashs = similarity_doc_hash.split(",")
if not hashs or len(hashs) == 0:
if not similarity_doc_hash or len(hashs) == 0:
return []
docs = []
txt_doc = TxtDoc(k_db)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment