nat.retriever.models#
Attributes#
Exceptions#
Common base class for all non-exit exceptions. |
Classes#
Object representing a retrieved document/chunk from a standard NAT Retriever. |
|
Functions#
|
|
|
Module Contents#
- class Document(/, **data: Any)#
Bases:
pydantic.BaseModel
Object representing a retrieved document/chunk from a standard NAT Retriever.
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 allowself
as a field name.
- exception RetrieverError#
Bases:
Exception
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- retriever_output_to_dict(obj: RetrieverOutput) dict #
- retriever_output_to_str(obj: RetrieverOutput) str #
- AIQDocument#