feat(vector): add Qdrant/Milvus collection dimension display (#2396)

This commit is contained in:
lexmin0412 authored and GitHub committed 2026-07-02 12:08:30 +08:00
1 parent 0dc83f69b5
commit 24d952dc12
10 files changed
+171

No files matched your search

@@ -578,6 +578,18 @@ async function toggle() {
const collectionRef = node.id.includes("__vector_collection:") ? node.id.split("__vector_collection:").pop() || node.label : node.label;
const tab = queryStore.createTab(node.connectionId, node.database || "default", node.label, "vector");
queryStore.updateSql(tab, collectionRef);
api
.vectorGetCollectionDetail(node.connectionId, node.database || "default", collectionRef)
.then((info) => {
if (info.dimension != null) {
if (node.meta) {
(node.meta as Record<string, unknown>).dimension = info.dimension;
} else {
node.meta = { dimension: info.dimension } as any;
}
}
})
.catch(() => {});
} else if (node.type === "database" && node.connectionId && hasTreeNodeDatabaseContext(node)) {
const config = connectionStore.getConfig(node.connectionId);
const effectiveDbType = effectiveDatabaseTypeForConnection(config);