An open API service indexing awesome lists of open source software.

https://github.com/samadpls/querypls

QueryplsπŸ› οΈ: WebApp that Simplify SQL with Your Prompts. Transforming questions into SQL commands effortlessly.
https://github.com/samadpls/querypls

falcon-7b finetune-llm huggingface langchain langchain-app llm mistral-7b opensource python stability-ai streamlit

Last synced: 24 days ago
JSON representation

QueryplsπŸ› οΈ: WebApp that Simplify SQL with Your Prompts. Transforming questions into SQL commands effortlessly.

Awesome Lists containing this project

README

          

![Supported python versions](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Run Unittests](https://github.com/samadpls/Querypls/actions/workflows/unittests.yml/badge.svg)](https://github.com/samadpls/Querypls/actions/workflows/unittests.yml)
[![License](https://img.shields.io/badge/License-MIT%202.0-blue.svg)](LICENSE)

# πŸ’¬ Querypls - Intelligent SQL and CSV Analysis

Querypls is a modern web application that provides an interactive chat interface for SQL query generation and CSV data analysis. Built with Pydantic AI and powered by OpenAI's GPT-OSS-120B model through Groq, it offers intelligent routing between different analysis modes to handle various data-related queries.

🌐 **Try it live**: [querypls.streamlit.app](https://querypls.streamlit.app/)

## Key Features

πŸ’¬ **Interactive Chat Interface** - Natural language conversations for data analysis
πŸ” **SQL Query Generation** - Convert natural language to optimized SQL queries
πŸ“Š **CSV Data Analysis** - Upload and analyze CSV files with intelligent insights
πŸ€– **Intelligent Routing** - Automatically determines the best agent for your query
⚑ **Fast Inference** - Powered by Groq's optimized infrastructure
πŸ”’ **Type-Safe Development** - Built with Pydantic AI for robust validation
πŸ“ˆ **Visual Analytics** - Generate charts and visualizations from your data

![QueryplsDemo](https://github.com/samadpls/Querypls/assets/94792103/daa6e37d-a256-4fd8-9607-6e18cf41df3f)

# Acknowledgments

`Querypls` received a shoutout from [🦜 πŸ”— Langchain](https://www.langchain.com/) on their Twitter in 2023, reaching over **60,000 impressions**. Additionally, it was featured under the **Community Favorite Projects** section on `🦜 πŸ”— Langchain's blog`, leading to a significant increase in stars for this repository and a growing user base. The project was also highlighted in a [YouTube video](https://www.youtube.com/watch?v=htHVb-fK9xU), and it also caught the attention of Backdrop, expressing their interest and liking in an email, inviting the project to be a part of their hackathon.

However, due to constant breakdowns and instability issues with the LangChain framework, we made the strategic decision to migrate to **Pydantic AI** - a more stable and reliable framework. This transition has brought improved performance, better type safety, and enhanced maintainability to the project.

| [πŸ”— Langhchain Twitter Post](https://twitter.com/LangChainAI/status/1729959981523378297?t=Zdpw9ZQYvE3QS-3Bf-xaGw&s=19) | [πŸ”— Langhcain Blog Post](https://blog.langchain.dev/week-of-11-27-langchain-release-notes/) |
|----------|----------|
| [![Twitter Post](https://github.com/samadpls/Querypls/assets/94792103/045519c1-3f50-4d60-ab51-68669ce1f270)](https://twitter.com/LangChainAI/status/1729959981523378297?t=Zdpw9ZQYvE3QS-3Bf-xaGw&s=19) | [![Blog Post](https://github.com/samadpls/Querypls/assets/94792103/3d399715-bfa6-4ee3-a736-e692477c6f31)](https://blog.langchain.dev/week-of-11-27-langchain-release-notes/) |
[πŸŽ₯ YouTube Video](https://www.youtube.com/watch?v=htHVb-fK9xU) | [Backdrop Hackathon Invitation](https://backdropbuild.com/v2/directory) |
[![YouTube Video](https://img.youtube.com/vi/htHVb-fK9xU/0.jpg)](https://www.youtube.com/watch?v=htHVb-fK9xU) | |
> A big thank you to Langchain for their support and recognition!

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

> [!Note]
> Querypls is now powered by OpenAI's GPT-OSS-120B model through Groq, providing fast and reliable AI-powered SQL generation and CSV analysis capabilities.

---

## How to Contribute

1. Clone the repository:
```bash
git clone https://github.com/samadpls/Querypls.git
```

2. Navigate to the project directory:
```bash
cd Querypls
```

3. Install dependencies:
```bash
pip install -r requirements.txt
```

4. Create a `.env` file based on `.env_examp` and set the necessary variables.

5. Run the application:
```bash
streamlit run src/frontend/app.py
```

6. Open the provided link in your browser to use Querypls.

---

`Made with 🀍 by samadpls`