I’m using the typescript weaviate-client v3.1.4 to create a RAG collection with anthropic.
Using weaviate v1.26.4 and confirmed the weaviate meta shows the generative-anthropic module enabled.
This code throws TypeError: generative.anthropic is not a function:
import weaviate, { vectorizer, generative, configure } from 'weaviate-client';
await client.collections.create({
...
generative: generative.anthropic(),
...
});
Confirmed using generative.openAI() works fine.