M
Mastra3d ago
Amit

@mastra/chroma package showing following warning

Collection schema deserialization was created with the google-generative-ai embedding function. However, the @chroma-core/google-generative-ai package is not installed. 'add' and 'query' will fail unless you provide them embeddings directly, or install the @chroma-core/google-generative-ai package. I could not find any such package on NPM. I'm guessing chroma package itself outdated? Query seems to work though.
import { ChromaVector } from '@mastra/chroma';
import { createVectorQueryTool } from "@mastra/rag";
import { google } from '@ai-sdk/google';

const vectorStore = new ChromaVector({
apiKey: '',
tenant: '',
database: 'Development',
});

export const tool = createVectorQueryTool({
vectorStore,
id: 'rag',
description: `Search through documentations to find relevant information to help answer the user query.`,
model: google.textEmbeddingModel('text-embedding-004'),
indexName: 'kb'
})
import { ChromaVector } from '@mastra/chroma';
import { createVectorQueryTool } from "@mastra/rag";
import { google } from '@ai-sdk/google';

const vectorStore = new ChromaVector({
apiKey: '',
tenant: '',
database: 'Development',
});

export const tool = createVectorQueryTool({
vectorStore,
id: 'rag',
description: `Search through documentations to find relevant information to help answer the user query.`,
model: google.textEmbeddingModel('text-embedding-004'),
indexName: 'kb'
})
5 Replies
Mastra Triager
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10862 🔍 If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly. 🙏 Thank you for helping us improve Mastra!
Abhi Aiyer
Abhi Aiyer3d ago
Very weird, we’ll take a look
Grayson
Grayson3d ago
relevant upstream: https://github.com/chroma-core/chroma/issues/5799 looks fixed and an update on our end would fix? more: https://github.com/chroma-core/chroma/issues/5854
Abhi Aiyer
Abhi Aiyer3d ago
sweet we'll update deps then!
Grayson
Grayson3d ago
updated, but still see the warning. i think will need an upstream issue for this specific one from what i have read, the error is annoying harmless ah nvm, its a different warning that was already present in the tests. I'll PR the dep update and let's see if it resolves your specific error message https://github.com/mastra-ai/mastra/pull/10883

Did you find this page helpful?