Skip to content

Commit c406aad

Browse files
committed
Added missing query for generating neo4j index for the new DevDocDBNode
1 parent b8b1f7a commit c406aad

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

ai-assistant/src/endpoints/purgeDB.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,20 @@ export class PurgeDBEndpoint extends ApiEndpoint {
4545
"}};",
4646
],
4747

48-
// Create indices for code embeddings
48+
// Create indices for name embeddings
49+
[
50+
"CREATE VECTOR INDEX `nameEmbeddings` IF NOT EXISTS",
51+
"FOR (n: Node) ON (n.nameEmbeddings)",
52+
"OPTIONS {indexConfig: {",
53+
" `vector.dimensions`: 384,",
54+
" `vector.similarity_function`: 'COSINE'",
55+
"}};",
56+
],
57+
58+
// Create indices for content embeddings
4959
[
50-
"CREATE VECTOR INDEX `codeEmbeddings` IF NOT EXISTS",
51-
"FOR (n: Node) ON (n.codeEmbeddings)",
60+
"CREATE VECTOR INDEX `contentEmbeddings` IF NOT EXISTS",
61+
"FOR (n: Node) ON (n.contentEmbeddings)",
5262
"OPTIONS {indexConfig: {",
5363
" `vector.dimensions`: 384,",
5464
" `vector.similarity_function`: 'COSINE'",

0 commit comments

Comments
 (0)