LinkExtractor#
- class langchain_community.graph_vectorstores.extractors.link_extractor.LinkExtractor(*args, **kwargs)[source]#
Beta
This feature is in beta. It is actively being worked on, so the API may change.
Interface for extracting links (incoming, outgoing, bidirectional).
Methods
__init__
(*args, **kwargs)extract_many
(inputs)Add edges from each input to the corresponding documents.
extract_one
(input)Add edges from each input to the corresponding documents.
- __init__(*args: Any, **kwargs: Any) Any #
- Parameters:
self (Any) –
args (Any) –
kwargs (Any) –
- Return type:
Any
- extract_many(inputs: Iterable[InputT]) Iterable[Set[Link]] [source]#
Add edges from each input to the corresponding documents.
- Parameters:
inputs (Iterable[InputT]) – The input content to extract edges from.
- Returns:
Iterable over the set of links extracted from the input.
- Return type:
Iterable[Set[Link]]