@@ -12,6 +12,7 @@ FROM (SELECT "temp_knowledge".id::text, "temp_knowledge".name,
1212 " temp_knowledge" .file_size_limit,
1313 " temp_knowledge" .file_count_limit,
1414 " temp_knowledge" ." scope" ,
15+ " temp_knowledge" ." embedding_model_id" ::text ,
1516 " document_temp" ." char_length" ,
1617 CASE
1718 WHEN
@@ -21,9 +22,8 @@ FROM (SELECT "temp_knowledge".id::text, "temp_knowledge".name,
2122 FROM (SELECT knowledge.*
2223 FROM knowledge knowledge ${knowledge_custom_sql}
2324 AND id in (select target
24- from workspace_user_resource_permission
25- ${workspace_user_resource_permission_query_set}
26- and ' VIEW' = any (permission_list))) temp_knowledge
25+ from workspace_user_resource_permission ${workspace_user_resource_permission_query_set}
26+ and ' VIEW' = any (permission_list))) temp_knowledge
2727 LEFT JOIN (SELECT " count" (" id" ) AS document_count, " sum" (" char_length" ) " char_length" , knowledge_id
2828 FROM " document"
2929 GROUP BY knowledge_id) " document_temp" ON temp_knowledge." id" = " document_temp" .knowledge_id
@@ -47,6 +47,7 @@ FROM (SELECT "temp_knowledge".id::text, "temp_knowledge".name,
4747 0 as file_size_limit,
4848 0 as file_count_limit,
4949 ' WORKSPACE' as " scope" ,
50+ ' ' as embedding_model_id,
5051 0 as char_length,
5152 0 as application_mapping_count,
5253 0 as document_count
0 commit comments