mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-18 20:27:58 +00:00
Update app.py
This commit is contained in:
parent
8cbbb988cd
commit
385b235acc
@ -1137,7 +1137,7 @@ class LollmsApplication(LoLLMsCom):
|
||||
"document_path":doc['path'],
|
||||
"chunk_content":summary,
|
||||
"chunk_size":0,
|
||||
"distance":0,
|
||||
"similarity":0,
|
||||
})
|
||||
if summary!="":
|
||||
v.add_summaries(doc['path'],[{"context":query, "summary":summary}])
|
||||
@ -1175,7 +1175,7 @@ class LollmsApplication(LoLLMsCom):
|
||||
"document_path":chunk.doc.path,
|
||||
"chunk_content":chunk.text,
|
||||
"chunk_size":chunk.nb_tokens,
|
||||
"distance":chunk.distance,
|
||||
"similarity":1-chunk.distance,
|
||||
})
|
||||
documentation += document_infos
|
||||
|
||||
@ -1223,7 +1223,7 @@ class LollmsApplication(LoLLMsCom):
|
||||
"document_path":doc['path'],
|
||||
"chunk_content":summary,
|
||||
"chunk_size":0,
|
||||
"distance":0,
|
||||
"similarity":0,
|
||||
})
|
||||
if summary!="":
|
||||
v.add_summaries(doc['path'],[{"context":query, "summary":summary}])
|
||||
|
Loading…
Reference in New Issue
Block a user