JigsawStack Prompt Engine
LangChain.js supports calling JigsawStack Prompt Engine LLMs.
Setup
Credentials
export JIGSAWSTACK_API_KEY="your-api-key"
Usage
- npm
- Yarn
- pnpm
npm install @langchain/jigsawstack
yarn add @langchain/jigsawstack
pnpm add @langchain/jigsawstack
import { JigsawStackPromptEngine } from "@langchain/jigsawstack";
export const run = async () => {
const model = new JigsawStackPromptEngine();
const res = await model.invoke(
"Tell me about the leaning tower of pisa?\nAnswer:"
);
console.log({ res });
};
Related
- LLM conceptual guide
- LLM how-to guides