LinkExtractorAdapter#
- class langchain_community.graph_vectorstores.extractors.link_extractor_adapter.LinkExtractorAdapter(underlying: LinkExtractor[UnderlyingInputT], transform: Callable[[InputT], UnderlyingInputT])[source]#
Beta
This feature is in beta. It is actively being worked on, so the API may change.
Methods
__init__
(underlying,Β transform)extract_many
(inputs)Add edges from each input to the corresponding documents.
extract_one
(input)Add edges from each input to the corresponding documents.
- Parameters:
underlying (LinkExtractor[UnderlyingInputT]) β
transform (Callable[[InputT], UnderlyingInputT]) β
- __init__(underlying: LinkExtractor[UnderlyingInputT], transform: Callable[[InputT], UnderlyingInputT]) None [source]#
- Parameters:
underlying (LinkExtractor[UnderlyingInputT]) β
transform (Callable[[InputT], UnderlyingInputT]) β
- Return type:
None
- 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]]