|
|
|
@ -189,7 +189,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="examples">
|
|
|
|
|
<div class="example-category">
|
|
|
|
|
<h3>已收集问题示例</h3>
|
|
|
|
|
<h3>问题示例</h3>
|
|
|
|
|
<div class="example-list">
|
|
|
|
|
<div class="example-item" onclick="fillExample('苏轼的好朋友都有谁?')">苏轼的好朋友都有谁?</div>
|
|
|
|
|
<div class="example-item" onclick="fillExample('苏轼的家人都有谁?')">苏轼的家人都有谁?</div>
|
|
|
|
@ -198,17 +198,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="doc-links">
|
|
|
|
|
<h3>知识库范围</h3>
|
|
|
|
|
<div class="doc-checkboxes">
|
|
|
|
|
<label>
|
|
|
|
|
<input type="radio" name="topic" value="SuShi" checked>
|
|
|
|
|
苏轼知识
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<button id="submitBtn" onclick="submitQuestion()"><span class="icon">💡</span>提问</button>
|
|
|
|
|
<button id="clearBtn" onclick="clearAll()"><span class="icon">🗑️</span>清空</button>
|
|
|
|
|
</div>
|
|
|
|
@ -268,7 +257,6 @@
|
|
|
|
|
function submitQuestion() {
|
|
|
|
|
const question = document.getElementById('questionInput').value.trim();
|
|
|
|
|
const answerArea = document.getElementById('answerArea');
|
|
|
|
|
const topic = document.querySelector('input[name="topic"]:checked').value;
|
|
|
|
|
|
|
|
|
|
if (!question) {
|
|
|
|
|
alert('请输入问题!');
|
|
|
|
@ -286,7 +274,7 @@
|
|
|
|
|
},
|
|
|
|
|
body: JSON.stringify({
|
|
|
|
|
query: question,
|
|
|
|
|
topic: topic,
|
|
|
|
|
topic: 'SuShi',
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.then(response => {
|
|
|
|
|