Skip to content

Commit 610ba21

Browse files
committed
feat: fix linting issues in amazon bedrock knowledge base implementation
Signed-off-by: rkarthikr <38294804+rkarthikr@users.noreply.github.com>
1 parent ae7e39b commit 610ba21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/ai/amazonbedrockknowledgebase.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,12 @@ func (a *AmazonBedRockKnowledgeBaseClient) GetCompletion(ctx context.Context, pr
233233
sourcesSection := "\n\nSources:\n"
234234

235235
// Process citations if available
236-
if response.Citations != nil && len(response.Citations) > 0 {
236+
if len(response.Citations) > 0 {
237237
for _, citation := range response.Citations {
238238
sourceURI := ""
239239
snippetText := ""
240240

241-
if citation.RetrievedReferences != nil && len(citation.RetrievedReferences) > 0 {
241+
if len(citation.RetrievedReferences) > 0 {
242242
for _, ref := range citation.RetrievedReferences {
243243
if ref.Location != nil && ref.Location.S3Location != nil && ref.Location.S3Location.Uri != nil {
244244
sourceURI = *ref.Location.S3Location.Uri

0 commit comments

Comments
 (0)