Skip to content

Why OpenAIAnswerGenerator gives answers out of context? #4279

Discussion options

You must be logged in to vote

I'm just giving you an opinion and maybe it's not the best idea...

  • What are the scores returned by the retriever for unrelated documents?
    If these scores are low (as I hope), you can hand-craft a mechanism that doesn't call OpenAIAnswerGenerator in these cases, it just returns something like
    I cannot give you an answer with the given context

  • Another option would involve the PromptNode, which already has a question-answering-check template.
    It would try to figure out if the answer is contained in the context...

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@foochris
Comment options

@anakin87
Comment options

@bilgeyucel
Comment options

@foochris
Comment options

@bilgeyucel
Comment options

Answer selected by nachoperezzv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants