mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-02-07 07:22:03 +00:00
* Update documentation and remove unused assets. Enhanced the 'agents' and 'components' sections with clearer descriptions and examples. Removed obsolete images and updated links for better navigation. Adjusted formatting for consistency across various documentation pages. * remove dependency * address comments * delete more empty pages * broken link * unduplicate headings * alphabetical components nav
22 lines
2.2 KiB
Plaintext
22 lines
2.2 KiB
Plaintext
---
|
|
title: "Routers"
|
|
id: routers
|
|
slug: "/routers"
|
|
description: "Routers is a group of components that route queries or documents to other components that can handle them best."
|
|
---
|
|
|
|
# Routers
|
|
|
|
Routers is a group of components that route queries or documents to other components that can handle them best.
|
|
|
|
| Component | Description |
|
|
| --- | --- |
|
|
| [ConditionalRouter](routers/conditionalrouter.mdx) | Routes data based on specified conditions. |
|
|
| [DocumentLengthRouter](routers/documentlengthrouter.mdx) | Routes documents to different output connections based on the length of their `content` field. |
|
|
| [DocumentTypeRouter](routers/documenttyperouter.mdx) | Routes documents based on their MIME types to different outputs for further processing. |
|
|
| [FileTypeRouter](routers/filetyperouter.mdx) | Routes file paths or byte streams based on their type further down the pipeline. |
|
|
| [LLMMessagesRouter](routers/llmmessagesrouter.mdx) | Routes Chat Messages to various output connections using a generative Language Model to perform classification. |
|
|
| [MetadataRouter](routers/metadatarouter.mdx) | Routes documents based on their metadata field values. |
|
|
| [TextLanguageRouter](routers/textlanguagerouter.mdx) | Routes queries based on their language. |
|
|
| [TransformersTextRouter](routers/transformerstextrouter.mdx) | Routes text input to various output connections based on a model-defined categorization label. |
|
|
| [TransformersZeroShotTextRouter](routers/transformerszeroshottextrouter.mdx) | Routes text input to various output connections based on user-defined categorization label. | |