optmize collection description

Signed-off-by: ChengZi <chen.zhang@zilliz.com>
This commit is contained in:
ChengZi
2025-07-26 21:11:47 +08:00
parent 6c06cdc71b
commit e479dad407

View File

@@ -401,7 +401,8 @@ export class CodeContext {
}
const dimension = this.embedding.getDimension();
await this.vectorDatabase.createCollection(collectionName, dimension, `Code chunk vector storage collection for codebase: ${codebasePath}`);
const dirName = path.basename(codebasePath);
await this.vectorDatabase.createCollection(collectionName, dimension, `Index for ${dirName}`);
console.log(`✅ Collection ${collectionName} created successfully (dimension: ${dimension})`);
}