Skip to content

Fixed role bug where enumeration was wrong#13

Merged
mhbuehler merged 2 commits intommqna-audio-queryfrom
omar/role-debug
Dec 4, 2024
Merged

Fixed role bug where enumeration was wrong#13
mhbuehler merged 2 commits intommqna-audio-queryfrom
omar/role-debug

Conversation

@okhleif-10
Copy link
Copy Markdown
Collaborator

@okhleif-10 okhleif-10 commented Dec 4, 2024

Description

in the loop on line 906, the variable i was in the wrong block and therefore it would never equal to a value greater than 0. This caused role to never be concatenated to the prompt string later on.

Issues

https://github.com/opea-project/docs/blob/main/community/rfcs/24-10-02-GenAIExamples-001-Image_and_Audio_Support_in_MultimodalQnA.md

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

N/A

Tests

Verified fix with print statements

Signed-off-by: okhleif-IL <omar.khleif@intel.com>
Copy link
Copy Markdown
Owner

@mhbuehler mhbuehler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there is some extra whitespace in line 906. The linter may not like that.

Signed-off-by: okhleif-IL <omar.khleif@intel.com>
@mhbuehler mhbuehler merged commit 1753473 into mmqna-audio-query Dec 4, 2024
@mhbuehler mhbuehler deleted the omar/role-debug branch December 4, 2024 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants