Skip to content

Fix intermittent appearance of "AI: " text by adding prompt and text slicing#19

Merged
devleejb merged 1 commit intomainfrom
4-intermittent-appearance-of-ai-in-search-results-for-command
Feb 11, 2024
Merged

Fix intermittent appearance of "AI: " text by adding prompt and text slicing#19
devleejb merged 1 commit intomainfrom
4-intermittent-appearance-of-ai-in-search-results-for-command

Conversation

@ykdy3951
Copy link
Copy Markdown
Member

What type of PR is this?:

Bug

What this PR does / why we need it:

This PR addresses the issue of intermittent appearance of the text "AI: " by implementing a solution that involves adding a prompt and performing text slicing.

Which issue(s) this PR fixes:

Fixes #4

Special notes for your reviewer:

Currently, there is an issue where the text "AI: " intermittently appears in the output. This issue is caused by the model generating incomplete text outputs, which include the prompt "AI: ". To overcome this problem, we can add an explicit prompt at the beginning of each generation request. Additionally, we need to slice the generated text to exclude the prompt when returning the final output.

Does this PR introduce a user-facing change?


Additional documentation:


@ykdy3951 ykdy3951 added the bug Something isn't working label Feb 11, 2024
@ykdy3951 ykdy3951 added this to the 0.1.1 milestone Feb 11, 2024
@ykdy3951 ykdy3951 requested a review from devleejb February 11, 2024 11:23
@ykdy3951 ykdy3951 self-assigned this Feb 11, 2024
@ykdy3951 ykdy3951 linked an issue Feb 11, 2024 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@devleejb devleejb left a comment

Choose a reason for hiding this comment

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

LGTM

@devleejb devleejb merged commit dbd3f6a into main Feb 11, 2024
@devleejb devleejb deleted the 4-intermittent-appearance-of-ai-in-search-results-for-command branch February 11, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Intermittent appearance of "AI:" in search results for Command

2 participants