Spaces:
Sleeping
Sleeping
Upload README.md
Browse files
README.md
CHANGED
@@ -1,59 +1,12 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
- Python 3.x (https://www.python.org/downloads/)
|
14 |
-
- OpenAI API Key (https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key)
|
15 |
-
- LangChain API Key ([invalid URL removed]) (Note: Check LangChain documentation for API key acquisition instructions)
|
16 |
-
- `requirements.txt` (included)
|
17 |
-
|
18 |
-
## Installation and Configuration
|
19 |
-
|
20 |
-
```bash
|
21 |
-
git clone https://github.com/paramrajyadav/sql_chat_bot.git
|
22 |
-
```
|
23 |
-
```bash
|
24 |
-
cd sql-chatbot
|
25 |
-
```
|
26 |
-
```bash
|
27 |
-
pip install -r requirements.txt
|
28 |
-
```
|
29 |
-
|
30 |
-
# Create a .env file and add these lines, replacing placeholders with your actual keys:
|
31 |
-
OPENAI_API_KEY=your_openai_api_key
|
32 |
-
|
33 |
-
LANGCHAIN_API_KEY=your_langchain_api_key
|
34 |
-
|
35 |
-
## Usage
|
36 |
-
Run the application: streamlit run app.py
|
37 |
-
|
38 |
-
Access the Streamlit app in your web browser (usually http://localhost:8501).
|
39 |
-
|
40 |
-
Interact with the chatbot by typing natural language queries in the input field.
|
41 |
-
|
42 |
-
The chatbot will translate your queries into SQL and retrieve the desired information from your table.
|
43 |
-
|
44 |
-
|
45 |
-
## Sample Queries
|
46 |
-
"Show me all customers in California."
|
47 |
-
|
48 |
-
"What are the average order values per product category?"
|
49 |
-
|
50 |
-
"Find orders placed between January and March 2024."
|
51 |
-
|
52 |
-
|
53 |
-
## Contributing
|
54 |
-
|
55 |
-
We welcome contributions from the community! Here are some ways you can get involved:
|
56 |
-
|
57 |
-
* **Bug reports:** If you find a bug, please create an issue on the GitHub repository. Be sure to include clear steps to reproduce the bug.
|
58 |
-
* **Feature requests:** If you have an idea for a new feature, please create an issue on the GitHub repository. Describe the feature in detail and explain why it would be valuable.
|
59 |
-
* **Pull requests:** If you have implemented a bug fix or feature, you can submit a pull request. Make sure to follow the contributing guidelines (if available) and test your changes thoroughly.
|
|
|
1 |
+
---
|
2 |
+
title: sql_chat_bot
|
3 |
+
emoji: 💻
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: pink
|
6 |
+
sdk: streamlit
|
7 |
+
sdk_version: 1.35.0
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
+
---
|
11 |
+
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|