CohereCitation#
- class langchain_cohere.common.CohereCitation(start: int, end: int, text: str, documents: List[Mapping[str, Any]], document_ids: Set[str])[source]#
Cohere has fine-grained citations that specify the exact part of text. More info at https://docs.cohere.com/docs/documents-and-citations
Attributes
Methods
__init__
(start,ย end,ย text,ย documents,ย ...)- Parameters:
start (int) โ
end (int) โ
text (str) โ
documents (List[Mapping[str, Any]]) โ
document_ids (Set[str]) โ
- __init__(start: int, end: int, text: str, documents: List[Mapping[str, Any]], document_ids: Set[str]) None #
- Parameters:
start (int) โ
end (int) โ
text (str) โ
documents (List[Mapping[str, Any]]) โ
document_ids (Set[str]) โ
- Return type:
None