대부분의 챗봇은 창을 스크롤하는 순간 모든 걸 잊어버려서, 사용자는 같은 말을 계속 반복하게 됩니다. 이 레이어는 각 메시지를 임베딩하고 Supabase에 pgvector로 저장해 Telegram 봇에 영구적인 기억력을 부여합니다.
sonnet4일Telegram Bot APISupabasepgvectorClaude
Claude
84ROI
73Scale
$3.6k92Saved
ROI for
README.md
왜 이 서브에이전트인가
대부분의 챗봇은 창을 스크롤하는 순간 모든 걸 잊어버려서, 사용자는 같은 말을 계속 반복하게 됩니다. 이 레이어는 각 메시지를 임베딩하고 Supabase에 pgvector로 저장해 Telegram 봇에 영구적인 기억력을 부여합니다.
새로운 질문이 들어오면 가장 관련성 높은 과거 메시지를 불러와 맥락으로 제공합니다. 봇은 지난주에 나눈 대화까지 기억하며, 초기화되는 대신 대화가 쌓일수록 기억이 계속 확장됩니다.
작동 방식
Used at step 01 to kick off the pipeline.
Write
Used at step 01 to kick off the pipeline.
WebFetch
Used at step 01 to kick off the pipeline.
WebSearch
Used at step 01 to kick off the pipeline.
새로운 질문이 들어오면 유사도 검색을 통해 가장 관련성 높은 과거 메시지를 검색합니다.
pending
검색된 기억과 최근 대화 내용을 모델의 컨텍스트로 입력합니다.
pending
새로운 대화를 저장하여 매번의 대화마다 기억을 확장합니다.
pending
샘플 출력
json
// Sample output
// (generated when the pipeline finishes)
Answer using the retrieved memories below; if a memory conflicts with the new message, trust the newest one.
Unlock the rest
The full agent definition, install snippet, and starter task are gated for community members.
Members get the full `.md` agent file, the npm / pnpm install one-liners, a starter prompt that we've tuned against real runs, and the open-source repo when this automation ships there. One email, magic link, done.