AI functions

AI functions invoke large language models (LLMs) and return their responses. Use a LOCATION to supply provider credentials and pass model-specific request payloads (JSON or plain text). For a step-by-step introduction and examples, see Getting started with AI.
SELECT AI_QUERY(
    'us.meta.llama3-3-70b-instruct-v1:0',
    'What is AWS?',
    'my_bedrock_location') as result
Returns (example):
'AWS (Amazon Web Services) is a cloud computing platform by Amazon.'

Available functions