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
strNo description available.
ResponseField
strNo description available.
ResponseField
strNo description available.
ResponseField
floatNo 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 GitHubpraisonaiagents/rag/models.py at line 21