Skip to main content
Ctrl+K
🦜🔗 LangChain  documentation - Home 🦜🔗 LangChain  documentation - Home
  • Reference
Ctrl+K
Docs
  • GitHub
  • X / Twitter
Ctrl+K
  • Reference
Docs
  • GitHub
  • X / Twitter

Section Navigation

Base packages

  • Core
  • Langchain
  • Text Splitters
  • Community
    • adapters
    • agent_toolkits
    • agents
    • cache
    • callbacks
    • chains
    • chat_loaders
    • chat_message_histories
    • chat_models
    • cross_encoders
    • docstore
    • document_compressors
    • document_loaders
    • document_transformers
    • embeddings
    • example_selectors
    • graph_vectorstores
      • AdjacentNode
      • CassandraGraphVectorStore
      • GLiNERLinkExtractor
      • HierarchyLinkExtractor
      • HtmlInput
      • HtmlLinkExtractor
      • KeybertLinkExtractor
      • LinkExtractor
      • LinkExtractorAdapter
      • LinkExtractorTransformer
      • Link
      • MmrHelper
      • add_links
      • copy_with_links
      • get_links
      • documents_to_networkx
      • render_graphviz
      • GraphVectorStore
      • GraphVectorStoreRetriever
      • Node
      • nodes_to_documents
    • graphs
    • indexes
    • llms
    • memory
    • output_parsers
    • query_constructors
    • retrievers
    • storage
    • tools
    • utilities
    • utils
    • vectorstores
  • Experimental

Integrations

  • AI21
  • Anthropic
  • AstraDB
  • AWS
  • Azure Ai
  • Azure Dynamic Sessions
  • Cerebras
  • Chroma
  • Cohere
  • Deepseek
  • Elasticsearch
  • Exa
  • Fireworks
  • Google Community
  • Google GenAI
  • Google VertexAI
  • Groq
  • Huggingface
  • IBM
  • Milvus
  • MistralAI
  • MongoDB
  • Neo4J
  • Nomic
  • Nvidia Ai Endpoints
  • Ollama
  • OpenAI
  • Perplexity
  • Pinecone
  • Postgres
  • Prompty
  • Qdrant
  • Redis
  • Sema4
  • Snowflake
  • Sqlserver
  • Standard Tests
  • Tavily
  • Together
  • Unstructured
  • Upstage
  • VoyageAI
  • Weaviate
  • XAI
  • LangChain Python API Reference
  • langchain-community: 0.3.23
  • graph_vectorstores
  • copy_with_links

copy_with_links#

langchain_community.graph_vectorstores.links.copy_with_links(
doc: Document,
*links: Link | Iterable[Link],
) → Document[source]#

Beta

This feature is in beta. It is actively being worked on, so the API may change.

Return a document with the given links added.

Parameters:
  • doc (Document) – The document to add the links to.

  • *links (Link | Iterable[Link]) – The links to add to the document.

Returns:

A document with a shallow-copy of the metadata with the links added.

Return type:

Document

On this page
  • copy_with_links()

© Copyright 2025, LangChain Inc.