This commit is contained in:
Saifeddine ALOUI 2024-12-15 19:00:46 +01:00
parent 8549f627b7
commit a4fc04060b
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 7f81b6b5589be0b1eb14409a7a22732abae8e7cc
Subproject commit f85526284811271abd7cb10a7c25fd5721d9fb48

View File

@ -1383,7 +1383,7 @@ class LOLLMSWebUI(LOLLMSElfServer):
path = source["document_path"]
content = source["chunk_content"]
size = source["chunk_size"]
distance = source["distance"]
similarity = source["similarity"]
sources_text += f'''
<div class="source-item">
<button onclick="var details = document.getElementById('source-details-{title}'); details.style.display = details.style.display === 'none' ? 'block' : 'none';" style="text-align: left; font-weight: bold;"><strong>{title}</strong></button>
@ -1392,7 +1392,7 @@ class LOLLMSWebUI(LOLLMSElfServer):
<p><strong>Path:</strong> {path}</p>
<p><strong>Content:</strong> {content}</p>
<p><strong>Size:</strong> {size}</p>
<p><strong>Distance:</strong> {distance}</p>
<p><strong>Similarity:</strong> {similarity}</p>
</div>
</div>
</div>