We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4b4338 commit 18c8d25Copy full SHA for 18c8d25
templates/components/vectordbs/typescript/pg/index.ts
@@ -14,6 +14,9 @@ export async function getDataSource(params?: any) {
14
},
15
schemaName: PGVECTOR_SCHEMA,
16
tableName: PGVECTOR_TABLE,
17
+ dimensions: process.env.EMBEDDING_DIM
18
+ ? parseInt(process.env.EMBEDDING_DIM)
19
+ : undefined,
20
});
21
return await VectorStoreIndex.fromVectorStore(pgvs);
22
}
0 commit comments