Seizn./Docs/ट्यूटोरियल
5 मिनट ट्यूटोरियल|क्रेडिट कार्ड आवश्यक नहीं

5 मिनट में AI मेमोरी जोड़ें

अपने AI को स्थायी मेमोरी देने के लिए इस चरण-दर-चरण गाइड का पालन करें। प्रत्येक चरण पूरा होने पर उसे चिह्नित करें।

प्रगति0 / 5 चरण
0%
  1. अपने Seizn खाते में साइन अप या लॉग इन करें
  2. डैशबोर्ड में API कुंजियों पर जाएं
  3. 'नई कुंजी बनाएं' पर क्लिक करें और अपनी कुंजी कॉपी करें
डैशबोर्ड पर जाएं
bash
npm install seizn
typescript
import { Seizn } from 'seizn';

const client = new Seizn({ apiKey: process.env.SEIZN_API_KEY });

// Save a memory
const memory = await client.add({
  content: "User prefers dark mode and concise responses",
  memory_type: "preference",
  tags: ["ui", "communication"]
});

console.log('Memory saved:', memory.id);
typescript
// Search for relevant memories
const results = await client.search({
  query: "What are the user's UI preferences?",
  limit: 5,
  threshold: 0.7
});

// Use memories in your AI prompt
for (const memory of results) {
  console.log(`[${memory.similarity.toFixed(2)}] ${memory.content}`);
}

मेमोरी खोजते समय आपको इस प्रकार का रिस्पॉन्स दिखना चाहिए:

json
{
  "success": true,
  "results": [
    {
      "id": "mem_a1b2c3d4e5f6",
      "content": "User prefers dark mode and concise responses",
      "memory_type": "preference",
      "tags": ["ui", "communication"],
      "similarity": 0.94,
      "created_at": "2026-01-15T10:30:00Z"
    }
  ],
  "count": 1,
  "query_time_ms": 47
}

सफल!

आपके AI में अब स्थायी मेमोरी है। अपने AI के संदर्भ और प्रतिक्रियाओं को बेहतर बनाने के लिए खोज परिणामों का उपयोग करें।