Back

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 1m

Very few people understand, how AI memory works. I've explained in simple below. ๐—ฆ๐—ต๐—ผ๐—ฟ๐˜-๐—ง๐—ฒ๐—ฟ๐—บ ๐— ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜†(๐—ฆ๐—ง๐— ) 1. ๐—”๐—ฐ๐—ฐ๐—ฒ๐—ฝ๐˜ ๐—ถ๐—ป๐—ฝ๐˜‚๐˜ โ€“The system receives your message (question/prompt). 2. ๐—•๐—ฟ๐—ฒ๐—ฎ๐—ธ ๐—ถ๐—ป๐˜๐—ผ ๐˜๐—ผ๐—ธ๐—ฒ๐—ป๐˜€โ€“ Your message is divided into smaller units (tokens) so the model can process it. 3. ๐—ฉ๐—ฒ๐—ฟ๐—ถ๐—ณ๐˜† ๐˜€๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ป ๐—œ๐——โ€“ The system checks which conversation the message belongs to. 4. ๐—ฃ๐˜‚๐—น๐—น ๐—ฟ๐—ฒ๐—น๐—ฒ๐˜ƒ๐—ฎ๐—ป๐˜ ๐—ฐ๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜โ€“ It gathers recent messages from the same chat. 5. ๐—•๐˜‚๐—ถ๐—น๐—ฑ ๐—ฐ๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜ ๐—ฏ๐˜‚๐—ณ๐—ณ๐—ฒ๐—ฟโ€“ It combines your new message and recent chat history into working memory. 6. ๐—ฆ๐—ฒ๐—ป๐—ฑ ๐˜๐—ผ ๐—บ๐—ผ๐—ฑ๐—ฒ๐—นโ€“ The complete context is sent to the AI model. 7. ๐—–๐—ฟ๐—ฒ๐—ฎ๐˜๐—ฒ ๐—ฟ๐—ฒ๐˜€๐—ฝ๐—ผ๐—ป๐˜€๐—ฒโ€“ The model generates an answer. 8. ๐—ฆ๐—ฒ๐—ป๐—ฑ ๐—ฟ๐—ฒ๐˜€๐—ฝ๐—ผ๐—ป๐˜€๐—ฒโ€“ The reply is displayed to you. 9. ๐—”๐—ฑ๐—ฑ ๐˜๐—ผ ๐—ฏ๐˜‚๐—ณ๐—ณ๐—ฒ๐—ฟโ€“ The new message and response are stored in the conversation memory. 10. ๐—ฆ๐—ต๐—ถ๐—ณ๐˜ ๐—ฐ๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜ ๐˜„๐—ถ๐—ป๐—ฑ๐—ผ๐˜„โ€“ If memory becomes too large, older messages are removed to free up space. 11. ๐—ฅ๐—ฒ๐˜๐—ฎ๐—ถ๐—ป ๐—ฟ๐—ฒ๐—ฐ๐—ฒ๐—ป๐˜ ๐—ฒ๐˜…๐—ฐ๐—ต๐—ฎ๐—ป๐—ด๐—ฒ๐˜€โ€“ Only the latest conversation turns are kept. 12. ๐—ก๐—ผ ๐˜€๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ป ๐—ฝ๐—ฒ๐—ฟ๐˜€๐—ถ๐˜€๐˜๐—ฒ๐—ป๐—ฐ๐—ฒโ€“ When the session ends, nothing is saved permanently. 13. ๐—–๐—น๐—ฒ๐—ฎ๐—ฟ ๐—ฎ๐˜ ๐—ฒ๐—ป๐—ฑโ€“ The memory is erased after the conversation finishes. 14. ๐—ฆ๐˜๐—ฎ๐—ฟ๐˜ ๐—ป๐—ฒ๐˜„ ๐˜€๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ปโ€“ Opening a new chat begins a fresh session. 15. ๐—•๐—ฒ๐—ด๐—ถ๐—ป ๐—ฎ๐—ด๐—ฎ๐—ถ๐—ป ๐—ณ๐—ฟ๐—ฒ๐˜€๐—ตโ€“ The system does not remember anything from previous chats. ______________ ๐—Ÿ๐—ผ๐—ป๐—ด-๐—ง๐—ฒ๐—ฟ๐—บ ๐— ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜†(๐—Ÿ๐—ง๐— ) 1. ๐—ฅ๐—ฒ๐—ฐ๐—ฒ๐—ถ๐˜ƒ๐—ฒ ๐—ถ๐—ป๐—ฝ๐˜‚๐˜โ€“ The system gets your message. 2. ๐—”๐˜๐˜๐—ฎ๐—ฐ๐—ต ๐—บ๐—ฒ๐˜๐—ฎ๐—ฑ๐—ฎ๐˜๐—ฎโ€“ Additional details are added, like time, session ID etc. 3. ๐—–๐—ผ๐—ป๐˜ƒ๐—ฒ๐—ฟ๐˜ ๐—ถ๐—ป๐˜๐—ผ ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฑ๐—ฑ๐—ถ๐—ป๐—ด๐˜€โ€“ The message is transformed into a numerical vector representation. 4. ๐—ฆ๐—ฒ๐—ฎ๐—ฟ๐—ฐ๐—ต ๐—บ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜†โ€“ The system looks through stored past memories. 5. ๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฒ ๐—ฟ๐—ฒ๐—น๐—ฒ๐˜ƒ๐—ฎ๐—ป๐˜ ๐—บ๐—ฎ๐˜๐—ฐ๐—ต๐—ฒ๐˜€โ€“ It finds similar past conversations or related stored information. 6. ๐—˜๐—บ๐—ฏ๐—ฒ๐—ฑ ๐˜€๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ปโ€“ The current session is also converted into embeddings. 7. ๐—ฃ๐—ฟ๐—ผ๐˜ƒ๐—ถ๐—ฑ๐—ฒ ๐—ฟ๐—ฒ๐˜€๐—ฝ๐—ผ๐—ป๐˜€๐—ฒโ€“ The system prepares a reply using both the current message and retrieved memories. 8. ๐—ฃ๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐—ฒ ๐—ผ๐˜‚๐˜๐—ฝ๐˜‚๐˜โ€“ The final answer is generated. 9. ๐—–๐—ผ๐—บ๐—ฏ๐—ถ๐—ป๐—ฒ ๐˜„๐—ถ๐˜๐—ต ๐—ถ๐—ป๐—ฝ๐˜‚๐˜โ€“ Past knowledge is merged with the current input. 10. ๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐—ฝ๐—ฟ๐—ฒ๐˜ ๐—ฒ๐—ป๐˜๐—ฟ๐—ถ๐—ฒ๐˜€โ€“ The system understands and applies the stored information correctly. 11. ๐—”๐˜๐˜๐—ฎ๐—ฐ๐—ต ๐—บ๐—ฒ๐˜๐—ฎ๐—ฑ๐—ฎ๐˜๐—ฎโ€“ Key information is labeled again for proper storage. 12. ๐—ฆ๐—ฎ๐˜ƒ๐—ฒ ๐˜๐—ผ ๐—Ÿ๐—ง๐— โ€“ The conversation is stored permanently in long-term memory. 13. ๐—ฅ๐—ฒ๐—ณ๐—ฟ๐—ฒ๐˜€๐—ต ๐—ถ๐—ป๐—ฑ๐—ฒ๐˜…โ€“ The memory index or database is updated. 14. ๐—ฅ๐—ฒ๐—ฐ๐—ผ๐—ฟ๐—ฑ ๐˜€๐—ฒ๐˜€๐˜€๐—ถ๐—ผ๐—ปโ€“ This interaction is saved as part of the systemโ€™s history. 15. ๐—œ๐—บ๐—ฝ๐—ฟ๐—ผ๐˜ƒ๐—ฒ ๐—ผ๐˜ƒ๐—ฒ๐—ฟ ๐˜๐—ถ๐—บ๐—ฒโ€“ The system becomes more personalized and context-aware with continued use. โœ… Repost for others so they can understand this key difference.

Reply
1

More like this

Recommendations from Medial

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 3m

Hands down the simplest explanation of AI agents using LLMs, memory, and tools. A user sends an input โ†’ the system (agent) builds a prompt and may call tools and memory-search (RAG) โ†’ agent decides and builds an answer โ†’ the answer is returned to th

See More
Reply
2
7

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 4m

2 ways AI systems today generate smarter answers. Iโ€™ve explained both in simple steps below. ๐—ฅ๐—”๐—š (๐—ฅ๐—ฒ๐˜๐—ฟ๐—ถ๐—ฒ๐˜ƒ๐—ฎ๐—น-๐—”๐˜‚๐—ด๐—บ๐—ฒ๐—ป๐˜๐—ฒ๐—ฑ ๐—š๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป) (๐˜ด๐˜ต๐˜ฆ๐˜ฑ-๐˜ฃ๐˜บ-๐˜ด๐˜ต๐˜ฆ๐˜ฑ) RAG lets AI fetch and use real-time external information to ge

See More
Reply
1
7
Image Description

Nalin Kumar Srivastava

B.Tech Student | Dat...ย โ€ขย 12m

Looking for Co-Founders & Team: Building AI-Powered Synthetic Memory for Humans! Imagine a future where you never forget an important conversation, an idea, or a moment. Weโ€™re building an AI-powered Synthetic Memory Systemโ€”a revolutionary way to cap

See More
2 Replies
3

Ayush Maurya

AI Pioneerย โ€ขย 1y

Is there any app on all in one conversation manager like all platforms at one manager of message

Reply
2

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 2m

Prompt vs Context vs RAG. I've explained it in a simple way below. 1. ๐—ฃ๐—ฟ๐—ผ๐—บ๐—ฝ๐˜ ๐—˜๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด Prompt Engineering is about ๐—ฐ๐—น๐—ฒ๐—ฎ๐—ฟ ๐—ถ๐—ป๐˜€๐˜๐—ฟ๐˜‚๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐˜€, not magic words. โ€ข ๐——๐—ฒ๐—ณ๐—ถ๐—ป๐—ฒ ๐˜๐—ต๐—ฒ ๐—ณ๐—ถ๐—ป๐—ฎ๐—น ๐—ด๐—ผ๐—ฎ๐—น: What exactly do

See More
Reply
1
Image Description
Image Description

Account Deleted

Hey I am on Medialย โ€ขย 10m

What truly matters? Is it the initial conversation with the investment banking professional to fundraise? Or.. Is it the opportunity to get into that conversation in the first place? (sometimes, access is the real privilege)

2 Replies
13

Vansh Khandelwal

Full Stack Web Devel...ย โ€ขย 1y

In modern app development, new database trends like GraphQL and Redis are transforming data management. ๐†๐ซ๐š๐ฉ๐ก๐๐‹ is a query language for APIs that allows clients to request specific data, avoiding over-fetching. Advantages include flexible da

See More
Reply
1

Rahul Agarwal

Founder | Agentic AI...ย โ€ขย 1m

3 main types of memory used in AI systems. Iโ€™ve explained it in a simple way below. 1. ๐—˜๐—ฝ๐—ถ๐˜€๐—ผ๐—ฑ๐—ถ๐—ฐ ๐— ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜† Episodic Memory is about ๐—ฟ๐—ฒ๐—บ๐—ฒ๐—บ๐—ฏ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—ฝ๐—ฎ๐˜€๐˜ ๐—ถ๐—ป๐˜๐—ฒ๐—ฟ๐—ฎ๐—ฐ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐—ฎ๐—ป๐—ฑ ๐—ฒ๐˜…๐—ฝ๐—ฒ๐—ฟ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ๐˜€. โ€ข ๐—ก๐—ผ๐˜๐—ถ๐—ฐ๐—ฒ ๐—ฒ

See More
Reply
1
4
Image Description
Image Description

IncorpX

Your partner from St...ย โ€ขย 10m

Imagine this: You wake up. ChatGPT reminds you of your goals. It summarizes your emails. Schedules your calls. Suggests gifts for your partner. And tracks your mood. Not because you prompted it-But because it remembers your life. This is the futu

See More
3 Replies
4
Image Description
Image Description

Chal Kuch Padhe

Student and Content ...ย โ€ขย 1y

Hey, it's my first post from my own mobile phone.. This is the message to all those who updated the system of Medial and the moderator of #MEDIALapp , who find and solved the problem. Thanks a lot !! ๐Ÿ˜

2 Replies
2

Download the medial app to read full posts, comements and news.