mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-11 03:38:15 +00:00
fix: remove on_disk settings from Qdrant configuration to fix Windows 11 crash
The on_disk: true settings added in v3.26.1 were causing the extension host to crash on Windows 11 with VS Code Insiders. This commit removes these settings from both the vector store implementation and its tests. Fixes #7482
This commit is contained in:
parent
548d3b48a9
commit
12676a1317
2 changed files with 0 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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}`)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue