module pixeltable.functions.bedrock
View source on GitHub
Pixeltable UDFs for AWS Bedrock AI models.
Provides integration with AWS Bedrock for accessing various foundation models including Anthropic Claude, Amazon Titan, and other providers.
func invoke_tools()
tools._invoke().
udf converse()
converse API endpoint. For additional details, see: https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html
Requirements:
pip install boto3
messages(Json): Input messages.model_id(String): The model that will complete your prompt.system(Json | None): An optional system prompt.inference_config(Json | None): Base inference parameters to use.additional_model_request_fields(Json | None): Additional inference parameters to use.
Json: A dictionary containing the response and other metadata.
anthropic.claude-3-haiku-20240307-v1:0 to an existing Pixeltable column tbl.prompt of the table tbl: