Views
No views yet
yarn installTeapotAI class that helps you interact with language models. Here's a basic example:1import TeapotAI from './TeapotAI.js';
2
3const ai = new TeapotAI({
4 pipelineOptions: {
5 dtype: 'q4'
6 }
7});
8
9// Query with context
10const response = await ai.query(
11 "What is the capital?",
12 "France is a country in Western Europe."
13);