Endpoint url to access the knowledgebase from postman

0

Hi, I'm looking for base endpoint url to access to the knowledgebase with id. Currently, https://bedrock-agent-runtime.{{AWS_Region}}.amazonaws.com/knowledge-bases/test-bedrock-knowledgebase/KLDIEK394 from postman, I get this error:

{ "Output": { "__type": "com.amazon.coral.service#UnknownOperationException" }, "Version": "1.0" }

  • Thank you very much. My bad. I had an eyphen between knowledge-bases. It works now. Thanks again.

Guru
질문됨 2달 전116회 조회
1개 답변
2
수락된 답변

Hi THere

To query a knowledge base and only return relevant text from data sources, send a Retrieve request (see link for request and response formats and field details) with an Agents for Amazon Bedrock runtime endpoint.

So for example, to do a retrieval, the endpoint in us-east-1 is bedrock-agent-runtime.us-east-1.amazonaws.com

You would issue a POST to /knowledgebases/{Your KB ID}/retrieve

See an example here: https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_Examples

profile pictureAWS
전문가
Matt-B
답변함 2달 전
profile picture
전문가
검토됨 2달 전
profile picture
전문가
검토됨 2달 전
  • Thank you very much. My bad. I had an eyphen between knowledge-bases. It works now. Thanks again.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인