Skip to content
Snippets Groups Projects
Unverified Commit 18c8d254 authored by Ravi Kumar's avatar Ravi Kumar Committed by GitHub
Browse files

added EMBEDDING_DIM if available or undefined to fallback to default config (#487)

parent d4b4338f
No related branches found
Tags v0.3.23
No related merge requests found
......@@ -14,6 +14,9 @@ export async function getDataSource(params?: any) {
},
schemaName: PGVECTOR_SCHEMA,
tableName: PGVECTOR_TABLE,
dimensions: process.env.EMBEDDING_DIM
? parseInt(process.env.EMBEDDING_DIM)
: undefined,
});
return await VectorStoreIndex.fromVectorStore(pgvs);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment