refactor(vectordb): remove legacy vectorize path - #3024
Merged
Conversation
zhoujh01
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
移除底层 vectordb collection 的遗留
Vectorize自动向量化路径,避免它和 OpenViking 当前标准 embedding queue 链路混淆。标准链路中的openviking.core.context.Vectorize和embedding.max_input_tokens处理不受影响。Related Issue
无直接关闭 issue。背景来自 #3010 排查,但本 PR 不关闭该 issue。
Type of Change
Changes Made
openviking/storage/vectordb/vectorize/下的旧自动向量化实现。LocalCollection不再创建或持有VectorizerAdapter,写入时只接受调用方传入的vector/sparse_vector。Vectorize配置,并在CollectionMeta构建时丢弃历史传入的Vectorize字段。Testing
本地验证:
python3 -m py_compile openviking/storage/vectordb/collection/local_collection.py openviking/storage/vectordb/meta/collection_meta.py openviking/storage/vectordb/service/api_fastapi.py openviking/storage/vectordb/service/app_models.py openviking/storage/vectordb/utils/validation.pygit diff --checkrg -n "VectorizerAdapter|VectorizerFactory|BaseVectorizer|openviking\\.storage\\.vectordb\\.vectorize|meta\\.vectorize|request\\.Vectorize|\\\"Vectorize\\\"|Vectorize:" openviking tests -S未运行:当前环境缺少
pytest和ruffPython 模块。Checklist
Screenshots (if applicable)
不适用。
Additional Notes
这个 PR 只清理底层 vectordb collection meta 的
Vectorize自动向量化能力;不删除主链路使用的openviking.core.context.Vectorize数据结构。