• About TC
  • Affiliate Disclaimer
  • Privacy Policy
  • TOS
  • Contact
Monday, May 19, 2025
Techcratic
Click For A Secret Deal
  • TC
  • AI
    Artificial Intelligence

    Set up a custom plugin on Amazon Q Business and authenticate with Amazon Cognito to interact with backend systems

    Artificial Intelligence

    StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant

    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

    Artificial Intelligence

    Building a Personal Knowledge Management Tool with Reor

  • Crypto
    Bitcoin Price Watch: Market Recoils After $107K Peak, Eyes Key Support

    Bitcoin Price Watch: Market Recoils After $107K Peak, Eyes Key Support

    Success: El Salvador Boasts Hundreds of Millions of Dollars in Bitcoin Revenue

    Success: El Salvador Boasts Hundreds of Millions of Dollars in Bitcoin Revenue

    Fireblocks Reveals 90% of Industry Participants Are Actively Engaging With Stablecoins

    Fireblocks Reveals 90% of Industry Participants Are Actively Engaging With Stablecoins

    Australian Police Seize Hacker’s Bitcoin, Mansion and Luxury Car

    Australian Police Seize Hacker’s Bitcoin, Mansion and Luxury Car

    Ripple Hails Dubai’s Crypto Vision at Fintech Summit

    Ripple Hails Dubai’s Crypto Vision at Fintech Summit

    Bitcoin Poised for 20-Year Outperformance, Says Analyst

    Bitcoin Poised for 20-Year Outperformance, Says Analyst

    Canadian Bitcoin Miner POW.RE to Acquire Swiss Firm Block Green

    Canadian Bitcoin Miner POW.RE to Acquire Swiss Firm Block Green

    Panama City Eyes Bold Move With Potential Bitcoin Reserve

    Panama City Eyes Bold Move With Potential Bitcoin Reserve

    Following Pectra, Ethereum Fees Stay Low as Bitcoin Fee Market Remains Soft

    Following Pectra, Ethereum Fees Stay Low as Bitcoin Fee Market Remains Soft

  • Cybersecurity
    Cybersecurity

    Ransomware Gangs Use Skitnet Malware for Stealthy Data Theft and Remote Access

    Cybersecurity

    Firefox Patches 2 Zero-Days Exploited at Pwn2Own Berlin with $100K in Rewards

    Cybersecurity

    New HTTPBot Botnet Launches 200+ Precision DDoS Attacks on Gaming and Tech Sectors

    Cybersecurity

    Top 10 Best Practices for Effective Data Protection

    Cybersecurity

    Researchers Expose New Intel CPU Flaws Enabling Memory Leaks and Spectre v2 Attacks

    Cybersecurity

    Learn a Smarter Way to Defend Modern Applications

    Cybersecurity

    Meta to Train AI on E.U. User Data From May 27 Without Consent; Noyb Threatens Lawsuit

    Cybersecurity

    5 BCDR Essentials for Effective Ransomware Defense

    Cybersecurity

    New Chrome Vulnerability Enables Cross-Origin Data Leak via Loader Referrer Policy

  • Deals
    SanDisk 32GB 4-Pack Outdoors HD SDHC UHS-I Memory Card (4x32GB) – Up to 100MB/s, C4,…

    SanDisk 32GB 4-Pack Outdoors HD SDHC UHS-I Memory Card (4x32GB) – Up to 100MB/s, C4,…

    Samsung Galaxy Watch4 44MM SM-R870 Aluminum Smartwatch GPS Only (Renewed)

    Samsung Galaxy Watch4 44MM SM-R870 Aluminum Smartwatch GPS Only (Renewed)

    USB Audio Adapter, External Sound Card for PC and Laptop, USB to 3.5mm(1/8 inch) Audio…

    USB Audio Adapter, External Sound Card for PC and Laptop, USB to 3.5mm(1/8 inch) Audio…

    EMTEC 32GB-Wonderwoman DC Comics Collector USB 2.0 3D Soft Touch Gum Flash Drive

    EMTEC 32GB-Wonderwoman DC Comics Collector USB 2.0 3D Soft Touch Gum Flash Drive

    Mediasonic Hard Drive Handle x 4 for Hard Drive Enclosure

    Mediasonic Hard Drive Handle x 4 for Hard Drive Enclosure

    Original OEM Supernova 8 PIN to 8 PIN (6+2) PCI Express VGA Power Cable (W001-00-000147)

    Original OEM Supernova 8 PIN to 8 PIN (6+2) PCI Express VGA Power Cable (W001-00-000147)

    Dell Latitude 5550 15.6″ FHD Business Laptop Computer, Intel Ultra 5 135U (Beat…

    Dell Latitude 5550 15.6″ FHD Business Laptop Computer, Intel Ultra 5 135U (Beat…

    Eco-Friendly Ink Cartridge Replacement for Canon 245XL 246XL Black and Color Combo 2…

    Eco-Friendly Ink Cartridge Replacement for Canon 245XL 246XL Black and Color Combo 2…

    Lufeiya Computer Desk with File Drawers Cabinet, 47 Inch Reversible Home Office Desks…

    Lufeiya Computer Desk with File Drawers Cabinet, 47 Inch Reversible Home Office Desks…

  • Gaming
    Zelda: The Minish Cap | Episode 1

    Zelda: The Minish Cap | Episode 1

    How to Get The Thunder Helm in Zelda Breath of the Wild

    GTA 6 TRAILER 2 NOVITA' UFFICIALI! IL VERO PIANO DI ROCKSTAR GAMES PER GTA 6

    GTA 6 TRAILER 2 NOVITA' UFFICIALI! IL VERO PIANO DI ROCKSTAR GAMES PER GTA 6

    GTA 6 Trailer 2: Has Rockstar Confirmed the Release Date?

    GTA 6 Trailer 2: Has Rockstar Confirmed the Release Date?

    God Of War Ragnarok Walkthrough Part 6 (PS4)

    God Of War Ragnarok Walkthrough Part 6 (PS4)

    God Of War Ragnarok Valhalla Is Way Bigger Than You Think (God Of War Valhalla Gameplay)

    God Of War Ragnarok Valhalla Is Way Bigger Than You Think (God Of War Valhalla Gameplay)

    I’m actually jealous of the workstation that gets to use this Maxsun graphics card containing two Intel Arc GPUs and 48 GB of VRAM

    I’m actually jealous of the workstation that gets to use this Maxsun graphics card containing two Intel Arc GPUs and 48 GB of VRAM

    A Forspoken Demo Review But Might As Well Be A Final Review

    A Forspoken Demo Review But Might As Well Be A Final Review

    All FNAF Movie trailers, TV spots, Teasers, Secret trailer, ARG , concession trailer, and more

    All FNAF Movie trailers, TV spots, Teasers, Secret trailer, ARG , concession trailer, and more

  • Tesla
    4PCS Wheel Center Hub Caps Cover for Tesla Cybertruck, ABS Full Coverage Wheel Hub…

    4PCS Wheel Center Hub Caps Cover for Tesla Cybertruck, ABS Full Coverage Wheel Hub…

    NACS to CCS1 Charging Adapter, Max 250KW Supercharger Adapter, Electric Vehicle Charging…

    NACS to CCS1 Charging Adapter, Max 250KW Supercharger Adapter, Electric Vehicle Charging…

    2 Pack HEPA Air Filter for Tesla Model 3 Model Y, Compatible with 2016-2024, 2 Count,…

    2 Pack HEPA Air Filter for Tesla Model 3 Model Y, Compatible with 2016-2024, 2 Count,…

    Turtle Wax 53787 Hybrid Solutions Ceramic Graphene Inside Job, Interior Car Cleaner and…

    Turtle Wax 53787 Hybrid Solutions Ceramic Graphene Inside Job, Interior Car Cleaner and…

    Tinlucys Center Console Protector Cover White Designed for Tesla Model 3/Y 2021-2024(Not…

    Tinlucys Center Console Protector Cover White Designed for Tesla Model 3/Y 2021-2024(Not…

    Ziciner 4 Pack Bling Car Cup Coaster, Crystal Soft Rubber Cup Holder Insert Coaster,…

    Ziciner 4 Pack Bling Car Cup Coaster, Crystal Soft Rubber Cup Holder Insert Coaster,…

    Hitch Cover for Tesla Model Y, Easy to Install and Remove with Magnet Design

    Hitch Cover for Tesla Model Y, Easy to Install and Remove with Magnet Design

    Marretoo for Tesla Cybertruck Truck Under Seat Storage Box- Foldable Replacement for…

    Marretoo for Tesla Cybertruck Truck Under Seat Storage Box- Foldable Replacement for…

    New OEM Design for Tesla USB Hub (Silver Gray), with Retractable Cables is Necessary…

    New OEM Design for Tesla USB Hub (Silver Gray), with Retractable Cables is Necessary…

  • UFO
    The Basics of Spacecraft Survival

    The Basics of Spacecraft Survival

    A Mind-Blowing Encounter With a Tarantula

    A Mind-Blowing Encounter With a Tarantula

    Are we alone? Dark Forest Theory #astrophysics #universe  #space #extraterrestrial #alien

    Are we alone? Dark Forest Theory #astrophysics #universe #space #extraterrestrial #alien

    Bencailor 12 Pack Carnival Alien Glasses with Lenses Funny Glasses for Alien Costume Accessories Mardi Gras Party Favor(Mixed Colors)

    Bencailor 12 Pack Carnival Alien Glasses with Lenses Funny Glasses for Alien Costume Accessories Mardi Gras Party Favor(Mixed Colors)

    Valiant Thor: A UFO, the Pentagon and a 3-year Mission to Save the World

    UFO whistleblower David Grusch: 'We are not alone' | Official Ross Coulthart NewsNation interview

    UFO whistleblower David Grusch: 'We are not alone' | Official Ross Coulthart NewsNation interview

    MAGCOMSEN Men’s Sun Protection Long Sleeve Shirts 1/4 Zip Up Rash Guard Lightweight Quick Dry Fishing Running T-Shirts

    MAGCOMSEN Men’s Sun Protection Long Sleeve Shirts 1/4 Zip Up Rash Guard Lightweight Quick Dry Fishing Running T-Shirts

    Agricultural Research Council believes that alien trees are threatening water supplies.

    Agricultural Research Council believes that alien trees are threatening water supplies.

    Ancient Civilizations that Vanished (S9, E11) | Ancient Aliens | Full Episode

    Ancient Civilizations that Vanished (S9, E11) | Ancient Aliens | Full Episode

No Result
View All Result
  • TC
  • AI
    Artificial Intelligence

    Set up a custom plugin on Amazon Q Business and authenticate with Amazon Cognito to interact with backend systems

    Artificial Intelligence

    StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant

    Artificial Intelligence

    3 Excellent Practical Generative AI Courses

    Artificial Intelligence

    Building End-to-End Data Pipelines with Dask

    Artificial Intelligence

    Automate document translation and standardization with Amazon Bedrock and Amazon Translate

    Artificial Intelligence

    InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

    Artificial Intelligence

    FireDucks: An Accelerated Fully Compatible Pandas Library

    Artificial Intelligence

    Breaking Out of Beginner: Python Patterns for Intermediate Data Scientists

    Artificial Intelligence

    Building a Personal Knowledge Management Tool with Reor

  • Crypto
    Bitcoin Price Watch: Market Recoils After $107K Peak, Eyes Key Support

    Bitcoin Price Watch: Market Recoils After $107K Peak, Eyes Key Support

    Success: El Salvador Boasts Hundreds of Millions of Dollars in Bitcoin Revenue

    Success: El Salvador Boasts Hundreds of Millions of Dollars in Bitcoin Revenue

    Fireblocks Reveals 90% of Industry Participants Are Actively Engaging With Stablecoins

    Fireblocks Reveals 90% of Industry Participants Are Actively Engaging With Stablecoins

    Australian Police Seize Hacker’s Bitcoin, Mansion and Luxury Car

    Australian Police Seize Hacker’s Bitcoin, Mansion and Luxury Car

    Ripple Hails Dubai’s Crypto Vision at Fintech Summit

    Ripple Hails Dubai’s Crypto Vision at Fintech Summit

    Bitcoin Poised for 20-Year Outperformance, Says Analyst

    Bitcoin Poised for 20-Year Outperformance, Says Analyst

    Canadian Bitcoin Miner POW.RE to Acquire Swiss Firm Block Green

    Canadian Bitcoin Miner POW.RE to Acquire Swiss Firm Block Green

    Panama City Eyes Bold Move With Potential Bitcoin Reserve

    Panama City Eyes Bold Move With Potential Bitcoin Reserve

    Following Pectra, Ethereum Fees Stay Low as Bitcoin Fee Market Remains Soft

    Following Pectra, Ethereum Fees Stay Low as Bitcoin Fee Market Remains Soft

  • Cybersecurity
    Cybersecurity

    Ransomware Gangs Use Skitnet Malware for Stealthy Data Theft and Remote Access

    Cybersecurity

    Firefox Patches 2 Zero-Days Exploited at Pwn2Own Berlin with $100K in Rewards

    Cybersecurity

    New HTTPBot Botnet Launches 200+ Precision DDoS Attacks on Gaming and Tech Sectors

    Cybersecurity

    Top 10 Best Practices for Effective Data Protection

    Cybersecurity

    Researchers Expose New Intel CPU Flaws Enabling Memory Leaks and Spectre v2 Attacks

    Cybersecurity

    Learn a Smarter Way to Defend Modern Applications

    Cybersecurity

    Meta to Train AI on E.U. User Data From May 27 Without Consent; Noyb Threatens Lawsuit

    Cybersecurity

    5 BCDR Essentials for Effective Ransomware Defense

    Cybersecurity

    New Chrome Vulnerability Enables Cross-Origin Data Leak via Loader Referrer Policy

  • Deals
    SanDisk 32GB 4-Pack Outdoors HD SDHC UHS-I Memory Card (4x32GB) – Up to 100MB/s, C4,…

    SanDisk 32GB 4-Pack Outdoors HD SDHC UHS-I Memory Card (4x32GB) – Up to 100MB/s, C4,…

    Samsung Galaxy Watch4 44MM SM-R870 Aluminum Smartwatch GPS Only (Renewed)

    Samsung Galaxy Watch4 44MM SM-R870 Aluminum Smartwatch GPS Only (Renewed)

    USB Audio Adapter, External Sound Card for PC and Laptop, USB to 3.5mm(1/8 inch) Audio…

    USB Audio Adapter, External Sound Card for PC and Laptop, USB to 3.5mm(1/8 inch) Audio…

    EMTEC 32GB-Wonderwoman DC Comics Collector USB 2.0 3D Soft Touch Gum Flash Drive

    EMTEC 32GB-Wonderwoman DC Comics Collector USB 2.0 3D Soft Touch Gum Flash Drive

    Mediasonic Hard Drive Handle x 4 for Hard Drive Enclosure

    Mediasonic Hard Drive Handle x 4 for Hard Drive Enclosure

    Original OEM Supernova 8 PIN to 8 PIN (6+2) PCI Express VGA Power Cable (W001-00-000147)

    Original OEM Supernova 8 PIN to 8 PIN (6+2) PCI Express VGA Power Cable (W001-00-000147)

    Dell Latitude 5550 15.6″ FHD Business Laptop Computer, Intel Ultra 5 135U (Beat…

    Dell Latitude 5550 15.6″ FHD Business Laptop Computer, Intel Ultra 5 135U (Beat…

    Eco-Friendly Ink Cartridge Replacement for Canon 245XL 246XL Black and Color Combo 2…

    Eco-Friendly Ink Cartridge Replacement for Canon 245XL 246XL Black and Color Combo 2…

    Lufeiya Computer Desk with File Drawers Cabinet, 47 Inch Reversible Home Office Desks…

    Lufeiya Computer Desk with File Drawers Cabinet, 47 Inch Reversible Home Office Desks…

  • Gaming
    Zelda: The Minish Cap | Episode 1

    Zelda: The Minish Cap | Episode 1

    How to Get The Thunder Helm in Zelda Breath of the Wild

    GTA 6 TRAILER 2 NOVITA' UFFICIALI! IL VERO PIANO DI ROCKSTAR GAMES PER GTA 6

    GTA 6 TRAILER 2 NOVITA' UFFICIALI! IL VERO PIANO DI ROCKSTAR GAMES PER GTA 6

    GTA 6 Trailer 2: Has Rockstar Confirmed the Release Date?

    GTA 6 Trailer 2: Has Rockstar Confirmed the Release Date?

    God Of War Ragnarok Walkthrough Part 6 (PS4)

    God Of War Ragnarok Walkthrough Part 6 (PS4)

    God Of War Ragnarok Valhalla Is Way Bigger Than You Think (God Of War Valhalla Gameplay)

    God Of War Ragnarok Valhalla Is Way Bigger Than You Think (God Of War Valhalla Gameplay)

    I’m actually jealous of the workstation that gets to use this Maxsun graphics card containing two Intel Arc GPUs and 48 GB of VRAM

    I’m actually jealous of the workstation that gets to use this Maxsun graphics card containing two Intel Arc GPUs and 48 GB of VRAM

    A Forspoken Demo Review But Might As Well Be A Final Review

    A Forspoken Demo Review But Might As Well Be A Final Review

    All FNAF Movie trailers, TV spots, Teasers, Secret trailer, ARG , concession trailer, and more

    All FNAF Movie trailers, TV spots, Teasers, Secret trailer, ARG , concession trailer, and more

  • Tesla
    4PCS Wheel Center Hub Caps Cover for Tesla Cybertruck, ABS Full Coverage Wheel Hub…

    4PCS Wheel Center Hub Caps Cover for Tesla Cybertruck, ABS Full Coverage Wheel Hub…

    NACS to CCS1 Charging Adapter, Max 250KW Supercharger Adapter, Electric Vehicle Charging…

    NACS to CCS1 Charging Adapter, Max 250KW Supercharger Adapter, Electric Vehicle Charging…

    2 Pack HEPA Air Filter for Tesla Model 3 Model Y, Compatible with 2016-2024, 2 Count,…

    2 Pack HEPA Air Filter for Tesla Model 3 Model Y, Compatible with 2016-2024, 2 Count,…

    Turtle Wax 53787 Hybrid Solutions Ceramic Graphene Inside Job, Interior Car Cleaner and…

    Turtle Wax 53787 Hybrid Solutions Ceramic Graphene Inside Job, Interior Car Cleaner and…

    Tinlucys Center Console Protector Cover White Designed for Tesla Model 3/Y 2021-2024(Not…

    Tinlucys Center Console Protector Cover White Designed for Tesla Model 3/Y 2021-2024(Not…

    Ziciner 4 Pack Bling Car Cup Coaster, Crystal Soft Rubber Cup Holder Insert Coaster,…

    Ziciner 4 Pack Bling Car Cup Coaster, Crystal Soft Rubber Cup Holder Insert Coaster,…

    Hitch Cover for Tesla Model Y, Easy to Install and Remove with Magnet Design

    Hitch Cover for Tesla Model Y, Easy to Install and Remove with Magnet Design

    Marretoo for Tesla Cybertruck Truck Under Seat Storage Box- Foldable Replacement for…

    Marretoo for Tesla Cybertruck Truck Under Seat Storage Box- Foldable Replacement for…

    New OEM Design for Tesla USB Hub (Silver Gray), with Retractable Cables is Necessary…

    New OEM Design for Tesla USB Hub (Silver Gray), with Retractable Cables is Necessary…

  • UFO
    The Basics of Spacecraft Survival

    The Basics of Spacecraft Survival

    A Mind-Blowing Encounter With a Tarantula

    A Mind-Blowing Encounter With a Tarantula

    Are we alone? Dark Forest Theory #astrophysics #universe  #space #extraterrestrial #alien

    Are we alone? Dark Forest Theory #astrophysics #universe #space #extraterrestrial #alien

    Bencailor 12 Pack Carnival Alien Glasses with Lenses Funny Glasses for Alien Costume Accessories Mardi Gras Party Favor(Mixed Colors)

    Bencailor 12 Pack Carnival Alien Glasses with Lenses Funny Glasses for Alien Costume Accessories Mardi Gras Party Favor(Mixed Colors)

    Valiant Thor: A UFO, the Pentagon and a 3-year Mission to Save the World

    UFO whistleblower David Grusch: 'We are not alone' | Official Ross Coulthart NewsNation interview

    UFO whistleblower David Grusch: 'We are not alone' | Official Ross Coulthart NewsNation interview

    MAGCOMSEN Men’s Sun Protection Long Sleeve Shirts 1/4 Zip Up Rash Guard Lightweight Quick Dry Fishing Running T-Shirts

    MAGCOMSEN Men’s Sun Protection Long Sleeve Shirts 1/4 Zip Up Rash Guard Lightweight Quick Dry Fishing Running T-Shirts

    Agricultural Research Council believes that alien trees are threatening water supplies.

    Agricultural Research Council believes that alien trees are threatening water supplies.

    Ancient Civilizations that Vanished (S9, E11) | Ancient Aliens | Full Episode

    Ancient Civilizations that Vanished (S9, E11) | Ancient Aliens | Full Episode

No Result
View All Result
Techcratic
No Result
View All Result

Stream ingest data from Kafka to Amazon Bedrock Knowledge Bases using custom connectors

AI by AI
April 18, 2025
in AI
Reading Time: 17 mins read
124 7
A A
0
Home AI
Share on FacebookShare on XShare on LinkedIn

Prabhakar Chandrasekaran
2025-04-18 13:21:00
aws.amazon.com

Retrieval Augmented Generation (RAG) enhances AI responses by combining the generative AI model’s capabilities with information from external data sources, rather than relying solely on the model’s built-in knowledge. In this post, we showcase the custom data connector capability in Amazon Bedrock Knowledge Bases that makes it straightforward to build RAG workflows with custom input data. Through this capability, Amazon Bedrock Knowledge Bases supports the ingestion of streaming data, which means developers can add, update, or delete data in their knowledge base through direct API calls.

Think of the examples of clickstream data, credit card swipes, Internet of Things (IoT) sensor data, log analysis and commodity prices—where both current data and historical trends are important to make a learned decision. Previously, to feed such critical data inputs, you had to first stage it in a supported data source and then either initiate or schedule a data sync job. Based on the quality and quantity of the data, the time to complete this process varied. With custom data connectors, you can quickly ingest specific documents from custom data sources without requiring a full sync and ingest streaming data without the need for intermediary storage. By avoiding time-consuming full syncs and storage steps, you gain faster access to data, reduced latency, and improved application performance.

However, with streaming ingestion using custom connectors, Amazon Bedrock Knowledge Bases processes such streaming data without using an intermediary data source, making it available almost immediately. This feature chunks and converts input data into embeddings using your chosen Amazon Bedrock model and stores everything in the backend vector database. This automation applies to both newly created and existing databases, streamlining your workflow so you can focus on building AI applications without worrying about orchestrating data chunking, embeddings generation, or vector store provisioning and indexing. Additionally, this feature provides the ability to ingest specific documents from custom data sources, all while reducing latency and alleviating operational costs for intermediary storage.

Amazon Bedrock

Amazon Bedrock is a fully managed service that offers a choice of high-performing foundation models (FMs) from leading AI companies such as Anthropic, Cohere, Meta, Stability AI, and Amazon through a single API, along with a broad set of capabilities you need to build generative AI applications with security, privacy, and responsible AI. Using Amazon Bedrock, you can experiment with and evaluate top FMs for your use case, privately customize them with your data using techniques such as fine-tuning and RAG, and build agents that execute tasks using your enterprise systems and data sources.

Amazon Bedrock Knowledge Bases

Amazon Bedrock Knowledge Bases allows organizations to build fully managed RAG pipelines by augmenting contextual information from private data sources to deliver more relevant, accurate, and customized responses. With Amazon Bedrock Knowledge Bases, you can build applications that are enriched by the context that is received from querying a knowledge base. It enables a faster time to product release by abstracting from the heavy lifting of building pipelines and providing you an out-of-the-box RAG solution, thus reducing the build time for your application.

Amazon Bedrock Knowledge Bases custom connector

Amazon Bedrock Knowledge Bases supports custom connectors and the ingestion of streaming data, which means you can add, update, or delete data in your knowledge base through direct API calls.

Solution overview: Build a generative AI stock price analyzer with RAG

For this post, we implement a RAG architecture with Amazon Bedrock Knowledge Bases using a custom connector and topics built with Amazon Managed Streaming for Apache Kafka (Amazon MSK) for a user who may be interested to understand stock price trends. Amazon MSK is a streaming data service that manages Apache Kafka infrastructure and operations, making it straightforward to run Apache Kafka applications on Amazon Web Services (AWS). The solution enables real-time analysis of customer feedback through vector embeddings and large language models (LLMs).

The following architecture diagram has two components:

Preprocessing streaming data workflow noted in letters on the top of the diagram:

  1. Mimicking streaming input, upload a .csv file with stock price data into MSK topic
  2. Automatically trigger the consumer AWS Lambda function
  3. Ingest consumed data into a knowledge base
  4. Knowledge base internally using embeddings model transforms into vector index
  5. Knowledge base internally storing vector index into the vector database

Runtime execution during user queries noted in numerals at the bottom of the diagram:

  1. Users query on stock prices
  2. Foundation model uses the knowledge base to search for an answer
  3. The knowledge base returns with relevant documents
  4. User answered with relevant answer

solution overview

Implementation design

The implementation follows these high-level steps:

  1. Data source setup – Configure an MSK topic that streams input stock prices
  2. Amazon Bedrock Knowledge Bases setup – Create a knowledge base in Amazon Bedrock using the quick create a new vector store option, which automatically provisions and sets up the vector store
  3. Data consumption and ingestion – As and when data lands in the MSK topic, trigger a Lambda function that extracts stock indices, prices, and timestamp information and feeds into the custom connector for Amazon Bedrock Knowledge Bases
  4. Test the knowledge base – Evaluate customer feedback analysis using the knowledge base

Solution walkthrough

To build a generative AI stock analysis tool with Amazon Bedrock Knowledge Bases custom connector, use instructions in the following sections.

Configure the architecture

To try this architecture, deploy the AWS CloudFormation template from this GitHub repository in your AWS account. This template deploys the following components:

  1. Functional virtual private clouds (VPCs), subnets, security groups and AWS Identity and Access Management (IAM) roles
  2. An MSK cluster hosting Apache Kafka input topic
  3. A Lambda function to consume Apache Kafka topic data
  4. An Amazon SageMaker Studio notebook for granular setup and enablement

Create an Apache Kafka topic

In the precreated MSK cluster, the required brokers are deployed ready for use. The next step is to use a SageMaker Studio terminal instance to connect to the MSK cluster and create the test stream topic. In this step, you follow the detailed instructions that are mentioned at Create a topic in the Amazon MSK cluster. The following are the general steps involved:

  1. Download and install the latest Apache Kafka client
  2. Connect to the MSK cluster broker instance
  3. Create the test stream topic on the broker instance

Create a knowledge base in Amazon Bedrock

To create a knowledge base in Amazon Bedrock, follow these steps:

  1. On the Amazon Bedrock console, in the left navigation page under Builder tools, choose Knowledge Bases.

amazon bedrock knowledge bases console

  1. To initiate knowledge base creation, on the Create dropdown menu, choose Knowledge Base with vector store, as shown in the following screenshot.

amazon bedrock knowledge bases create

  1. In the Provide Knowledge Base details pane, enter BedrockStreamIngestKnowledgeBase as the Knowledge Base name.
  2. Under IAM permissions, choose the default option, Create and use a new service role, and (optional) provide a Service role name, as shown in the following screenshot.

amazon bedrock knowledge bases create details

  1. On the Choose data source pane, select Custom as the data source where your dataset is stored
  2. Choose Next, as shown in the following screenshot

amazon bedrock knowledge bases data source details

  1. On the Configure data source pane, enter BedrockStreamIngestKBCustomDS as the Data source name.
  2. Under Parsing strategy, select Amazon Bedrock default parser and for Chunking strategy, choose Default chunking. Choose Next, as shown in the following screenshot.

amazon bedrock knowledge bases parsing strategy

  1. On the Select embeddings model and configure vector store pane, for Embeddings model, choose Titan Text Embeddings v2. For Embeddings type, choose Floating-point vector embeddings. For Vector dimensions, select 1024, as shown in the following screenshot. Make sure you have requested and received access to the chosen FM in Amazon Bedrock. To learn more, refer to Add or remove access to Amazon Bedrock foundation models.

amazon bedrock knowledge bases embedding model

  1. On the Vector database pane, select Quick create a new vector store and choose the new Amazon OpenSearch Serverless option as the vector store.

amazon bedrock knowledge bases vector data store

  1. On the next screen, review your selections. To finalize the setup, choose Create.
  2. Within a few minutes, the console will display your newly created knowledge base.

Configure AWS Lambda Apache Kafka consumer

Now, using API calls, you configure the consumer Lambda function so it gets triggered as soon as the input Apache Kafka topic receives data.

  1. Configure the manually created Amazon Bedrock Knowledge Base ID and its custom Data Source ID as environment variables within the Lambda function. When you use the sample notebook, the referred function names and IDs will be filled in automatically.
response = lambda_client.update_function_configuration(
        FunctionName=,
        Environment={
            'Variables': {
                'KBID': ,
                'DSID': 
            }
        }
    )

  1. When it’s completed, you tie the Lambda consumer function to listen for events in the source Apache Kafka topic:
response = lambda_client.create_event_source_mapping(
        EventSourceArn=,
        FunctionName=,
        StartingPosition='LATEST',
        Enabled=True,
        Topics=['streamtopic']
    )

Review AWS Lambda Apache Kafka consumer

The Apache Kafka consumer Lambda function reads data from the Apache Kafka topic, decodes it, extracts stock price information, and ingests it into the Amazon Bedrock knowledge base using the custom connector.

  1. Extract the knowledge base ID and the data source ID:
kb_id = os.environ['KBID']
ds_id = os.environ['DSID']

  1. Define a Python function to decode input events:
def decode_payload(event_data):
    agg_data_bytes = base64.b64decode(event_data)
    decoded_data = agg_data_bytes.decode(encoding="utf-8") 
    event_payload = json.loads(decoded_data)
    return event_payload   

  1. Decode and parse required data on the input event received from the Apache Kafka topic. Using them, create a payload to be ingested into the knowledge base:
records = event['records']['streamtopic-0']
for rec in records:
        # Each record has separate eventID, etc.
        event_payload = decode_payload(rec['value'])
        ticker = event_payload['ticker']
        price = event_payload['price']
        timestamp = event_payload['timestamp']
        myuuid = uuid.uuid4()
        payload_ts = datetime.utcfromtimestamp(timestamp).strftime('%Y-%m-%d %H:%M:%S')
        payload_string = "At " + payload_ts + " the price of " + ticker + " is " + str(price) + "."

  1. Ingest the payload into Amazon Bedrock Knowledge Bases using the custom connector:
response = bedrock_agent_client.ingest_knowledge_base_documents(
                knowledgeBaseId = kb_id,
                dataSourceId = ds_id,
                documents= [
                    {
                        'content': {
                            'custom' : {
                                'customDocumentIdentifier': {
                                    'id' : str(myuuid)
                                },
                                'inlineContent' : {
                                    'textContent' : {
                                        'data' : payload_string
                                    },
                                    'type' : 'TEXT'
                                },
                                'sourceType' : 'IN_LINE'
                            },
                            'dataSourceType' : 'CUSTOM'
                        }
                    }
                ]
            )

Testing

Now that the required setup is done, you trigger the workflow by ingesting test data into your Apache Kafka topic hosted with the MSK cluster. For best results, repeat this section by changing the .csv input file to show stock price increase or decrease.

  1. Prepare the test data. In my case, I had the following data input as a .csv file with a header.
ticker price
OOOO $44.50
ZVZZT $3,413.23
ZNTRX $22.34
ZNRXX $208.76
NTEST $0.45
ZBZX $36.23
ZEXIT $942.34
ZIEXT $870.23
ZTEST $23.75
ZVV $2,802.86
ZXIET $63.00
ZAZZT $18.86
ZBZZT $998.26
ZCZZT $72.34
ZVZZC $90.32
ZWZZT $698.24
ZXZZT $932.32
  1. Define a Python function to put data to the topic. Use pykafka client to ingest data:
def put_to_topic(kafka_host, topic_name, ticker, amount, timestamp):    
    client = KafkaClient(hosts = kafka_host)
    topic = client.topics[topic_name]
    payload = {
        'ticker': ticker,
        'price': amount,
        'timestamp': timestamp
    }
    ret_status = True
    data = json.dumps(payload)
    encoded_message = data.encode("utf-8")
    print(f'Sending ticker data: {ticker}...')
    with topic.get_sync_producer() as producer:
        result=producer.produce(encoded_message)        
    return ret_status

  1. Read the .csv file and push the records to the topic:
df = pd.read_csv('TestData.csv')
start_test_time = time.time() 
print(datetime.utcfromtimestamp(start_test_time).strftime('%Y-%m-%d %H:%M:%S'))
df = df.reset_index()
for index, row in df.iterrows():
    put_to_topic(BootstrapBrokerString, KafkaTopic, row['ticker'], row['price'], time.time())
end_test_time = time.time()
print(datetime.utcfromtimestamp(end_test_time).strftime('%Y-%m-%d %H:%M:%S'))

Verification

If the data ingestion and subsequent processing is successful, navigate to the Amazon Bedrock Knowledge Bases data source page to check the uploaded information.

amazon bedrock knowledge bases upload verification

Querying the knowledge base

Within the Amazon Bedrock Knowledge Bases console, you have access to query the ingested data immediately, as shown in the following screenshot.

amazon bedrock knowledge bases test

To do that, select an Amazon Bedrock FM that you have access to. In my case, I chose Amazon Nova Lite 1.0, as shown in the following screenshot.

amazon bedrock knowledge bases choose llm

When it’s completed, the question, “How is ZVZZT trending?”, yields the results based on the ingested data. Note how Amazon Bedrock Knowledge Bases shows how it derived the answer, even pointing to the granular data element from its source.

bedrock console knowledge bases results

Cleanup

To make sure you’re not paying for resources, delete and clean up the resources created.

  1. Delete the Amazon Bedrock knowledge base.
  2. Delete the automatically created Amazon OpenSearch Serverless cluster.
  3. Delete the automatically created Amazon Elastic File System (Amazon EFS) shares backing the SageMaker Studio environment.
  4. Delete the automatically created security groups associated with the Amazon EFS share. You might need to remove the inbound and outbound rules before they can be deleted.
  5. Delete the automatically created elastic network interfaces attached to the Amazon MSK security group for Lambda traffic.
  6. Delete the automatically created Amazon Bedrock Knowledge Bases execution IAM role.
  7. Stop the kernel instances with Amazon SageMaker Studio.
  8. Delete the CloudFormation stack.

Conclusion

In this post, we showed you how Amazon Bedrock Knowledge Bases supports custom connectors and the ingestion of streaming data, through which developers can add, update, or delete data in their knowledge base through direct API calls. Amazon Bedrock Knowledge Bases offers fully managed, end-to-end RAG workflows to create highly accurate, low-latency, secure, and custom generative AI applications by incorporating contextual information from your company’s data sources. With this capability, you can quickly ingest specific documents from custom data sources without requiring a full sync, and ingest streaming data without the need for intermediary storage.

Send feedback to AWS re:Post for Amazon Bedrock or through your usual AWS contacts, and engage with the generative AI builder community at community.aws.


About the Author

author-image Prabhakar Chandrasekaran is a Senior Technical Account Manager with AWS Enterprise Support. Prabhakar enjoys helping customers build cutting-edge AI/ML solutions on the cloud. He also works with enterprise customers providing proactive guidance and operational assistance, helping them improve the value of their solutions when using AWS. Prabhakar holds eight AWS and seven other professional certifications. With over 22 years of professional experience, Prabhakar was a data engineer and a program leader in the financial services space prior to joining AWS.

Source Link



Shark AI Ultra Voice Control Robot Vacuum

Transform your cleaning routine with the Shark AI Ultra Voice Control Robot Vacuum! This high-tech marvel boasts over 32,487 ratings, an impressive 4.2 out of 5 stars, and has been purchased over 900 times in the past month. Perfect for keeping your home spotless with minimal effort, this vacuum is now available for the unbeatable price of $349.99!

Don’t miss out on this limited-time offer. Order now and let Shark AI do the work for you!


Start your free Amazon Prime trial
today and unlock unlimited streaming and more!

Help Power Techcratic’s Future – Scan To Support

If Techcratic’s content and insights have helped you, consider giving back by supporting the platform with crypto. Every contribution makes a difference, whether it’s for high-quality content, server maintenance, or future updates. Techcratic is constantly evolving, and your support helps drive that progress.

As a solo operator who wears all the hats, creating content, managing the tech, and running the site, your support allows me to stay focused on delivering valuable resources. Your support keeps everything running smoothly and enables me to continue creating the content you love. I’m deeply grateful for your support, it truly means the world to me! Thank you!

BITCOIN

Bitcoin Logo

Bitcoin QR Code

bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge

Scan the QR code with your crypto wallet app

DOGECOIN

Dogecoin Logo

Dogecoin QR Code

D64GwvvYQxFXYyan3oQCrmWfidf6T3JpBA

Scan the QR code with your crypto wallet app

ETHEREUM

Ethereum Logo

Ethereum QR Code

0xe9BC980DF3d985730dA827996B43E4A62CCBAA7a

Scan the QR code with your crypto wallet app

Please read the Privacy and Security Disclaimer on how Techcratic handles your support.

Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.

Tags: AI NEWS
Share162Tweet101Share28
Previous Post

The Callisto Protocol – *NEW* Season Pass & FREE GORE SKIN! Performance, Stuttering & Hardcore Mode

Next Post

Mind-Blowing Encounters: Demons and Alien | Rogen Podcasts That Will Leave You Speechless!

AI

AI

Explore the dynamic realm of AI, where breakthroughs and trends are shaping the future. Stay informed and see how AI is making an impact. Don’t miss the crucial updates—read the latest articles here at Techcratic.

Related Posts

Artificial Intelligence
AI

Set up a custom plugin on Amazon Q Business and authenticate with Amazon Cognito to interact with backend systems

May 16, 2025
1.3k
Artificial Intelligence
AI

StreamBridge: Turning Your Offline Video Large Language Model into a Proactive Streaming Assistant

May 12, 2025
1.3k
Artificial Intelligence
AI

3 Excellent Practical Generative AI Courses

May 7, 2025
1.3k
Artificial Intelligence
AI

Building End-to-End Data Pipelines with Dask

May 5, 2025
1.3k
Artificial Intelligence
AI

Automate document translation and standardization with Amazon Bedrock and Amazon Translate

May 1, 2025
1.3k
Artificial Intelligence
AI

InterVision accelerates AI development using AWS LLM League and Amazon SageMaker AI

April 29, 2025
1.3k
Load More
Next Post
Mind-Blowing Encounters: Demons and Alien | Rogen Podcasts That Will Leave You Speechless!

Mind-Blowing Encounters: Demons and Alien | Rogen Podcasts That Will Leave You Speechless!

Maxon Zbrush SpeedSculpt: Isaac Netero from Hunter x Hunter

Maxon Zbrush SpeedSculpt: Isaac Netero from Hunter x Hunter

Nintendo finally sets a Switch 2 pre-order date, but its sales restrictions might be over the top

Nintendo finally sets a Switch 2 pre-order date, but its sales restrictions might be over the top

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Your Tech Resources

  • 30 Second Tech ™
  • AI
  • App Zone ™
  • Apple
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo
  • Google News
  • Hacker News
  • Harvard Tech
  • I Like Cats ™
  • I Like Dogs ™
  • LifeHacker
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • PC World
  • Photofocus
  • Physics
  • Random Tech
  • Retro Rewind ™
  • Robot Report
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Art
  • Tech Careers
  • Tech Deals
  • Techcratic ™
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Weird Stuff
  • Wired
  • ZDNet

Tech News

  • 30 Second Tech ™
  • AI
  • AnandTech
  • Apple Insider
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • ExtremeTech
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo

Tech News

  • Harvard Tech
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • Physics
  • PC World
  • Random Tech
  • Retro Rewind ™
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Careers

Tech News​

  • Tech Art
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Weird Stuff
  • Wired
  • ZDNet

Site Links

  • About Techcratic
  • Affiliate Disclaimer
  • Affiliate Link Policy
  • Contact Techcratic
  • Dealors Discount Store
  • Privacy and Security Disclaimer
  • Privacy Policy
  • RSS Feed
  • Site Map
  • Support Techcratic
  • Techcratic
  • Tech Deals
  • TOS
  • 𝕏
Click For A Secret Deal

Techcratic – Your All In One Tech Hub © 2020 – 2025
All Rights Reserved
∞

No Result
View All Result
  • Home
  • Apple
  • Gaming
  • Microsoft
  • AnandTech