Skip to content

Is it possible to retrieve additional vector metrics from Amazon Bedrock ingestion jobs?

0

I'm currently using Amazon Bedrock to ingest documents into a knowledge base. I'm calling the StartIngestionJob and then using GetIngestionJob to monitor the job status. The response I receive includes an IngestionJobStatistics object with the following fields: "statistics": { "numberOfDocumentsDeleted": 0, "numberOfDocumentsFailed": 0, "numberOfDocumentsScanned": 1, "numberOfMetadataDocumentsModified": 0, "numberOfMetadataDocumentsScanned": 0, "numberOfModifiedDocumentsIndexed": 0, "numberOfNewDocumentsIndexed": 1 }. However, I was expecting (or hoping) to also retrieve additional metrics related to vector processing—such as details on "learned_vectors," a precise vector count, and usage information (for example, token usage or performance-related metrics).

Is there any way to obtain these additional metrics directly via the Bedrock ingestion job APIs? If not, what is the recommended approach to monitor and collect insights on the vector embedding process in Bedrock? Additionally, are there any plans to extend the current API to include these extra statistics in the future?

Thank you

asked 2 years ago268 views

1 Answer
0

Currently, the Amazon Bedrock ingestion job APIs do not provide direct access to the additional vector metrics you're looking for, such as learned vectors, precise vector counts, or detailed token usage information. The IngestionJobStatistics object you mentioned contains basic information about the ingestion process, but it doesn't include the more granular vector-specific metrics you're interested in.

However, there are alternative ways to monitor and collect insights on the vector embedding process in Amazon Bedrock:

  1. CloudWatch Metrics: Amazon Bedrock integrates with CloudWatch, allowing you to monitor various aspects of your Bedrock operations. For vector embeddings specifically, there are two relevant metrics:

    • BedrockTitanEmbeddingTokenCount: This metric monitors the number of tokens present in a single request to Bedrock for embedding generation.
    • BedrockEmbeddingGenerationLatencyMs: This metric reports the time taken to send and receive a response from Bedrock for generating embeddings, measured in milliseconds.

These metrics can provide some insight into the performance and usage of the embedding process, though they may not give you the exact vector counts or learned vector details you're seeking.

  1. CloudWatch Logs: You can use CloudWatch Logs to monitor various aspects of Bedrock, including model invocations, knowledge bases, and Amazon Bedrock Guardrails. While this might not give you direct vector metrics, it could provide additional context and information about your ingestion jobs.

  2. Custom Logging: Depending on your implementation, you might be able to add custom logging or tracking within your application to capture more detailed information about the documents being processed and the resulting embeddings.

As for future plans to extend the API to include more detailed vector statistics, Amazon continuously evolves its services based on customer feedback and needs. While there's no public information available about specific plans to add these metrics to the ingestion job APIs, it's always a good idea to keep an eye on AWS announcements and documentation for updates.

In the meantime, if these metrics are crucial for your use case, you might want to consider reaching out to AWS support or your account representative to discuss your specific needs and potentially influence future feature development.
Sources
Monitor the health and performance of Amazon Bedrock - Amazon Bedrock
Logging and observability - Amazon Managed Streaming for Apache Kafka

answered 2 years ago

AWS
SUPPORT ENGINEER

reviewed 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.