File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
ai-assistant/src/endpoints Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff 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'" ,
You can’t perform that action at this time.
0 commit comments