Pre-submission checklist | 提交前检查
Bug Description | 问题描述
I find an embedder call error when memos extracts too many missing_documents embeddings.
warning log
SearchHandler - WARNING - search_handler.py:258 - _mmr_dedup_text_memories - [SearchHandler] MMR embedding metadata missing; will compute missing embeddings: missing_total=25
env
EMBEDDING URL: https://dashscope.aliyuncs.com/compatible-mode/v1
EMBEDDING MODEL: text-embedding-v4
In src/memos/api/handlers/search_handler.py:448
if missing_indices:
computed = self.searcher.embedder.embed(missing_documents) # ⚠️here, embedding 25 missing_documents will return None
for idx, embedding in zip(missing_indices, computed, strict=False):
embeddings[idx] = embedding
memories[idx]["metadata"]["embedding"] = embedding
Can someone fix it?
How to Reproduce | 如何重现
- insert a lot of messages
- search a query
Environment | 环境信息
Additional Context | 其他信息
- MemOS v2.0.13 still has same problem.
No response
Willingness to Implement | 实现意愿
Pre-submission checklist | 提交前检查
Bug Description | 问题描述
I find an embedder call error when memos extracts too many
missing_documentsembeddings.warning log
env
EMBEDDING URL: https://dashscope.aliyuncs.com/compatible-mode/v1
EMBEDDING MODEL: text-embedding-v4
In
src/memos/api/handlers/search_handler.py:448Can someone fix it?
How to Reproduce | 如何重现
Environment | 环境信息
Additional Context | 其他信息
No response
Willingness to Implement | 实现意愿