diff --git a/src/services/code-index/vector-store/__tests__/qdrant-client.spec.ts b/src/services/code-index/vector-store/__tests__/qdrant-client.spec.ts index 8947c2f3e7..c6523b4928 100644 --- a/src/services/code-index/vector-store/__tests__/qdrant-client.spec.ts +++ b/src/services/code-index/vector-store/__tests__/qdrant-client.spec.ts @@ -532,12 +532,10 @@ describe("QdrantVectorStore", () => { vectors: { size: mockVectorSize, distance: "Cosine", // Assuming 'Cosine' is the DISTANCE_METRIC - on_disk: true, }, hnsw_config: { m: 64, ef_construct: 512, - on_disk: true, }, }) expect(mockQdrantClientInstance.deleteCollection).not.toHaveBeenCalled() @@ -616,12 +614,10 @@ describe("QdrantVectorStore", () => { vectors: { size: mockVectorSize, // Should use the new, correct vector size distance: "Cosine", - on_disk: true, }, hnsw_config: { m: 64, ef_construct: 512, - on_disk: true, }, }) @@ -915,12 +911,10 @@ describe("QdrantVectorStore", () => { vectors: { size: newVectorSize, // Should create with new 768 dimensions distance: "Cosine", - on_disk: true, }, hnsw_config: { m: 64, ef_construct: 512, - on_disk: true, }, }) expect(mockQdrantClientInstance.createPayloadIndex).toHaveBeenCalledTimes(5) diff --git a/src/services/code-index/vector-store/qdrant-client.ts b/src/services/code-index/vector-store/qdrant-client.ts index f18f388323..a76f00d6a3 100644 --- a/src/services/code-index/vector-store/qdrant-client.ts +++ b/src/services/code-index/vector-store/qdrant-client.ts @@ -155,12 +155,10 @@ export class QdrantVectorStore implements IVectorStore { vectors: { size: this.vectorSize, distance: this.DISTANCE_METRIC, - on_disk: true, }, hnsw_config: { m: 64, ef_construct: 512, - on_disk: true, }, }) created = true @@ -250,12 +248,10 @@ export class QdrantVectorStore implements IVectorStore { vectors: { size: this.vectorSize, distance: this.DISTANCE_METRIC, - on_disk: true, }, hnsw_config: { m: 64, ef_construct: 512, - on_disk: true, }, }) console.log(`[QdrantVectorStore] Successfully created new collection ${this.collectionName}`)