FactWithEvidence#

class langchain.chains.openai_functions.citation_fuzzy_match.FactWithEvidence[source]#

Bases: BaseModel

Class representing a single statement.

Each fact has a body and a list of sources. If there are multiple facts make sure to break them apart such that each one only uses a set of sources that are relevant to it.

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 fact: str [Required]#

Body of the sentence, as part of a response

param substring_quote: List[str] [Required]#

Each source should be a direct quote from the context, as a substring of the original content

get_spans(context: str) Iterator[str][source]#
Parameters:

context (str) –

Return type:

Iterator[str]