Citation • AI Agent SDK

Citation: Source citation for RAG answers.

Citation

Defined in the models module.

AI Agent

Source citation for RAG answers.

Attributes: id: Unique citation identifier (e.g., “[1]”, “[2]”) source: Source document path or URL text: Text snippet from the source score: Relevance score (0-1) doc_id: Optional document identifier chunk_id: Optional chunk identifier within document offset: Optional character offset in source metadata: Additional metadata

Properties

ResponseField str

No description available.

ResponseField str

No description available.

ResponseField str

No description available.

ResponseField float

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional[int]

No description available.

ResponseField Dict[str, Any]

No description available.

Internal & Generic Methods
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/rag/models.py at line 21