This is a comprehensive guide to set up and run a chatbot application built on Langchain and Streamlit. The chatbot leverages GPT-3.5 and DuckDuckGo's search capabilities to provide intelligent responses.
- Python 3.x
- pip (Python package installer)
-
Clone the Repository
git clone https://github.com/agniiva/langchain-ddg-openai.git
-
Navigate to the Project Directory
cd langchain-ddg-openai
-
Install Required Packages
pip install -r requirements.txt
This will install all the necessary packages listed in
requirements.txt
, such as Streamlit, langchain, and more. -
*Rename .env.example file to .env file
-
Setup your API in .env file
To run the application, execute the following command:
streamlit run app.py
This will launch the Streamlit app, and you can interact with it through your web browser.
A simple chat interface for user interaction, which also maintains a chat history.
Utilizes OpenAI's GPT-3.5 model for generating responses based on the user's queries.
Incorporates DuckDuckGo Search Run for conducting research or gathering information based on user queries.
The application uses Streamlit's callback features to update the UI in real-time.
The application makes use of .env
files for securely storing API keys.
Utilizes Python decorators to enable features like chat history.