Node#
- class langchain_community.graph_vectorstores.base.Node[source]#
Bases:
Serializable
Beta
This feature is in beta. It is actively being worked on, so the API may change.
Node in the GraphVectorStore.
Edges exist from nodes with an outgoing link to nodes with a matching incoming link.
For instance two nodes a and b connected over a hyperlink
https://some-url
would look like:[ Node( id="a", text="some text a", links= [ Link(kind="hyperlink", tag="https://some-url", direction="incoming") ], ), Node( id="b", text="some text b", links= [ Link(kind="hyperlink", tag="https://some-url", direction="outgoing") ], ) ]
- param id: str | None = None#
Unique ID for the node. Will be generated by the GraphVectorStore if not set.
- param metadata: dict [Optional]#
Metadata for the node.
- param text: str [Required]#
Text contained by the node.
Examples using Node