Skip to content

This project demonstrates a conversational AI chatbot built using LangChain and OpenAI's API, enhanced with two types of memory: ๐Ÿง  ConversationBufferMemory: preserves the raw message history. ๐Ÿง  ConversationSummaryMemory: maintains a dynamic summary of the conversation.

Notifications You must be signed in to change notification settings

aungkaungpyaepaing/Conversational-Chatbot-with-Multi-Memory-Architecture-using-LangChain-OpenAI-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“„ Description

This project demonstrates a conversational AI chatbot built using LangChain and OpenAI's API, enhanced with two types of memory:

๐Ÿง  ConversationBufferMemory: preserves the raw message history.

๐Ÿง  ConversationSummaryMemory: maintains a dynamic summary of the conversation.

These memories are combined using CombinedMemory to give the LLM a richer context: raw user interactions and a concise abstract. The chatbot responds with improved coherence, continuity, and awareness of long-term context.

๐Ÿ› ๏ธ Features

๐Ÿ’ฌ OpenAI GPT-based chatbot (ChatOpenAI)

๐Ÿ“š Multi-memory support (CombinedMemory)

๐Ÿ“– Prompt engineering with dynamic input injection

๐Ÿงช Interactive examples in Jupyter Notebook (.ipynb)

โœ… Modular, beginner-friendly, and production-ready

๐Ÿง  How Memory Works

ConversationBufferMemory helps the LLM remember the latest turns verbatim.

ConversationSummaryMemory uses a language model to summarize the conversation progressively.

CombinedMemory feeds both to the prompt template to enable deep reasoning.

About

This project demonstrates a conversational AI chatbot built using LangChain and OpenAI's API, enhanced with two types of memory: ๐Ÿง  ConversationBufferMemory: preserves the raw message history. ๐Ÿง  ConversationSummaryMemory: maintains a dynamic summary of the conversation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published