AWS Bedrock Knowledge Base Function

function

Integration with AWS Bedrock Knowledge Base for OpenWebUI This module defines a Pipe class that utilizes AWS Bedrock Knowledge Base for retrieving information from your documents and providing AI-generated responses.

bolto90
@bolto90
·
2 years ago
173
1
1.5K
Updated 2 years ago
Created Apr 21, 2025
aws_bedrock_knowledge_base_function.py
Python · 502 lines
"""
title: AWS Bedrock Knowledge Base Function
author: Aaron Bolton
author_url: https://github.com/d3v0ps-cloud/AWS-Bedrock-Knowledge-Base-Function
version: 0.1.1
description: Integration with AWS Bedrock Knowledge Base for OpenWebUI only support for Claude 3 models.
This module defines a Pipe class that utilizes AWS Bedrock Knowledge Base for retrieving information
from your documents and providing AI-generated responses.
"""
from typing import Optional, Callable, Awaitable, List, Dict, Any, Tuple, Union
from pydantic import BaseModel, Field, validator
import os


0