QuestionAnswer#
- class langchain.chains.openai_functions.citation_fuzzy_match.QuestionAnswer[source]#
Bases:
BaseModel
A question and its answer as a list of facts each one should have a source. each sentence contains a body and a list of sources.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- param answer: List[FactWithEvidence] [Required]#
Body of the answer, each fact should be its separate object with a body and a list of sources
- param question: str [Required]#
Question that was asked