Skip to main content

4 posts tagged with "Milvus"

View all tags

Milvus collection name returns 500? UUID hyphens break the naming rules

· 4 min read

Debugging multi-tenant collection naming in a RAG knowledge base project — full writeup below.

TL;DR

Concatenating f"{tenant_id}_{collection}" to name a Milvus collection breaks when tenant_id is a UUID: the result starts with a digit and contains hyphens -, both of which violate Milvus naming rules and throw code=1100. The rule in one line: first character must be a letter or underscore, only [a-zA-Z0-9_] allowed, no hyphens. Never concatenate a UUID raw — use the original collection name, or convert it to a legal identifier.

修复 Milvus 混合检索 RRF 分数与相似度阈值不兼容

· 3 min read

在 RAG 知识库项目中调试混合检索评分问题,以下是完整排查过程。

TL;DR

Milvus 混合检索的加权融合分数 = 0.7 * dense_score + 0.3 * sparse_score,理论最大值约 0.7。如果用 min_similarity=0.7 过滤,结果几乎全被剔除。解决方案:将阈值降到 0.3,或根据融合策略动态调整。