You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
See Issue 789.
In the functions:
LongContextChunkQA
MultipleChunkQA
SingleChunkQA
It happens for some questions, when there is not enough information/context provided, that the Intelligence Layer returns NULL as a response. See Issue 789
Describe the solution you'd like
As a solution some feedback provided for the user if there is not enough information/context provided to answer a question, instead of an empty value returned by the Intelligence layer.
This could be a sentence returned by the Intelligence Layer such as: I'm very sorry, I do not have enough information provided to answer your question, please provide more information.
The text was updated successfully, but these errors were encountered:
part of the charm of the Intelligence Layer SDK is that you can adapt it to your specific needs. Feel free to take this code as a start point and adapt it to your use case.
Here is our reasoning why we like the fact of returning None vs a specific answer. For the most part it is easier to test in front end code for None in order to figure out something went wrong, as opposed to testing for a long custom string. A UI might decide to do more things differently in absence of a "good" answer, then just displaying a different text. Also then dealing with multiple languages such hardcoded strings are a hassle.
This is of course true for the use cases we have in mind and having always an answer might be precisely the right thing in yours. Even without "forking" our QA code, you have also the option to creating a wrapping task, which replaces the None with a hard coded string of your liking.
Is your feature request related to a problem? Please describe.
See Issue 789.
In the functions:
It happens for some questions, when there is not enough information/context provided, that the Intelligence Layer returns NULL as a response. See Issue 789
Describe the solution you'd like
As a solution some feedback provided for the user if there is not enough information/context provided to answer a question, instead of an empty value returned by the Intelligence layer.
This could be a sentence returned by the Intelligence Layer such as:
I'm very sorry, I do not have enough information provided to answer your question, please provide more information.
The text was updated successfully, but these errors were encountered: