音视频前端支持分段参数
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
朱潮 2025-12-19 10:34:05 +08:00
parent 18068f76ff
commit 3bbdbca861
4 changed files with 17 additions and 9 deletions

View File

@ -14,6 +14,7 @@ services:
# 持久化数据
- ~/.maxkb:/opt/maxkb/
- ../apps:/opt/maxkb-app/apps
- ../ui:/opt/maxkb-app/ui
- /tmp/maxkb:/tmp
environment:
# 开启调试模式

View File

@ -169,7 +169,13 @@ function submit() {
const documents = [] as any
console.log('Submit called, documentsType:', documentsType.value)
console.log('mediaModels from store:', knowledge.mediaModels)
SetRulesRef.value?.paragraphList.map((item: any) => {
console.log('SetRulesRef.value:', SetRulesRef.value)
//
const paragraphList = SetRulesRef.value?.paragraphList || []
console.log('paragraphList length:', paragraphList.length)
paragraphList.map((item: any) => {
if (!SetRulesRef.value?.checkedConnect) {
item.content.map((v: any) => {
delete v['problem_list']
@ -210,18 +216,17 @@ function submit() {
}
//
if (SetRulesRef.value?.form) {
console.log('SetRulesRef.value.form:', SetRulesRef.value.form)
// patterns
if (SetRulesRef.value.form.patterns) {
doc.split_patterns = SetRulesRef.value.form.patterns
}
// limit
if (SetRulesRef.value.form.limit !== undefined) {
doc.split_limit = SetRulesRef.value.form.limit
}
// with_filter
if (SetRulesRef.value.form.with_filter !== undefined) {
doc.split_with_filter = SetRulesRef.value.form.with_filter
}
// limit (使)
doc.split_limit = SetRulesRef.value.form.limit
// with_filter (使)
doc.split_with_filter = SetRulesRef.value.form.with_filter
console.log('Media chunking params:', {
split_patterns: doc.split_patterns,
split_limit: doc.split_limit,

View File

@ -250,6 +250,7 @@ defineExpose({
paragraphList,
checkedConnect,
loading,
form,
})
</script>
<style scoped lang="scss">

View File

@ -437,6 +437,7 @@ const visionModels = ref<any[]>([])
const sttModels = ref<any[]>([])
watch(form.value, (value) => {
console.log('UploadComponent fileType changed:', value.fileType)
knowledge.saveDocumentsType(value.fileType)
knowledge.saveDocumentsFile(value.fileList)
if (value.fileType === 'mineru') {