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>"

Install Anthtopic addon

npm install @llm-tools/embedjs-anthropic

Usage

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?