Retrievers

Document Retriever

A Document retriever, which searches within your knowledge sources.

Category: Retrievers · Plans: Trial, Starter, Pro, Premium, Enterprise · Type: DocumentRetriever

Inputs#

FieldTypeRequiredDefaultWhat it does
Input QueryTextYes{input}The query to search in knowledge sources.
Document CategoriesMultiple choiceNo—Select categories of documents to search in.
Category IDsTextNo(empty)Category IDs (comma-separated) from upstream flow.
SchedulesMultiple choiceNo—Filters just documents from selected schedules. If empty, all documents from workspace are used.
ThresholdNumberNo0.8
Documents CountNumberYes3
From H1 if existsYes/NoNoOnStart from the H1 tag of the document if H1 exists.
Skip Last HeaderYes/NoNoOnSkip the last header of the document to optimize output.
Include MetadataTextNo—Include metadata in the output if available. Options: Author, Product, BreadcrumbList, VideoObject, BlogPosting, FAQPage, WebSite, opengraph
Export ContentTextNo—Content types to include in the output. Options: H1, H2, H3, H4, H5, H6, Paragraph
Load from pointerYes/NoNoOnLoad from the pointer best matching the input query in the document, otherwise load all
Max TokensNumberNo3000The maximum number of tokens in the output text.
StrategyTextNoInclude equal size from each documentsThe strategy to use for transforming the knowledge document to text. Options: Concat documents, fill from first up to tokens limit, Include equal size from each documents
TitleTextNoRelated resourcesTitle of the block in the output.
URL FilterTextNo(empty)Filter documents by matching only pages with given substring in the URL.
Hide ResourcesYes/NoNoOffHide resources that were retrieved by the retriever.
Enable Document LinksYes/NoNoOffWhen enabled, users can click on cited documents to download/view them. Only affects uploaded files. (Advanced)

Outputs#

OutputType
DocumentsAny
Document CountAny
Hide ResourcesAny

Use as an agent tool#

Tool name: documentretriever

A Document retriever, which searches within your knowledge sources.