# get_links

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/graph_vectorstores/links/get_links)

Get the links from a document.

## Signature

```python
get_links(
    doc: Document,
) -> list[Link]
```

## Description

Returns:
The set of link tags from the document.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc` | `Document` | Yes | The document to get the link tags from. |

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/graph_vectorstores/links.py#L162)