Skip to content

DocumentManager

Description: Manages a collection of documents and provides search functionality. Automatically embeds and syncs documents ( provided by loader) into similarity memory where they can be searched.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
- implementationNoconstNo-DocumentManager
+ nameNostringNo-Name
- recheck_frequencyNointegerNo-Recheck Frequency
- loaderNoReference[DocumentLoader]No-DocumentLoader
- doc_processorNoReference[DocumentProcessor]No-DocumentProcessor
- concurrencyNointegerNo-Concurrency

1. Property implementation

Typeconst
RequiredNo

Description: DocumentManager

Specific value: "DocumentManager"

2. Property name

Title: Name

Typestring
RequiredYes

Description: The name of the document manager (used to name database collections).

3. Property recheck_frequency

Title: Recheck Frequency

Typeinteger
RequiredNo
Default60

Description: The number of seconds between checks.

4. Property loader

Title: DocumentLoader

Type[Reference[DocumentLoader]](/docs/components/documentloader/overview)
RequiredNo
Default{"implementation": "FilesystemLoader"}

Description: Overview of DocumentLoader components

5. Property doc_processor

Title: DocumentProcessor

Type[Reference[DocumentProcessor]](/docs/components/documentprocessor/overview)
RequiredNo
Default{"implementation": "DocumentProcessor"}

Description: Overview of DocumentProcessor components

6. Property concurrency

Title: Concurrency

Typeinteger
RequiredNo
Default8

Description: The number of concurrent tasks to run.