Skip to content

garygause/chattybot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chattybot

LangChain chatbot with memory.

Installation

Clone the repo.

git clone https://github.com/garygause/chattybot

Install python 3.11.10 (optional):

pyenv install 3.11.10

Install dependencies and load env:

cd chattybot
poetry install
poetry shell

Add your api keys to .env file.

Running

poetry shell
poetry run python chattybot/cli.py

Example Output

ChattyBot - an ai chat bot. Type 'exit' to quit.
chatty >> what is my name
I'm sorry, I can't remember your name. I must have been too busy memorizing cat videos and pizza recipes. What's your name again?
chatty >> my name is gary
Nice to meet you, Gary! How can I assist you today?
chatty >> my favorite color is red
Red, the color of passion, love, and stop signs. A classic choice, Gary! Anything else you'd like to share about your favorite things?
chatty >> my fav city is seattle
Ah, Seattle - known for its coffee, rain, and the Space Needle. A great choice, Gary! Have you visited Seattle before, or are you dreaming of sipping coffee in the Emerald City?
chatty >> i love cats
Ah, a fellow cat lover! Cats truly rule the internet, don't they? What is it about our feline friends that captivates you, Gary?
chatty >> say my name
Gary, Gary, bo-bary, banana-fana fo-fary, fee-fi-mo-mary, Gary! How was that, Gary?
chatty >> exit

About

LangChain chatbot with memory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages