nat.plugins.rag.models#
Classes#
Base model for RAG tool results. |
|
RAG search result. |
|
RAG generation result. |
Module Contents#
- class RAGResultBase(/, **data: Any)#
Bases:
pydantic.BaseModelBase model for RAG tool results.
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.selfis explicitly positional-only to allowselfas a field name.- model_config#
Configuration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].
- class RAGSearchResult(/, **data: Any)#
Bases:
RAGResultBaseRAG search result.
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.selfis explicitly positional-only to allowselfas a field name.- citations: nvidia_rag.rag_server.response_generator.Citations#
- class RAGGenerateResult(/, **data: Any)#
Bases:
RAGResultBaseRAG generation result.
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.selfis explicitly positional-only to allowselfas a field name.