# CohereCitation

> **Class** in `langchain_cohere`

📖 [View in docs](https://reference.langchain.com/python/langchain-cohere/common/CohereCitation)

Cohere has fine-grained citations that specify the exact part of text.

More info at https://docs.cohere.com/docs/documents-and-citations

## Signature

```python
CohereCitation(
    self,
    start: int,
    end: int,
    text: str,
    documents: List[Mapping[str, Any]],
    document_ids: Set[str],
)
```

## Constructors

```python
__init__(
    self,
    start: int,
    end: int,
    text: str,
    documents: List[Mapping[str, Any]],
    document_ids: Set[str],
) -> None
```

| Name | Type |
|------|------|
| `start` | `int` |
| `end` | `int` |
| `text` | `str` |
| `documents` | `List[Mapping[str, Any]]` |
| `document_ids` | `Set[str]` |


## Properties

- `start`
- `end`
- `text`
- `documents`
- `document_ids`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-cohere/blob/24cfdaefd4e3c785f477ccfe491a4226a0dbe88c/libs/cohere/langchain_cohere/common.py#L5)