🤖 Welcome to my chatbot! ask it any question and the information would be stored in a JSON file. Plus, if it finds any answers, it will return the sources.
- Generates responses based on a book written by Naval Ravikant.
- Allows users to provide feedback with a thumbs up or down.
- Stores user feedback in a JSON file for historical analysis.
- Cites sources for the information provided in responses.
- OpenAI API key with access to Large Language Models.
ATTENTION!
enter your API key in the .env file, here's an example:
OPENAI_API_KEY=my_key
- move to ./code folder
- docker build -t chatbot:poc .
Note: if your account isn't added to the Docker group, add sudo before:
sudo docker build -t chatbot:poc .
- Docker run chatbot:poc
- Clone the repository:
git clone https://github.com/your-username/your-repository.git
- Create a virtual environment:
python -m venv venv_chat
activate the environemnt:
venv_chat\Scripts\activate
- Install the required Python packages:
pip install -r requirements.txt
-
Set up your OpenAI API key. Create a
.env
file in the root directory of the project with your API key: -
Run the Streamlit app:
streamlit run app.py
- Clone the repository:
git clone https://github.com/your-username/your-repository.git
- Create a virtual environment:
python3 -m venv venv_chat
activate the environemnt:
source venv_chat\bin\activate
- Install the required Python packages:
pip install -r requirements.txt
-
Set up your OpenAI API key. Create a
.env
file in the root directory of the project with your API key: -
Run the Streamlit app:
streamlit run app.py
To test with a personalized documents, please replace the files in the docs
directory.
- Type your query into the input box and press enter.
- After receiving the response, provide feedback by clicking the thumbs up or down button.
- Review the sources cited in the response.
📝 Contributions are welcome! If you have suggestions for improvements, please feel free to submit a pull request.
Before running streamlit run app.py
, I installed chromadb
. For this specific package, I needed to visit "Microsoft C++ Build Tools" and install all necessary components to compile C++ projects.