From the error you have, it looks like you might have misconfigured your collection.
Did you include the generative anthropic module or a vectorizer
module??
The snippet you shared (minus the “;” before generate
) worked for me with this collection configuration.
await client.collections.create({
name: 'Collection',
// Define your vectorizer and Anthropic generative model
vectorizers: weaviate.configure.vectorizer.text2VecOpenAI({
sourceProperties: ['title','text']
}),
generative: weaviate.configure.generative.anthropic(),
multiTenancy: weaviate.configure.multiTenancy({enabled: true, autoTenantCreation: true})
});
Let me know if any of these fix the issue for you.