|
@ -26,7 +26,7 @@ |
|
|
<body> |
|
|
<body> |
|
|
<div class="container"> |
|
|
<div class="container"> |
|
|
<header> |
|
|
<header> |
|
|
<h1>DeepSearcher 智能深度搜索系统</h1> |
|
|
<h1 class="search-title">DeepSearcher 智能深度搜索系统</h1> |
|
|
<p class="app-description"> |
|
|
<p class="app-description"> |
|
|
基于大型语言模型和向量数据库的知识管理系统,支持私有数据搜索和在线内容整合,提供准确答案和综合报告。 |
|
|
基于大型语言模型和向量数据库的知识管理系统,支持私有数据搜索和在线内容整合,提供准确答案和综合报告。 |
|
|
</p> |
|
|
</p> |
|
@ -102,12 +102,13 @@ |
|
|
id="queryResult" |
|
|
id="queryResult" |
|
|
class="result-container" |
|
|
class="result-container" |
|
|
> |
|
|
> |
|
|
<h3>查询结果:</h3> |
|
|
<h3 class="query-result-h3">查询结果:</h3> |
|
|
<div |
|
|
<div |
|
|
class="query-result markdown-body" |
|
|
class="query-result markdown-body" |
|
|
id="resultText" |
|
|
id="resultText" |
|
|
></div> |
|
|
></div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="themes-btns"> |
|
|
<button |
|
|
<button |
|
|
class="theme-button" |
|
|
class="theme-button" |
|
|
onclick="changeTheme('static/themes/light.css')" |
|
|
onclick="changeTheme('static/themes/light.css')" |
|
@ -154,12 +155,13 @@ |
|
|
下载 |
|
|
下载 |
|
|
</button> |
|
|
</button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<div |
|
|
<div |
|
|
id="processResult" |
|
|
id="processResult" |
|
|
class="result-container" |
|
|
class="result-container" |
|
|
> |
|
|
> |
|
|
<h3>处理过程:</h3> |
|
|
<h3 class="process-result-h3">处理过程:</h3> |
|
|
<div |
|
|
<div |
|
|
id="messageStream" |
|
|
id="messageStream" |
|
|
class="message-stream" |
|
|
class="message-stream" |
|
@ -172,11 +174,13 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- <div class="card"> |
|
|
<div class="card"> |
|
|
<div |
|
|
<div |
|
|
class="query-result markdown-body" |
|
|
class="query-result markdown-body" |
|
|
id="test" |
|
|
id="test" |
|
|
></div> |
|
|
></div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="themes-btns"> |
|
|
<button |
|
|
<button |
|
|
class="theme-button" |
|
|
class="theme-button" |
|
|
onclick="changeTheme('static/themes/light.css')" |
|
|
onclick="changeTheme('static/themes/light.css')" |
|
@ -221,7 +225,8 @@ |
|
|
> |
|
|
> |
|
|
下载 |
|
|
下载 |
|
|
</button> |
|
|
</button> |
|
|
</div> --> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</main> |
|
|
</main> |
|
|
|
|
|
|
|
|
<footer> |
|
|
<footer> |
|
@ -231,34 +236,33 @@ |
|
|
|
|
|
|
|
|
<script src="../static/js/app.js"></script> |
|
|
<script src="../static/js/app.js"></script> |
|
|
<script> |
|
|
<script> |
|
|
// fetch('../static/data/test.txt').then((res) => { |
|
|
fetch('../static/data/test.txt').then((res) => { |
|
|
// res.text().then((text) => { |
|
|
res.text().then((text) => { |
|
|
// console.log(text); |
|
|
document.getElementById('test').innerHTML = md.render(text); |
|
|
// document.getElementById('test').innerHTML = md.render(text); |
|
|
}); |
|
|
// }); |
|
|
}); |
|
|
// }); |
|
|
|
|
|
|
|
|
|
|
|
function changeTheme(url) { |
|
|
function downloadPdf1() { |
|
|
document.getElementById('md-theme').setAttribute('href', url); |
|
|
const element = document.getElementById('test'); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// function downloadPdf1() { |
|
|
const opt = { |
|
|
// const element = document.getElementById('test'); |
|
|
margin: 12, |
|
|
|
|
|
filename: '内容.pdf', |
|
|
|
|
|
image: { type: 'jpeg', quality: 0.98 }, |
|
|
|
|
|
enableLinks: true, |
|
|
|
|
|
html2canvas: { scale: 2, logging: true, useCORS: true }, // 提高清晰度 |
|
|
|
|
|
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }, |
|
|
|
|
|
pagebreak: { |
|
|
|
|
|
mode: ['avoid-all', 'css', 'legacy'] |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
// const opt = { |
|
|
html2pdf().set(opt).from(element).save(); |
|
|
// margin: 12, |
|
|
} |
|
|
// filename: '内容.pdf', |
|
|
|
|
|
// image: { type: 'jpeg', quality: 0.98 }, |
|
|
|
|
|
// enableLinks: true, |
|
|
|
|
|
// html2canvas: { scale: 2, logging: true, useCORS: true }, // 提高清晰度 |
|
|
|
|
|
// jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }, |
|
|
|
|
|
// pagebreak: { |
|
|
|
|
|
// mode: ['avoid-all', 'css', 'legacy'] |
|
|
|
|
|
// } |
|
|
|
|
|
// }; |
|
|
|
|
|
|
|
|
|
|
|
// html2pdf().set(opt).from(element).save(); |
|
|
function changeTheme(url) { |
|
|
// } |
|
|
document.getElementById('md-theme').setAttribute('href', url); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function downloadPdf() { |
|
|
function downloadPdf() { |
|
|
const element = document.getElementById('resultText'); |
|
|
const element = document.getElementById('resultText'); |
|
|