fix(frontend): switch to gemini-embedding-001
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user