No, calls to the AWS Bedrock Knowledgebase `retrieve` function are not auto-instrumented by `BedrockInstrumentor`. The current auto-instrumentation only covers `invoke_model`, `converse`, and (recently) `invoke_agent` for the `bedrock-runtime` and `bedrock-agent-runtime` clients, but there is no mention of `retrieve` being instrumented in the official documentation or changelogs <https://pypi.org/project/openinference-instrumentation-bedrock/|[PyPI BedrockInstrumentor>] <https://github.com/Arize-ai/openinference/blob/main/python/instrumentation/openinference-instrumentation-bedrock/README.md|[README>].
If you need observability for `retrieve` calls, you would have to implement manual instrumentation, as auto-instrumentation for this method is not currently supported. Would you like more detail on how to manually instrument these calls?
Sources:
- <https://pypi.org/project/openinference-instrumentation-bedrock/|PyPI BedrockInstrumentor>
- <https://github.com/Arize-ai/openinference/blob/main/python/instrumentation/openinference-instrumentation-bedrock/README.md|README>