ParentDocumentRetrieverFields: MultiVectorRetrieverInput & {
    childSplitter: CleanupMode;
    childDocumentRetriever?: VectorStoreRetrieverInterface<VectorStoreInterface>;
    documentCompressor?: BaseDocumentCompressor;
    documentCompressorFilteringFn?: ((docs) => SubDocs);
    parentSplitter?: CleanupMode;
}

Interface for the fields required to initialize a ParentDocumentRetriever instance.

Type declaration

  • childSplitter: CleanupMode
  • Optional childDocumentRetriever?: VectorStoreRetrieverInterface<VectorStoreInterface>

    A custom retriever to use when retrieving instead of the .similaritySearch method of the vectorstore.

  • Optional documentCompressor?: BaseDocumentCompressor
  • Optional documentCompressorFilteringFn?: ((docs) => SubDocs)
  • Optional parentSplitter?: CleanupMode

Generated using TypeDoc