SmartQuery / chainlit.md
JulsdL's picture
Add initial database setup and comprehensive documentation for SmartQuery application; include Dockerfile for containerized deployment
adf8836
|
raw
history blame
2.66 kB

Welcome to SmartQuery! πŸ”πŸ“Š

Hello and welcome to SmartQuery, your intelligent assistant designed to help you interact with your database effortlessly. Whether you're a business analyst, data scientist, or a curious user, our tool will help you get answers from your database without writing a single line of SQL.

Getting Started

Sample Questions to Try:

  • "What is the most expensive track?"
  • "List the total sales per country. Which country's customers spent the most?"
  • "Who are the 3 most listened artists and what is their average revenue?"

About the Database πŸŽΆπŸ’½

The database powering SmartQuery is the Chinook Database, a sample database representing a digital media store. It contains tables for:

  • Artists: Information about music artists.
  • Albums: Details of albums released by artists.
  • Tracks: Data on individual tracks, including their length and price.
  • Genres: Different genres of music.
  • Customers: Information about the customers of the store.
  • Invoices: Purchase records containing information on sales transactions.
  • InvoiceLines: Details about each item in an invoice.
  • Employees: Data on employees managing the store.
  • Playlists: User-generated playlists.
  • PlaylistTracks: Mapping of tracks to playlists.
  • MediaTypes: Types of media the tracks are available in.

This structure allows you to ask a wide range of questions about sales, customer preferences, artist performance, and more. Feel free to explore the richness of the data and uncover valuable insights.

How It Works 🧠

SmartQuery is an agentic application that leverages advanced natural language processing (NLP) techniques to understand your queries in plain English and convert them into SQL queries to retrieve the desired information from the database. You can interact with SmartQuery via text or voice, making it incredibly versatile and user-friendly.

The Tech Behind It πŸ’‘πŸ€–

SmartQuery is built using state-of-the-art technologies, including:

  • LangChain: For chaining together multiple language model prompts and responses.
  • OpenAI GPT-4o: For understanding and processing natural language queries.
  • FAISS: For efficient similarity search and retrieval.
  • Chainlit: For building interactive AI applications front-end.
  • Eleven Labs: For speech-to-text and text-to-speech functionalities, enabling voice interactions.

Ready to Query?

With SmartQuery, transform your database interactions into a seamless experience. Dive into your data, uncover insights, and make data-driven decisions more effectively than ever before. Happy querying!