fix(frontend): switch to gemini-embedding-001

This commit is contained in:
h
2026-01-28 10:41:34 +01:00
parent f97933bc9b
commit fc19240952

View File

@@ -7,7 +7,7 @@ import { action, mutation, query } from './_generated/server';
function createRagInstance(apiKey: string) {
const google = createGoogleGenerativeAI({ apiKey });
return new RAG(components.rag, {
textEmbeddingModel: google.embedding('text-embedding-004'),
textEmbeddingModel: google.embedding('gemini-embedding-001'),
embeddingDimension: 768
});
}