Skip to content

A GPT Q&A bot with long-term memory that can answer questions regarding private documents.

Notifications You must be signed in to change notification settings

Sylphritz/LLM-Chat-Bot-With-Long-Term-Memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Python LLM Q&A Bot with Long-Term Memory

This is a Jupyter Notebook showcasing a Large Language Model GPT chat bot with the ability to retain long-term memory by utilizing a vector database.

Tools and Frameworks Used In This Project

  • Language: Python
  • ChromaDB - An open-source vector database you can host on your machine.
    • You can also use other vector database like Pinecone, Milvus, and etc. But for simplicity's sake, I will use Chroma's transient storage to store the data.
  • LangChain - A framework that makes it much easier to work with LLMs and vector database. It basically acts as a bridge between language models and vector database. It also provides many functionalities that help prompt generation and query processing.
  • OpenAI - This will be our LLM bot that convert the data queried from the database into proper sentences.
pip install -q openai langchain python-dotenv tiktoken chromadb wikipedia

About

A GPT Q&A bot with long-term memory that can answer questions regarding private documents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published