A class that uses an LLM chain to extract relevant parts of documents. It extends the BaseDocumentCompressor class.

Hierarchy

Constructors

Properties

getInput: ((query, doc) => Record<string, unknown>) = defaultGetInput

Type declaration

    • (query, doc): Record<string, unknown>
    • Parameters

      • query: string
      • doc: Document<Record<string, any>>

      Returns Record<string, unknown>

llmChain: LLMChain<string, LLMType>

Methods

Generated using TypeDoc