Skip to content

Commit 940e5ce

Browse files
README.md
1 parent b420b58 commit 940e5ce

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

README.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
# SQL Query Generator with Google Gemini
32

4-
This project is a Streamlit application that converts English questions into SQL queries using Google Gemini's generative AI capabilities. It allows users to retrieve data from an SQLite database named **STUDENT**, which contains information about students, their classes, sections, and marks.
3+
This project is a Streamlit application that converts English questions into SQL queries using Google Gemini's generative AI capabilities. It allows users to retrieve data from an SQLite database named **student.db**, which contains information about students, their classes, sections, and marks.
54

65
## Table of Contents
76

@@ -17,15 +16,17 @@ This project is a Streamlit application that converts English questions into SQL
1716
## Features
1817

1918
- Convert natural language questions into SQL queries.
20-
- Execute generated SQL queries against an SQLite database.
19+
- Execute generated SQL queries against the SQLite database.
2120
- User-friendly interface built with Streamlit.
21+
- Response cleaning to ensure valid SQL execution.
2222

2323
## Technologies Used
2424

2525
- [Streamlit](https://streamlit.io/) - For building the web application.
2626
- [SQLite](https://www.sqlite.org/index.html) - Lightweight database to store student records.
2727
- [Google Generative AI](https://developers.google.com/generative-ai) - To generate SQL queries from text input.
2828
- [Python](https://www.python.org/) - Programming language used to build the application.
29+
- [Regex](https://docs.python.org/3/library/re.html) - For cleaning generated SQL queries.
2930

3031
## Installation
3132

@@ -82,14 +83,14 @@ Here are some example questions you can ask:
8283

8384
## Database Schema
8485

85-
The database **STUDENT** has the following schema:
86+
The database **student.db** has the following schema:
8687

8788
| Column | Type | Description |
8889
|---------|---------|--------------------------------------|
89-
| NAME | TEXT | Name of the student |
90-
| CLASS | TEXT | Class of the student |
91-
| SECTION | TEXT | Section of the student |
92-
| MARKS | INTEGER | Marks obtained by the student |
90+
| NAME | VARCHAR(25) | Name of the student |
91+
| CLASS | VARCHAR(25) | Class of the student |
92+
| SECTION | VARCHAR(25) | Section of the student |
93+
| MARKS | INT | Marks obtained by the student |
9394

9495
## Contributing
9596

@@ -101,27 +102,24 @@ Contributions are welcome! Please open an issue or submit a pull request if you'
101102
4. Push to the branch (`git push origin feature/AmazingFeature`).
102103
5. Open a pull request.
103104

104-
## License
105105

106-
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
107106

108-
```
109107

110-
### Explanation of Sections
108+
### Key Sections Explained
111109

112-
1. **Title & Introduction:** Gives an overview of what the project is about.
113-
2. **Table of Contents:** Helps users navigate the document quickly.
114-
3. **Features:** Highlights the main features of the app.
115-
4. **Technologies Used:** Lists the technologies and frameworks involved in the project.
116-
5. **Installation:** Step-by-step guide on how to install and set up the project.
117-
6. **Usage:** Instructions on how to run the app and interact with it.
118-
7. **Example Queries:** Provides sample questions users can input to test the functionality.
119-
8. **Database Schema:** Describes the structure of the SQLite database.
120-
9. **Contributing:** Encourages collaboration and outlines how others can contribute to the project.
121-
10. **License:** States the licensing information for the project.
110+
1. **Title & Introduction:** Brief overview of the project and its purpose.
111+
2. **Table of Contents:** Provides easy navigation throughout the README.
112+
3. **Features:** Highlights the main capabilities of the application.
113+
4. **Technologies Used:** Lists the frameworks, libraries, and languages used in the project.
114+
5. **Installation:** Step-by-step guide for setting up the project, including environment variable setup.
115+
6. **Usage:** Instructions on how to run the application and interact with it.
116+
7. **Example Queries:** Offers sample questions to demonstrate the app’s functionality.
117+
8. **Database Schema:** Details the structure of the SQLite database for better understanding.
118+
9. **Contributing:** Encourages community contributions with a guide on how to do so.
119+
10. **License:** Information regarding the licensing of the project.
122120

123121
### Tips for Customization
124122

125123
- Replace placeholders like `yourusername` and `your_api_key_here` with actual values relevant to your project.
126124
- Adjust the content based on any additional features or changes you have made.
127-
- Make sure to include any additional documentation or instructions relevant to your specific project needs.
125+
- Make sure to include any additional documentation or instructions relevant to your specific project needs.

0 commit comments

Comments
 (0)