AWS Logo
Menu

Meta-Llama Text2SQL

Text2SQL using Llama 3.1

Shanks Subramaniam
Amazon Employee
Published Oct 30, 2024
Please check out this folder containing notebooks for Llama 3.1 implementation of text2 sql, along with Cloudformation templates to create the stack to run the notebooks.
This example covers accessing data across multiple tables in one MySQL or PostgreSQL instance. LLMs are accessed via:
  1. Bedrock using:
    • Invoke API
    • Converse API
  2. SageMaker Hosting; using:
    • Predict API
Finally, ChromaDB is used a vector datastore. In addition to using the default embeddings, the notebook includes example of:
  1. Amazon SageMaker BGE Large English model (deployed on Amazon SageMaker)
  2. Amazon Titan Embedding V2 (via Amazon Bedrock)
Please follow:
  1. llama3-1-chromadb-text2sql.ipynb to review the code.
     

Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.

Comments