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: