mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 20:16:49 +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:
|
||||
local_doc_ids = ["-999"]
|
||||
|
||||
|
||||
tenants = UserTenantService.query(user_id=tenant_id)
|
||||
for kb_id in kb_ids:
|
||||
for tenant in tenants:
|
||||
|
||||
@ -369,6 +369,13 @@
|
||||
"model_type": "chat",
|
||||
"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",
|
||||
"tags": "LLM,CHAT,64K",
|
||||
|
||||
@ -26,9 +26,7 @@ export const MetadataFilterSchema = {
|
||||
}),
|
||||
)
|
||||
.optional(),
|
||||
semi_auto: z
|
||||
.array(z.string()) // 修改为字符串数组
|
||||
.optional(),
|
||||
semi_auto: z.array(z.string()).optional(),
|
||||
})
|
||||
.optional(),
|
||||
};
|
||||
|
||||
@ -38,7 +38,7 @@ export function MetadataSemiAutoFields({
|
||||
|
||||
const add = useCallback(
|
||||
(key: string) => () => {
|
||||
append(key); // 直接添加字符串而不是对象
|
||||
append(key);
|
||||
},
|
||||
[append],
|
||||
);
|
||||
@ -66,7 +66,6 @@ export function MetadataSemiAutoFields({
|
||||
</div>
|
||||
<div className="space-y-5">
|
||||
{fields.map((field, index) => {
|
||||
// 修改字段名称以直接引用数组元素
|
||||
const typeField = `${name}.${index}`;
|
||||
return (
|
||||
<section key={field.id} className="flex gap-2">
|
||||
|
||||
@ -50,8 +50,8 @@ export default function TestingForm({
|
||||
setValues,
|
||||
}: TestingFormProps) {
|
||||
const { t } = useTranslation();
|
||||
const { id } = useParams(); // 正确解构出id参数
|
||||
const knowledgeBaseId = id; // 现在knowledgeBaseId是字符串类型
|
||||
const { id } = useParams();
|
||||
const knowledgeBaseId = id;
|
||||
|
||||
const formSchema = z.object({
|
||||
question: z.string().min(1, {
|
||||
@ -100,7 +100,6 @@ export default function TestingForm({
|
||||
<CrossLanguageFormField
|
||||
name={'cross_languages'}
|
||||
></CrossLanguageFormField>
|
||||
{/* 添加元数据过滤组件 */}
|
||||
<MetadataFilter prefix=""></MetadataFilter>
|
||||
</FormContainer>
|
||||
<FormField
|
||||
|
||||
Reference in New Issue
Block a user