WeKnora/internal/types
lyingbug c3f077ed18
fix(models): align configuration and multimodal embedding workflows (#4080)
* fix(models): align configuration defaults and multimodal workflows

* feat(image): enhance image retrieval diagnostics and filtering

- Implemented `retrieveObservedImagePool` to observe engine calls and record image recall decisions without altering results.
- Added detailed diagnostics in `summarizeImagePool` and `summarizeImageCandidateCut` to track image filtering decisions and scores.
- Introduced tests for image pool diagnostics to ensure accurate filtering and decision recording.
- Updated existing functions to utilize new retrieval and summarization methods for improved observability and accuracy in image handling.

* feat(embeddings): enhance image handling with new formats and message support

- Introduced `EmbeddingImageFormat` to manage image input formats, allowing for both object and messages formats.
- Updated `EmbeddingsSettings` to include new fields for `ImageFormat`, `ImagePrompt`, and `TextAsMessages` to support multimodal embedding workflows.
- Enhanced `Client` methods to build request bodies for images in both formats, ensuring compatibility with vLLM's requirements.
- Added tests to validate the new image message handling and ensure correct request formatting for different scenarios.
- Updated documentation to reflect changes in image input handling and configuration options.

* feat(similarity): add embedding similarity mode for enhanced document scoring

- Introduced a new `similarity` option in `ModelDebugOptions` to score documents and an optional image against a query.
- Updated `ModelDebugDrawer.vue` to support a new input mode for similarity, allowing users to select similarity as an input type.
- Enhanced the UI to display similarity results, including ranked candidates based on cosine similarity.
- Added tests to validate the functionality of the new similarity mode in embedding models.
- Updated localization files to include new strings related to similarity mode in multiple languages.

* feat(embeddings): add Qwen3-VL-Embedding support for multimodal input

- Introduced Qwen3-VL-Embedding model with support for both text and image inputs.
- Updated model configuration files to include compatibility settings for the new embedding type.
- Enhanced tests to validate the functionality of Qwen3-VL-Embedding, ensuring correct handling of inputs and outputs.
- Updated documentation to reflect the new model's capabilities and usage instructions.

* test(models): wrap embedding assertions to satisfy lint

* test(opensearch): isolate HTTP transports between parallel tests
2026-10-10 11:06:00 +08:00
..
interfaces feat: judge image hits by their image in rerank and show them to vision models (#4013) 2026-10-09 13:01:48 +08:00
agent.go refactor(models): rebuild vendor integration on protocol + catalog + vendor layers (#3470) 2026-09-20 21:28:23 +08:00
agent_share_source.go
…
agent_share_source_test.go
…
agent_test.go
…
agent_type_preset.go
…
artifact_versions.go
…
artifact_versions_test.go
…
audit_log.go
…
audit_log_test.go
…
browser_search.go
…
builtin_agent_config.go
…
builtin_agent_localization_test.go
…
builtin_models_config.go refactor(models): separate provider definitions, model catalogs, and runtime configuration (#3589) 2026-09-23 14:20:08 +08:00
builtin_models_config_test.go
…
caller.go
…
chat.go fix(llm): treat cut-off streams as broken and tighten LLM retries 2026-09-25 18:22:14 +08:00
chat_history_config.go
…
chat_manage.go feat: judge image hits by their image in rerank and show them to vision models (#4013) 2026-10-09 13:01:48 +08:00
chunk.go feat: index and recall images with multimodal embedding models (#3683) 2026-10-08 18:19:53 +08:00
chunk_contextheader_test.go
…
cleanup.go
…
config_redaction.go feat(docparser): support MinerU 4.0 V1 API for self-hosted MinerU 2026-09-24 20:40:52 +08:00
config_redaction_sandbox_test.go
…
config_redaction_test.go feat(docparser): support MinerU 4.0 V1 API for self-hosted MinerU 2026-09-24 20:40:52 +08:00
const.go fix(wiki): 唯一写出口 UpdatePage 拦住丢表格行的机器重写(agent 整页写入不再静默改短页面) (#3793) 2026-10-09 10:55:28 +08:00
context_checkpoint.go
…
context_clone.go fix(wiki): 唯一写出口 UpdatePage 拦住丢表格行的机器重写(agent 整页写入不再静默改短页面) (#3793) 2026-10-09 10:55:28 +08:00
context_clone_coverage_test.go
…
context_helpers.go fix(wiki): 唯一写出口 UpdatePage 拦住丢表格行的机器重写(agent 整页写入不再静默改短页面) (#3793) 2026-10-09 10:55:28 +08:00
context_helpers_test.go
…
custom_agent.go refactor(models): rebuild vendor integration on protocol + catalog + vendor layers (#3470) 2026-09-20 21:28:23 +08:00
custom_agent_reasoning_effort_test.go refactor(models): rebuild vendor integration on protocol + catalog + vendor layers (#3470) 2026-09-20 21:28:23 +08:00
custom_agent_test.go
…
dataset.go
…
datasource.go feat(datasource): add Seafile data source connector (#3616) 2026-10-08 16:18:09 +08:00
datasource_test.go
…
docparser.go revert: take the plugin system back out of main 2026-09-26 14:58:18 +08:00
embed_channel.go feat(im): add per-channel reply locale (#3455) 2026-09-23 12:01:01 +08:00
embed_channel_test.go
…
embedding.go feat: index and recall images with multimodal embedding models (#3683) 2026-10-08 18:19:53 +08:00
errors.go
…
evaluation.go
…
event_bus.go
…
extract_graph.go fix(graph): preserve relationship direction and document provenance (#3950) 2026-10-08 00:48:51 +08:00
extract_graph_test.go fix(graph): preserve relationship direction and document provenance (#3950) 2026-10-08 00:48:51 +08:00
faq.go
…
faq_sync.go
…
faq_sync_test.go
…
faq_test.go
…
file_reference.go
…
file_reference_test.go
…
gallery_attr_source.go feat(gallery): add an image gallery tab with schema-driven filters (#3694) 2026-09-25 12:33:59 +08:00
gallery_builtin_source.go feat(gallery): add an image gallery tab with schema-driven filters (#3694) 2026-09-25 12:33:59 +08:00
gallery_policy.go feat(gallery): add an image gallery tab with schema-driven filters (#3694) 2026-09-25 12:33:59 +08:00
generated_question_revision_test.go
…
generated_question_source_id_test.go
…
graph.go
…
image_actions.go feat(gallery): add an image gallery tab with schema-driven filters (#3694) 2026-09-25 12:33:59 +08:00
image_attrs.go feat(gallery): add an image gallery tab with schema-driven filters (#3694) 2026-09-25 12:33:59 +08:00
image_attrs_gallery.go feat(gallery): add an image gallery tab with schema-driven filters (#3694) 2026-09-25 12:33:59 +08:00
image_attrs_test.go feat(gallery): add an image gallery tab with schema-driven filters (#3694) 2026-09-25 12:33:59 +08:00
image_gallery.go feat(gallery): add an image gallery tab with schema-driven filters (#3694) 2026-09-25 12:33:59 +08:00
indexing_strategy.go
…
json.go
…
json_map.go
…
json_test.go
…
knowledge.go feat(datasource): add Seafile data source connector (#3616) 2026-10-08 16:18:09 +08:00
knowledge_custom_metadata_test.go
…
knowledge_folder.go
…
knowledge_folder_test.go
…
knowledge_process.go fix(models): align configuration and multimodal embedding workflows (#4080) 2026-10-10 11:06:00 +08:00
knowledge_process_test.go
…
knowledge_profile.go
…
knowledge_profile_test.go
…
knowledge_span.go
…
knowledgebase.go feat: index and recall images with multimodal embedding models (#3683) 2026-10-08 18:19:53 +08:00
knowledgebase_auto_tag_test.go
…
knowledgebase_profile.go
…
knowledgebase_test.go feat: index and recall images with multimodal embedding models (#3683) 2026-10-08 18:19:53 +08:00
legacy_persisted_json_test.go refactor(models): rebuild vendor integration on protocol + catalog + vendor layers (#3470) 2026-09-20 21:28:23 +08:00
locale.go feat(i18n): add Traditional Chinese (zh-TW) locale support (#3916) 2026-10-08 16:18:17 +08:00
locale_test.go feat(i18n): add Traditional Chinese (zh-TW) locale support (#3916) 2026-10-08 16:18:17 +08:00
mcp.go revert: take the plugin system back out of main 2026-09-26 14:58:18 +08:00
mcp_endpoint.go
…
mcp_endpoint_tools.go
…
mcp_endpoint_tools_test.go
…
mcp_metadata.go
…
mcp_oauth.go
…
mcp_test.go
…
memory.go
…
memory_extraction.go
…
memory_test.go
…
message.go feat(artifacts): let users delete generated files (#3447) 2026-09-20 13:01:46 +08:00
message_artifact.go feat(artifacts): let users delete generated files (#3447) 2026-09-20 13:01:46 +08:00
message_attachment_test.go
…
message_suggestion.go
…
message_test.go
…
model.go fix(frontend): 修复复制模型时模型名称被改写的问题 (#3830) 2026-09-29 19:32:08 +08:00
model_catalog_config.go feat(models): add system admin model catalog console (#3662) 2026-09-24 16:31:45 +08:00
organization.go
…
parser_engine_config_test.go
…
placeholder.go
…
placeholder_time_test.go
…
principal.go fix(mcp): resolve MCP endpoint sessions by their storage ID 2026-09-22 16:53:10 +08:00
principal_test.go
…
prompt_instructions.go
…
prompt_instructions_test.go
…
qa_request.go fix(embed): 内嵌网页只传图片不输入文字时不再返回 400 2026-09-30 15:26:51 +08:00
qa_request_test.go
…
question_suggestion_test.go
…
rerank.go feat: judge image hits by their image in rerank and show them to vision models (#4013) 2026-10-09 13:01:48 +08:00
resource.go
…
resource_test.go
…
retrieval_config.go fix(retrieval): fix recall correctness, score scales, cost and agent tools (#3687) 2026-09-25 10:48:18 +08:00
retriever.go feat: judge image hits by their image in rerank and show them to vision models (#4013) 2026-10-09 13:01:48 +08:00
runtime_task.go
…
sandbox_network_policy.go
…
sandbox_network_policy_test.go
…
sandbox_tenant_context_test.go
…
search.go feat: judge image hits by their image in rerank and show them to vision models (#4013) 2026-10-09 13:01:48 +08:00
search_scope_test.go
…
secret.go
…
secret_test.go
…
session.go feat(chat): add session reasoning controls and polish model configuration 2026-09-23 17:12:19 +08:00
session_access_test.go
…
session_fork.go
…
session_fork_test.go
…
shared_agent_access.go
…
shared_agent_access_test.go
…
source_locator.go fix(citations): 修复原文定位、高亮范围与 DocReader 启动失败 (#3794) 2026-09-27 20:32:26 +08:00
storagebackend.go
…
storagebackend_test.go
…
sync_item_error_test.go
…
system_setting.go
…
tag.go
…
task.go fix(models): align configuration and multimodal embedding workflows (#4080) 2026-10-10 11:06:00 +08:00
task_dead_letter.go
…
task_initiator_test.go
…
task_pending_op.go fix(queue): order ClaimBatch by fail_count so retries cannot starve new work (#3444) 2026-09-21 13:00:29 +08:00
task_queue_test.go
…
temporary_document.go
…
tenant.go feat(docparser): support MinerU 4.0 V1 API for self-hosted MinerU 2026-09-24 20:40:52 +08:00
tenant_api_key.go
…
tenant_api_key_scope_test.go
…
tenant_api_key_test.go
…
tenant_env_vars.go
…
tenant_env_vars_test.go
…
tenant_invitation.go
…
tenant_member.go
…
tenant_sandbox_config_entity.go
…
tenant_sandbox_config_entity_test.go
…
tenant_sandbox_config_test.go
…
tenant_skill.go
…
tenant_test.go
…
token_usage_test.go
…
tracing.go
…
user.go feat(gallery): add an image gallery tab with schema-driven filters (#3694) 2026-09-25 12:33:59 +08:00
user_resource_favorite.go
…
vectorstore.go fix: use consistent qdrant env settings (#3960) 2026-10-07 23:59:56 +08:00
vectorstore_opensearch_test.go
…
vectorstore_test.go fix: use consistent qdrant env settings (#3960) 2026-10-07 23:59:56 +08:00
web_search.go
…
web_search_filters.go
…
web_search_filters_test.go
…
web_search_provider.go revert: take the plugin system back out of main 2026-09-26 14:58:18 +08:00
web_search_provider_test.go
…
web_search_test.go
…
weknoracloud.go
…
wiki_page.go fix(wiki): resolve titles for unloaded backlinks (#3931) 2026-10-09 10:50:52 +08:00
wiki_page_test.go
…