Skip to content

subham-sps/promptql-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 PromptQL Chatbot Builder

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.

✨ Features

  • 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.

🛠️ Setup Instructions

1️⃣ Clone the Repository

git clone https://github.com/subham-sps/promptql-chatbot.git
cd promptql-chatbot

2️⃣ Set Up Environment Variables

Before running the chatbot, create a .env file in the project root and add the following:

📄 .env file sample:

PROMPTQL_API_KEY=your-api-key
PROMPTQL_PROJECT_URL=your-project-url
PROMPTQL_API_URL=your-api-url

Alternatively, 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.)

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Run the Chatbot

streamlit run app.py

🎯 Usage

  • 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.

🔧 Customization

  • Modify app.py to customize chatbot behavior.
  • Update Streamlit UI elements to match your use case.

📌 Contributing

Feel free to submit issues or contribute via PRs to improve the project!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages