This is an LLM-powered RAG chatbot with scraping capabilities. You can see the hosted version here[https://brylebot.streamlit.app/].
Create a new Conda environment to manage dependencies. Replace your_env_name
with your desired environment name.
conda create --name your_env_name
conda activate your_env_name
Install all necessary libraries listed in the requirements.txt
file.
pip install -r requirements.txt
Execute the main script using Streamlit to start the chatbot.
streamlit run main.py
To update the installed libraries, you can run:
pip install --upgrade -r requirements.txt
Each time you start a new terminal session, activate the Conda environment with:
conda activate your_env_name
To deactivate the environment when you're done, use:
conda deactivate
If your application requires credentials or other environment variables, ensure they are set correctly in an .env
file. Here is an example of how to set up your .env
file:
OPENAI_API_KEY=your_api_key
APIFY_API_TOKEN=your_secret_key
WEBSITE_URL=YOUR_WEBSITE_URL_TO_SCRAPE
Once the environment is set up and the application is running, you can interact with the chatbot through the Streamlit interface. The chatbot is capable of answering questions, performing searches, and scraping content from the web as needed.
- Environment Activation: Ensure you have activated the correct Conda environment before running commands.
- Library Installation: Verify that all libraries are installed without errors. Missing libraries can cause runtime issues.
- Credentials: Double-check that all necessary credentials are correctly set in the
.env
file.
- Fork the Repository: Create a personal copy of the project on your GitHub account.
- Clone the Forked Repository: Clone the repository to your local machine.
git clone https://github.com/your_username/Bryle.git
- Create a New Branch: Create a branch for your feature or bug fix.
git checkout -b feature/your_feature_name
- Make Your Changes: Implement your changes and commit them with descriptive messages.
- Push to Your Fork: Push your changes to your forked repository.
git push origin feature/your_feature_name
- Submit a Pull Request: Open a pull request to the main repository.