mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2026-01-03 05:44:22 +01:00
11 lines
307 B
Python
11 lines
307 B
Python
from dev_gpt.options.generate.chains.question_answering import answer_yes_no_question
|
|
|
|
|
|
def is_question_true(question):
|
|
def fn(text):
|
|
return answer_yes_no_question(text, question)
|
|
return fn
|
|
|
|
def is_question_false(question):
|
|
return lambda context: not is_question_true(question)(context)
|