{"repo":"aws-samples/query-databases-with-natural-language","free":true,"listed":false,"github":"https://github.com/aws-samples/query-databases-with-natural-language","clone":"git clone https://github.com/aws-samples/query-databases-with-natural-language.git","description":"This project uses the open-source model Mistral Small, deployed in Amazon SageMaker or invoked via API on Amazon Bedrock, to enable users to chat with their database using natural language, without writing any code or SQL query.","language":"Jupyter Notebook","stars":23,"topics":["aws","database","generative-ai","python","sagemaker","text2sql","redshift","mistral"],"license":"MIT-0","category":"databases-storage","readme_excerpt":"Transforming the Way We Talk to Databases: Using Everyday Language to Search and Retrieve Data with Mistral Small This project enables interacting with relational databases through Natural Language. Specifically, it uses the sparse Mixture of Experts (MoE) model Mistral Small, for generating SQL queries, and interpreting their corresponding tabular results to return to the user as answers. The application leverages SageMaker hosting tools to serve the model, which is deployed with a few clicks from SageMaker JumpStart. For more details, please refer to this blogpost. Setup Requirements You can currently deploy Mistral Small on SageMaker Jumpstart with one click. Amazon SageMaker JumpStart provides a simplified way to access and deploy over 100 different open source and third-party foundation models. In order to launch an endpoint to host Mistral Small from SageMaker JumpStart, you may need to request a service quota increase to access an ml.g5.48xlarge instance for endpoint usage . You can easily request service quota increases through the AWS console, CLI, or API to get access. You will also need access to a relational data source. Amazon Redshift is used as the primary data source in this post with the TICKIT database. This database helps analysts track sales activity for the fictional TICKIT web site, where users buy and sell tickets online for sporting events, shows, and concerts. Please review any license terms applicable to the dataset with your legal team and confirm t","default_branch":null,"files":null,"tree":[],"storefront":"/r/aws-samples","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/aws-samples/query-databases-with-natural-language/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}