This project allows you to build a chatbot with any PromptQL project in minutes! It provides a Streamlit-based frontend that interacts with users and an LLM using the PromptQL API.
- Quickly set up a chatbot with any PromptQL project.
- Streamlit UI for an intuitive and interactive user experience.
- PromptQL API integration for seamless communication with LLMs.
- Requires just three environment variables for setup.
git clone https://github.com/subham-sps/promptql-chatbot.git
cd promptql-chatbotBefore running the chatbot, create a .env file in the project root and add the following:
PROMPTQL_API_KEY=your-api-key
PROMPTQL_PROJECT_URL=your-project-url
PROMPTQL_API_URL=your-api-urlAlternatively, you can set them manually in your terminal:
export PROMPTQL_API_KEY="your-api-key"
export PROMPTQL_PROJECT_URL="your-project-url"
export PROMPTQL_API_URL="your-api-url"(For Windows, use set instead of export in cmd.)
pip install -r requirements.txtstreamlit run app.py- Open the Streamlit UI in your browser.
- Enter your queries, and the chatbot will respond using the configured PromptQL project.
- Modify the PromptQL project URL to switch between different chatbot implementations.
- Modify
app.pyto customize chatbot behavior. - Update Streamlit UI elements to match your use case.
Feel free to submit issues or contribute via PRs to improve the project!