To use Anthropicβs Claude models, you will need to get an API Key from Anthropic. You can do this from their console. Once you obtain a key, set it in the environment variable, like so -
ANTHROPIC_API_KEY="<Your key>"
npm install @llm-tools/embedjs-anthropic
import { RAGApplicationBuilder } from '@llm-tools/embedjs'; import { Anthropic } from '@llm-tools/embedjs-anthropic'; const app = await new RAGApplicationBuilder() .setModel(new Anthropic({ modelName: "..." }))
Was this page helpful?