Skip to content

Commit c817d1a

Browse files
committed
chore: update repository name to QueryMind-SQL in config, links, and deployment docs
1 parent 05e53a4 commit c817d1a

6 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ React renders the SQL in a syntax-highlighted box and the results as a pageable
230230
## 7. 📁 Project Structure
231231

232232
```
233-
SQL-Query-Generator/
233+
QueryMind-SQL/
234234
│
235235
├── agent/ # Core AI pipeline
236236
│ ├── sql_chain.py # Main LCEL pipeline: question → SQL → results
@@ -326,8 +326,8 @@ The database uses a **star schema** — a design pattern common in data warehous
326326
### 1. Clone and install Python dependencies
327327

328328
```bash
329-
git clone https://github.com/ridash2005/SQL-Query-Generator.git
330-
cd SQL-Query-Generator
329+
git clone https://github.com/ridash2005/QueryMind-SQL.git
330+
cd QueryMind-SQL
331331
pip install -r requirements.txt
332332
```
333333

‎frontend/src/components/Footer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default function Footer() {
101101
gap: '10px',
102102
}}>
103103
{[
104-
{ label: 'GitHub Repository', href: 'https://github.com/ridash2005/SQL-Query-Generator' },
104+
{ label: 'GitHub Repository', href: 'https://github.com/ridash2005/QueryMind-SQL' },
105105
{ label: 'Olist Dataset', href: 'https://www.kaggle.com/datasets/olistbr/brazilian-ecommerce' },
106106
{ label: 'LangChain Docs', href: 'https://www.langchain.com/' },
107107
{ label: 'OpenAI Platform', href: 'https://platform.openai.com/' },

‎frontend/src/components/Navbar.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export default function Navbar() {
155155
</button>
156156

157157
<a
158-
href="https://github.com/ridash2005/SQL-Query-Generator"
158+
href="https://github.com/ridash2005/QueryMind-SQL"
159159
target="_blank"
160160
rel="noopener noreferrer"
161161
className="qm-btn-secondary"

‎frontend/vite.config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import react from '@vitejs/plugin-react'
33

44
export default defineConfig({
55
plugins: [react()],
6-
base: '/SQL-Query-Generator/',
6+
base: '/QueryMind-SQL/',
77
server: {
88
proxy: {
99
'/api': 'http://localhost:8000'

‎infra/README_DEPLOY.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Text-to-SQL Deployment Guide
1+
# QueryMind-SQL Deployment Guide
22

3-
Complete guide to deploying the Text-to-SQL system on AWS EC2 (Ubuntu 22.04).
3+
Complete guide to deploying the QueryMind-SQL system on AWS EC2 (Ubuntu 22.04).
44

55
---
66

@@ -34,8 +34,8 @@ Complete guide to deploying the Text-to-SQL system on AWS EC2 (Ubuntu 22.04).
3434
```bash
3535
ssh -i ~/.ssh/your-key.pem ubuntu@<PUBLIC_IP>
3636
sudo apt-get install -y git
37-
git clone https://github.com/your-org/text-to-sql.git /opt/text-to-sql
38-
cd /opt/text-to-sql
37+
git clone https://github.com/ridash2005/QueryMind-SQL.git /opt/querymind-sql
38+
cd /opt/querymind-sql
3939
```
4040

4141
---
@@ -54,13 +54,13 @@ This installs Python 3.11, Node.js 20, nginx, and system dependencies.
5454

5555
```bash
5656
export OPENAI_API_KEY="sk-your-actual-key-here"
57-
export APP_DIR=/opt/text-to-sql
57+
export APP_DIR=/opt/querymind-sql
5858
sudo bash infra/configure_env.sh
5959
```
6060

6161
Verify the `.env` was created with correct permissions:
6262
```bash
63-
ls -la /opt/text-to-sql/.env # Should show -rw------- (600)
63+
ls -la /opt/querymind-sql/.env # Should show -rw------- (600)
6464
```
6565

6666
---
@@ -80,7 +80,7 @@ scp -i ~/.ssh/your-key.pem \
8080
olist_geolocation_dataset.csv \
8181
olist_order_reviews_dataset.csv \
8282
product_category_name_translation.csv \
83-
ubuntu@<PUBLIC_IP>:/opt/text-to-sql/data/raw/
83+
ubuntu@<PUBLIC_IP>:/opt/querymind-sql/data/raw/
8484
```
8585

8686
Or set `KAGGLE_AUTO_DOWNLOAD=1` in `.env` and install the Kaggle CLI:
@@ -94,7 +94,7 @@ pip install kaggle
9494
## Phase 6: Install Application
9595

9696
```bash
97-
cd /opt/text-to-sql
97+
cd /opt/querymind-sql
9898
bash infra/install_app.sh
9999
```
100100

@@ -167,7 +167,7 @@ Open your browser at `http://<PUBLIC_IP>/`
167167
## Updating the Application
168168

169169
```bash
170-
cd /opt/text-to-sql
170+
cd /opt/querymind-sql
171171
git pull origin main
172172
source venv/bin/activate && pip install -r requirements.txt
173173
cd frontend && npm ci && npm run build && cd ..

‎infra/TROUBLESHOOTING.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ Quick reference for the most common deployment issues.
4747
**Causes & fixes:**
4848
1. **build_index.py was never run:**
4949
```bash
50-
cd /opt/text-to-sql
50+
cd /opt/querymind-sql
5151
source venv/bin/activate && source .env
5252
python -m agent.build_index
5353
sudo systemctl restart texttosql
5454
```
5555
2. **Wrong CHROMA_PERSIST_DIR:** The path in `.env` must match where `build_index.py` wrote files. Use absolute paths.
5656
3. **Permission issue:** Ensure `ubuntu` user owns `chroma_store/`:
5757
```bash
58-
chown -R ubuntu:ubuntu /opt/text-to-sql/chroma_store
58+
chown -R ubuntu:ubuntu /opt/querymind-sql/chroma_store
5959
```
6060

6161
---
@@ -67,10 +67,10 @@ Quick reference for the most common deployment issues.
6767
**Causes & fixes:**
6868
1. **OPENAI_API_KEY not set or wrong:** Check `.env` file:
6969
```bash
70-
grep OPENAI_API_KEY /opt/text-to-sql/.env
70+
grep OPENAI_API_KEY /opt/querymind-sql/.env
7171
```
7272
2. **Key has been revoked:** Generate a new key at https://platform.openai.com/api-keys.
73-
3. **EnvironmentFile not loaded:** Confirm `EnvironmentFile=/opt/text-to-sql/.env` in the service file and restart.
73+
3. **EnvironmentFile not loaded:** Confirm `EnvironmentFile=/opt/querymind-sql/.env` in the service file and restart.
7474

7575
---
7676

@@ -104,12 +104,12 @@ Quick reference for the most common deployment issues.
104104

105105
**Causes & fixes:**
106106
1. **Frontend not built:** Run `npm run build` in the `frontend/` directory.
107-
2. **nginx root path wrong:** Confirm `root /opt/text-to-sql/frontend/dist;` in nginx.conf.
107+
2. **nginx root path wrong:** Confirm `root /opt/querymind-sql/frontend/dist;` in nginx.conf.
108108
3. **SPA routing not configured:** Ensure `try_files $uri $uri/ /index.html;` is in nginx location block.
109109
4. **JavaScript error in browser console:** Open DevTools → Console tab to see the actual error.
110110
5. **Old dist/ cached:** Hard reload with `Ctrl+Shift+R` or `Cmd+Shift+R`.
111111
```bash
112112
# Rebuild frontend
113-
cd /opt/text-to-sql/frontend && npm run build
113+
cd /opt/querymind-sql/frontend && npm run build
114114
sudo systemctl reload nginx
115115
```

0 commit comments

Comments
 (0)