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

Section Navigation

Base packages

  • Core
    • agents
    • beta
    • caches
    • callbacks
    • chat_history
    • chat_loaders
    • chat_sessions
    • document_loaders
    • documents
    • embeddings
    • example_selectors
    • exceptions
    • globals
    • graph_vectorstores
      • GraphVectorStore
      • GraphVectorStoreRetriever
      • Node
      • Link
      • nodes_to_documents
      • add_links
      • copy_with_links
      • get_links
    • indexing
    • language_models
    • load
    • memory
    • messages
    • output_parsers
    • outputs
    • prompt_values
    • prompts
    • rate_limiters
    • retrievers
    • runnables
    • stores
    • structured_query
    • sys_info
    • tools
    • tracers
    • utils
    • vectorstores
  • Langchain
  • Text Splitters
  • Community
  • Experimental

Integrations

  • AI21
  • Airbyte
  • Anthropic
  • AstraDB
  • AWS
  • Azure Dynamic Sessions
  • Box
  • Chroma
  • Cohere
  • Couchbase
  • Elasticsearch
  • Exa
  • Fireworks
  • Google Community
  • Google GenAI
  • Google VertexAI
  • Groq
  • Huggingface
  • Milvus
  • MistralAI
  • MongoDB
  • Nomic
  • Nvidia Ai Endpoints
  • Ollama
  • OpenAI
  • Pinecone
  • Postgres
  • Prompty
  • Qdrant
  • Robocorp
  • Together
  • Unstructured
  • VoyageAI
  • Weaviate
  • LangChain Python API Reference
  • graph_vectorstores
  • Link

Link#

class langchain_core.graph_vectorstores.links.Link(kind: str, direction: Literal['in', 'out', 'bidir'], tag: str)[source]#

Beta

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

A link to/from a tag of a given tag.

Edges exist from nodes with an outgoing link to nodes with a matching incoming link.

Attributes

Methods

__init__(kind, direction, tag)

bidir(kind, tag)

Create a bidirectional link.

incoming(kind, tag)

Create an incoming link.

outgoing(kind, tag)

Create an outgoing link.

Parameters:
  • kind (str) –

  • direction (Literal['in', 'out', 'bidir']) –

  • tag (str) –

__init__(kind: str, direction: Literal['in', 'out', 'bidir'], tag: str) → None#
Parameters:
  • kind (str) –

  • direction (Literal['in', 'out', 'bidir']) –

  • tag (str) –

Return type:

None

static bidir(kind: str, tag: str) → Link[source]#

Create a bidirectional link.

Parameters:
  • kind (str) –

  • tag (str) –

Return type:

Link

static incoming(kind: str, tag: str) → Link[source]#

Create an incoming link.

Parameters:
  • kind (str) –

  • tag (str) –

Return type:

Link

static outgoing(kind: str, tag: str) → Link[source]#

Create an outgoing link.

Parameters:
  • kind (str) –

  • tag (str) –

Return type:

Link

On this page
  • Link
    • __init__()
    • bidir()
    • incoming()
    • outgoing()

© Copyright 2023, LangChain Inc.