ladderlore
  • 输入服务名称,例如 S3 或 IAM。

概念

Amazon Bedrock Knowledge Bases

Managed RAG: Bedrock reads your documents, stores them as vectors and retrieves them for the model.

本课尚未翻译,暂以英文显示。

Ingestion (on sync)
Your documents
ChunkingEmbeddings and vectors
Vector store
  1. 1Documents are read from the data source.
  2. 2Each document is split into chunks.
  3. 3An embeddings model turns each chunk into a vector, saved in the store.
Ingestion: documents become vectors in a store.

分步说明

  1. 1Documents are read from the data source.
  2. 2Each document is split into chunks.
  3. 3An embeddings model turns each chunk into a vector, saved in the store.

Ingestion: documents become vectors in a store.

Application
Bedrock
Vector store
Foundation models
Answer with sources
  1. 1The application sends a question.
  2. 2Knowledge Bases searches the vector store for matching chunks.
  3. 3The chunks and the question go to the foundation model.
  4. 4The model returns a grounded answer.
Question time: retrieve, then generate.

是什么

Amazon Bedrock Knowledge Bases is a feature of Amazon Bedrock that builds the RAG pipeline for you. You point it at your data, such as files in Amazon S3. It then does the plumbing.

是什么

Ingestion runs when you sync the data source. Knowledge Bases splits documents into chunks, turns each chunk into an embedding with an embeddings model, and writes the vectors to a vector store. You choose how to chunk: default (about 300 tokens), fixed-size, hierarchical (small child chunks are matched, larger parent chunks are sent to the model), semantic (split where the meaning changes) or no chunking. At question time, it searches the store, adds the best passages to the prompt, calls the model and returns the answer, with the sources it used.

是什么

You choose the vector store. Amazon OpenSearch Service, Amazon Aurora and Amazon Neptune Analytics are supported, along with Amazon S3 Vectors and some third-party stores. You can also let Bedrock create a store for you.

要记住

  • A Bedrock feature for managed RAG: ingest, chunk, embed, store, retrieve.
  • Data usually comes from Amazon S3. You sync after the documents change.
  • You pick the embeddings model, the chunking and the vector store.
  • Answers can include citations that point to the source passages.
  • No servers to run for the retrieval pipeline.

要记住

  • Use it when you want RAG without building the pipeline yourself.

考试中

  • “Connect a foundation model to company data with the least effort” points to Amazon Bedrock Knowledge Bases.
  • “Which service stores the embeddings for a knowledge base?” points to a vector store such as Amazon OpenSearch Service or Amazon Aurora.