Skip to main content

Citation

Defined in the models module.
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

id
str
No description available.
source
str
No description available.
text
str
No description available.
score
float
No description available.
doc_id
Optional
No description available.
chunk_id
Optional
No description available.
offset
Optional
No description available.
metadata
Dict
No description available.
  • from_dict: Create from dictionary.
  • to_dict: Convert to dictionary.