AnswerWithSources#
- class langchain.chains.openai_functions.qa_with_structure.AnswerWithSources[source]#
Bases:
BaseModel
An answer to the question, with 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: str [Required]#
Answer to the question that was asked
- param sources: List[str] [Required]#
List of sources used to answer the question