Welcome to the Chatbot Langchain Mark One project! This interactive chatbot leverages Langchain and Streamlit to provide a seamless user experience for answering questions through real-time web searches while maintaining conversation context.
- Interactive Q&A: Accepts questions from users.
- Web Search Integration: Conducts web searches to provide accurate answers.
- Contextual Conversations: Keeps track of conversation history for follow-up questions.
- Real-time Responses: Streams responses as they are generated.
To get started, you'll need the following:
- Necessary API keys for OpenAI, Google API, Gustomer Search Engine ID - GOOGLE_CSE_ID
git clone https://github.com/yourusername/chatbot-langchain-markone.git
cd chatbot-langchain-markone- Create
.envfile in the root of the project - Copy of the contents from the
.env.samplefile and update it with your API keys.
- Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`- install the required packages:
pip install -r requirements.txt- Run the Streamlit app:
streamlit run bot/app.pyIf you prefer using Docker, you can build and run the application with the following commands:
docker build -t chatbot-langchain-markone .- Run the Docker container:
docker run -p 8501:8501 chatbot-langchain-markoneOnce the application is running, navigate to http://localhost:8501 in your browser to start chatting with the bot.