Skip to main content

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

str
No description available.
str
No description available.
str
No description available.
float
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Optional[int]
No description available.
Dict[str, Any]
No description available.
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.

Source

View on GitHub

praisonaiagents/rag/models.py at line 21