# Pipeline

Choose providers to process your documents

In addition to using Fractur default models, we also provide a pipeline interface to allow you to use Azure Document Intelligence as a provider. When using Azure, instead of the default models, your files are processed thorugh the Azure layout analysis model, the Azure OCR model, and the Azure table OCR model.

You can still leverage Fractur intelligent chunking and segment processing. The output will be mapped to the Fractur output format.

### [​](https://docs.chunkr.ai/docs/features/pipeline#when-to-use-azure)When to use Azure <a href="#when-to-use-azure" id="when-to-use-azure"></a>

#### [​](https://docs.chunkr.ai/docs/features/pipeline#pros)Pros <a href="#pros" id="pros"></a>

* If our queue is full, you can use Azure to process your files
* If you don’t need VLMs on you tables, you can use the Azure table OCR model. This will allow you to get much faster results.
* Better OCR (we are working on it!)

#### [​](https://docs.chunkr.ai/docs/features/pipeline#cons)Cons <a href="#cons" id="cons"></a>

* The layout model is not as good as the one we use in Fractur.
* The layout model does not support segment type: `ListItem`, `Formula`

### [​](https://docs.chunkr.ai/docs/features/pipeline#example)Example <a href="#example" id="example"></a>

1. Use default segment processing and chunking with the Azure layout analysis model and OCR model.

PythoncURL

```python
from chunkr_ai import Chunkr
from chunkr_ai.models import (
    Configuration,
    Pipeline
)

chunkr = Chunkr()

chunkr.upload("path/to/file", Configuration(
    pipeline=Pipeline.AZURE
))
```

2. Use default chunking with the Azure layout analysis model, OCR model and table OCR model. In this case, the HTML and Markdown for the `Table` segment will be generated by the Azure table OCR model.

PythoncURL

```python
from chunkr_ai import Chunkr
from chunkr_ai.models import (
    Configuration,
    GenerationConfig,
    GenerationStrategy,
    SegmentProcessing,
    Pipeline
)

chunkr = Chunkr()

chunkr.upload("path/to/file", Configuration(
    segment_processing=SegmentProcessing(
        Table=GenerationConfig(
            html=GenerationStrategy.AUTO,
            markdown=GenerationStrategy.AUTO
        ),
    ),
    pipeline=Pipeline.AZURE,
))
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fractur.gitbook.io/fractur/features/pipeline.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
