AI based Simplified Database Management�
Suhas Basavaraj
Lead Consultant
© 2024, Amazon Web Services, Inc. or its affiliates.
© 2024, Amazon Web Services, Inc. or its affiliates.
Agenda
© 2024, Amazon Web Services, Inc. or its affiliates.
Introduction
Manually executing database administration tasks , analysing operational issues and optimizing the performance can negatively impact the operational efficiency , reduce the employee productivity
Gen AI solution for the POC is done will address below use cases
© 2024, Amazon Web Services, Inc. or its affiliates.
Concepts
What is a vector ?
In simple terms, a vector is a list of numbers that can represent a point in space. For example, in 2D space, a vector [2,3] represents a point that’s 2 units along the x-axis and 3 units along the y-axis.
What is Vector embedding ?
Vector embeddings allow us to convert diverse forms of data into a common format (vectors) that LLMs can understand and process. By doing so, we can perform mathematical operations on them.
© 2024, Amazon Web Services, Inc. or its affiliates.
Vector embeddings
Cricket:[−0.7888,−0.7361,−0.6208,−0.5134,−0.4044]
Cricket: [0.8108,0.6671,0.5565,0.5449,0.4466]
Grasshopper: [0.8308,0.6805,0.5598,0.5184,0.3940]
Baseball: [−0.7715,−0.7300,−0.5986,−0.4908,−0.4454]
Graphical representation
Vector in 2D representation
© 2024, Amazon Web Services, Inc. or its affiliates.
PostgreSQL as vector database
CREATE EXTENSION IF NOT EXISTS vector;
© 2024, Amazon Web Services, Inc. or its affiliates.
© 2024, Amazon Web Services, Inc. or its affiliates.
Large Language Models
System that uses deep learning techniques to generate human-like text based on patterns learned
Vast datasets are used for pretraining
Self-supervised learning techniques (e.g., masked language modelling, next sentence prediction)
Example: anthropic.claude-3-sonnet-20240229-v1:0, amazon.titan-embed-text-v1
© 2024, Amazon Web Services, Inc. or its affiliates.
Prompt engineering
Input text or instruction given to a language model to generate a desired output
Context: Context refers to the additional information or background provided to LLM
Optimizations –
© 2024, Amazon Web Services, Inc. or its affiliates.
Retrieval-Augmented Generation (RAG)
© 2024, Amazon Web Services, Inc. or its affiliates.
Flow Diagram
© 2024, Amazon Web Services, Inc. or its affiliates.
POC Use Case
Objective Business Value Outcome
Reduce the database management cost by offloading the database administration tasks
Remove the need for users to learn complex database tasks like database tuning and troubleshooting
Improve the operational efficiency by quickly providing the tuning and troubleshooting based on the customer specific data and tested knowledgebase
�
Database specific guidance for administrative tasks , troubleshooting and query tuning
Higher accuracy and fast response as its generates the output from customer specific data
© 2024, Amazon Web Services, Inc. or its affiliates.
POC -Scope
© 2024, Amazon Web Services, Inc. or its affiliates.
Tools
© 2024, Amazon Web Services, Inc. or its affiliates.
Architecture
© 2024, Amazon Web Services, Inc. or its affiliates.
Steps
B. Recommend the implementation best practices and tuning recommendation
© 2024, Amazon Web Services, Inc. or its affiliates.
Demo
Demo and code walkthrough
© 2024, Amazon Web Services, Inc. or its affiliates.
Next steps
© 2024, Amazon Web Services, Inc. or its affiliates.
Thank you!
© 2024, Amazon Web Services, Inc. or its affiliates.
© 2024, Amazon Web Services, Inc. or its affiliates.