langchain.chains.openai_functions.qa_with_structure
.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 if the input data cannot be parsed to form a valid model.
- param answer: str [Required]¶
Answer to the question that was asked
- param sources: List[str] [Required]¶
List of sources used to answer the question