115. 추론 API와 함께 사용 (Use with inference operations)
- 원문: English
- 위치: Security, Guardrails, and Observability › Bedrock Guardrails › Guardrails use cases › Use with inference operations
한 줄 요약
기본 추론 API인 InvokeModel과 InvokeModelWithResponseStream(스트리밍)에 가드레일을 쓰는 방법입니다. 사용자 입력만 골라서 평가하는 방법과 스트리밍 응답 동작 설정을 다룹니다. 대화형 앱은 Converse API로도 같은 결과를 얻을 수 있습니다.
핵심 내용
- InvokeModel 예제 코드: https://docs.aws.amazon.com/bedrock/latest/userguide/inference-invoke.html
- 기본 추론 API에서 가드레일 쓰는 단계는 106의 API 탭을 참고하세요.