UNPKG

llamaindex

Version:

<p align="center"> <img height="100" width="100" alt="LlamaIndex logo" src="https://ts.llamaindex.ai/square.svg" /> </p> <h1 align="center">LlamaIndex.TS</h1> <h3 align="center"> Data framework for your LLM application. </h3>

20 lines (19 loc) 868 B
import { BaseNode, MetadataMode, TransformComponent } from "@llamaindex/core/schema"; export declare abstract class BaseExtractor extends TransformComponent { isTextNodeOnly: boolean; showProgress: boolean; metadataMode: MetadataMode; disableTemplateRewrite: boolean; inPlace: boolean; numWorkers: number; constructor(); abstract extract(nodes: BaseNode[]): Promise<Record<string, any>[]>; /** * * @param nodes Nodes to extract metadata from. * @param excludedEmbedMetadataKeys Metadata keys to exclude from the embedding. * @param excludedLlmMetadataKeys Metadata keys to exclude from the LLM. * @returns Metadata extracted from the nodes. */ processNodes(nodes: BaseNode[], excludedEmbedMetadataKeys?: string[] | undefined, excludedLlmMetadataKeys?: string[] | undefined): Promise<BaseNode[]>; }