Chat with an AI version of me, Alvin.
Live Demo: https://chat.alvintang.me
Used: OpenAI GPT and Embedding Models, LangChain, LangServe
This project is a POC for an AI bot designed to chat like me, Alvin. It can answer very basic questions about me and my work experience! It also has the ability to answer questions with the previous chat history in mind.
Follow the following steps to deploy.
- Create
backend.env
andfrontend.env
in the root of this project. Add the necessary environment variables.- The environment variables are listed in the
README.md
files in bothbackend/
andfrontend/
folders.
- The environment variables are listed in the
- Add context data in
data/context
at the root of this project. Thedata/context
folder should only contain multiple markdown files.- The markdown files are added into vectorspace and then queried per user input prompt. This queried result is then passed into OpenAI's LLM.
- Run
docker compose up -d
- Now go to http://localhost