mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-20 04:39:00 +08:00
Add DeepseekV3.2 of Tongyi-Qianwen and remove unused code (#11898)
### What problem does this PR solve? Add DeepseekV3.2 of Tongyi-Qianwen and remove unused code ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1023,7 +1023,6 @@ async def retrieval_test_embedded():
|
|||||||
if meta_data_filter["manual"] and not local_doc_ids:
|
if meta_data_filter["manual"] and not local_doc_ids:
|
||||||
local_doc_ids = ["-999"]
|
local_doc_ids = ["-999"]
|
||||||
|
|
||||||
|
|
||||||
tenants = UserTenantService.query(user_id=tenant_id)
|
tenants = UserTenantService.query(user_id=tenant_id)
|
||||||
for kb_id in kb_ids:
|
for kb_id in kb_ids:
|
||||||
for tenant in tenants:
|
for tenant in tenants:
|
||||||
|
|||||||
@ -369,6 +369,13 @@
|
|||||||
"model_type": "chat",
|
"model_type": "chat",
|
||||||
"is_tools": true
|
"is_tools": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"llm_name": "deepseek-v3.2",
|
||||||
|
"tags": "LLM,CHAT,128K",
|
||||||
|
"max_tokens": 128000,
|
||||||
|
"model_type": "chat",
|
||||||
|
"is_tools": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"llm_name": "deepseek-r1",
|
"llm_name": "deepseek-r1",
|
||||||
"tags": "LLM,CHAT,64K",
|
"tags": "LLM,CHAT,64K",
|
||||||
|
|||||||
@ -26,9 +26,7 @@ export const MetadataFilterSchema = {
|
|||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.optional(),
|
.optional(),
|
||||||
semi_auto: z
|
semi_auto: z.array(z.string()).optional(),
|
||||||
.array(z.string()) // 修改为字符串数组
|
|
||||||
.optional(),
|
|
||||||
})
|
})
|
||||||
.optional(),
|
.optional(),
|
||||||
};
|
};
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export function MetadataSemiAutoFields({
|
|||||||
|
|
||||||
const add = useCallback(
|
const add = useCallback(
|
||||||
(key: string) => () => {
|
(key: string) => () => {
|
||||||
append(key); // 直接添加字符串而不是对象
|
append(key);
|
||||||
},
|
},
|
||||||
[append],
|
[append],
|
||||||
);
|
);
|
||||||
@ -66,7 +66,6 @@ export function MetadataSemiAutoFields({
|
|||||||
</div>
|
</div>
|
||||||
<div className="space-y-5">
|
<div className="space-y-5">
|
||||||
{fields.map((field, index) => {
|
{fields.map((field, index) => {
|
||||||
// 修改字段名称以直接引用数组元素
|
|
||||||
const typeField = `${name}.${index}`;
|
const typeField = `${name}.${index}`;
|
||||||
return (
|
return (
|
||||||
<section key={field.id} className="flex gap-2">
|
<section key={field.id} className="flex gap-2">
|
||||||
|
|||||||
@ -50,8 +50,8 @@ export default function TestingForm({
|
|||||||
setValues,
|
setValues,
|
||||||
}: TestingFormProps) {
|
}: TestingFormProps) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { id } = useParams(); // 正确解构出id参数
|
const { id } = useParams();
|
||||||
const knowledgeBaseId = id; // 现在knowledgeBaseId是字符串类型
|
const knowledgeBaseId = id;
|
||||||
|
|
||||||
const formSchema = z.object({
|
const formSchema = z.object({
|
||||||
question: z.string().min(1, {
|
question: z.string().min(1, {
|
||||||
@ -100,7 +100,6 @@ export default function TestingForm({
|
|||||||
<CrossLanguageFormField
|
<CrossLanguageFormField
|
||||||
name={'cross_languages'}
|
name={'cross_languages'}
|
||||||
></CrossLanguageFormField>
|
></CrossLanguageFormField>
|
||||||
{/* 添加元数据过滤组件 */}
|
|
||||||
<MetadataFilter prefix=""></MetadataFilter>
|
<MetadataFilter prefix=""></MetadataFilter>
|
||||||
</FormContainer>
|
</FormContainer>
|
||||||
<FormField
|
<FormField
|
||||||
|
|||||||
Reference in New Issue
Block a user