5 min tutorial•No credit card required
Get Started with Seizn
Add persistent memory to your AI in under 5 minutes. Follow along and check off each step as you complete it.
Progress0 / 6 steps
npm install @seizn/springimport { SpringClient } from '@seizn/spring';
const spring = new SpringClient({
apiKey: process.env.SEIZN_API_KEY!,
});TypeScript
// Add a user preference
await spring.add({
content: "User prefers dark mode and minimal animations",
type: "preference",
tags: ["settings", "ui"],
});
// Add a fact
await spring.add({
content: "User is a senior engineer at TechCorp",
type: "fact",
tags: ["profile", "work"],
});TypeScript
// Search memories
const results = await spring.search({
query: "What are the user's UI preferences?",
topK: 5,
threshold: 0.7,
});
console.log(results);
// [{ content: "User prefers dark mode...", similarity: 0.92 }]TypeScript
// Get relevant context for AI
const memories = await spring.recall("user preferences");
// Use with your AI (OpenAI example)
const response = await openai.chat.completions.create({
model: "gpt-4",
messages: [
{
role: "system",
content: `You know this about the user:\n${memories.map(m => m.content).join('\n')}`,
},
{ role: "user", content: "Recommend a code editor setup" },
],
});
// AI response will be personalized based on stored memories