5분 튜토리얼|신용카드 불필요
5분 만에 AI 메모리 추가하기
이 단계별 가이드를 따라 AI에 영구 메모리를 추가하세요. 각 단계를 완료할 때마다 체크하세요.
진행0 / 5 단계
0%- Seizn 계정에 가입하거나 로그인
- 대시보드에서 API 키로 이동
- '새 키 생성'을 클릭하고 키 복사
bash
npm install seizntypescript
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의 컨텍스트와 응답을 향상시키세요.