Short answer: You can knowledge bases retrieve in AWS Bedrock by hand from its own interface, but it won’t repeat itself. On TinyCommand, add the AWS Bedrock Knowledge Bases Retrieve action to a workflow, map its 3 inputs from any upstream app, and it runs automatically every time the trigger fires. No code, and a free tier to start.
Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.
| Field | Type | Required | Description |
|---|---|---|---|
Knowledge Base ID knowledge_base_id | string | Required | Knowledge Base ID (required) |
Query query | string | Required | Query (required) |
Number of Results number_of_results | string | Optional | Number of Results |
{"knowledge_base_id": "{{trigger.knowledge_base_id}}","query": "{{trigger.query}}","number_of_results": "{{trigger.number_of_results}}"}
{"retrievalResults": [{"score": 0.91,"content": {"text": "..."},"location": {"type": "S3","s3Location": {"uri": "s3://x/y"}}}]}
Use these fields in downstream nodes for routing, logging, or error handling.
Any of these apps can fire this action as part of a workflow.