# Nuclei-staining Image

## Why Nuclei-staining?

Nuclei-staining has no bias in labeling cells in a tissue slice, making it invaluable for determining tissue area and cell location. Stereo-seq experiments and bioinformatics analysis tools are compatible with two stains, ssDNA and DAPI.

STOmics R\&D team has compared and tested various commercialized staining reagents and found that ssDNA staining has the least effect on the downstream mRNA capture rate. The blue-fluorescent DAPI nucleic acid stain is a commonly used nuclear counterstain with high specificity in staining nuclei and can be used alongside other fluorescent reagents. In addition, both ssDNA and DAPI staining allow visualization of tracklines.

## Considerations for Nuclei-staining Images

Processing nuclei-staining images in StereoMap and SAW requires either an individual acquisition stored in a single-page grayscale file at 8 or 16-bit depth . (See [Image Types and Format](/stereomap-user-manual-v4.2/tutorials/navigation-for-image-processing.md#image-types-and-format) for more information)

<table><thead><tr><th width="197">Fluorescence Image</th><th>Data Type and File Format</th></tr></thead><tbody><tr><td>Grayscale image</td><td>One 8 or 16-bit grayscale single-page image file.</td></tr></tbody></table>

## Step 1: Upload Image

<figure><img src="/files/cfamE5uG4ywrf3PymzeU" alt=""><figcaption></figcaption></figure>

Click on **Choose file** in the drag-and-drop box to select a compatible image file from your file system, or drag and drop the file into the box. Only one image file is allowed for this image type.

Please visit [**Image Processing Input Files**](/stereomap-user-manual-v4.2/getting-started.md#image-processing-input-files) for detailed image file information.

<figure><img src="/files/LjhfUpOigtjWe3DEFZhA" alt=""><figcaption></figcaption></figure>

After selecting a file, the system will parse the image and extract necessary data. Parsing time may vary depending on the file type and size. Stereo-seq chip serial number (SN) and microscope setting provide important information in the image processing steps. The `.tar.gz` or `.stereo` the input file contains these data, so the parsing process will start directly.

<figure><img src="/files/Nh9ocdsISk6MeFRwXqeD" alt=""><figcaption></figcaption></figure>

If your input file is is `.tif` or `.tiff`, you'll need to manually enter the required information specified in this step and click **Confirm** to begin parsing and quality check.&#x20;

Once parsing and quality checks are complete, click **Next** to proceed to Step 2.

## Step 2: Image Registration

In this step, you will need to adjust the orientation, position, and scale of the image to align it with the spatial feature expression matrix. StereoMap provides two registration approaches for aligning images in the context of Stereo-seq data analysis.

1. [**Morphology Registration**](#morphology-registration): Aligns image with matrix based on the similarity of their morphology.
2. [**Feature Point Registration**](#feature-point-registration): Aligns image to the trackline template deduced from the Stereo-seq chip SN by marking a key point. There’s no need to bring in a spatial feature expression matrix generated by SAW, but some prerequisites should be taken into account.

<figure><img src="/files/tRnQfkbfZblUy1VLhyUS" alt=""><figcaption></figcaption></figure>

### Morphology Registration

If you uploaded a `.stereo` file in Step 1, both the image and the spatial feature expression matrix will be visible in Step 2. For `.tar.gz` or `.tif/.tiff` image file, you will need to add a `.stereo` file to specify a spatial feature expression matrix as the reference. Click <img src="/files/bwJx0rgIN3S6O2VJY77e" alt="" data-size="original"> to select the `.stereo` file.&#x20;

Or, if your image is in the `.stereo` file, but you want to change the reference expression matrix, you can click the <img src="/files/VfMxQKPVHatNLHpHiQPS" alt="" data-size="original"> and load a new file. This action will reload the matrix, but use the image from step 1.

<figure><img src="/files/t1nNDdtehxuxaG8mXJLN" alt=""><figcaption></figcaption></figure>

The registration process involves two stages:

* **Rough Alignment**: Match the orientation of the image based on morphology.
  * Use the **Flip** <img src="/files/lxVJhO3uEYPBozrmmXn1" alt="" data-size="original"> tool to mirror the image.
  * Click on <img src="/files/6rXXAcv5QKEJuausrQUw" alt="" data-size="original"> and use the **Control knob** <img src="/files/kSLawpwgwIPA7lABqeca" alt="" data-size="original"> to rotate the image accordingly.
* **Fine Alignment**: Adjust the position and scale for exact overlap with the spatial feature expression map.
  * Use the **Move panel** <img src="/files/Q5Bo3YWjBYLREjZH78Z3" alt="" data-size="original"> by setting the step size and pan in four directions.
  * Adjust scales using the **Scale tool** <img src="/files/T5ubIkrVJikGsXbFKQAK" alt="" data-size="original"> to match the dimensions of the microscope image with the spatial feature expression map.
  * Click"Chip tracklines" to display tracklines derived from the spatial feature expression matrix to assist with fine alignment. This template is a representation of the matrix.
  * If the tracklines on the image appear dim, manually adjust the **Normalization** <img src="/files/l7WWZRqwPeMdyH9GvnbL" alt="" data-size="original"> , **Contrast** <img src="/files/Oyvy3ygDurEqYJZLHUdv" alt="" data-size="original">, **Brightness** <img src="/files/c0o375k3kHOYNIbtw6O9" alt="" data-size="original">, and **Opacity** <img src="/files/QkkIZuxC6c5e9DFggSJh" alt="" data-size="original">.

<figure><img src="/files/0sL2TIhNMX6jF2RaTDX9" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The images are adjusted to optimize the visibility of tracklines.
{% endhint %}

<figure><img src="/files/SYCbigEhKVqR1Sx6qnd1" alt=""><figcaption><p>Example of trackline overlapping</p></figcaption></figure>

{% hint style="info" %}
Adjusting **Saturation** <img src="/files/AkVXeq0Q7FStY5iH4aFf" alt="" data-size="original"> will not affect the grayscale image.
{% endhint %}

The image that has been adjusted will be marked as complete by <img src="/files/ArZa9H6dnPLOrcKK5uzc" alt="" data-size="original">.

{% hint style="info" %}
After the image has been aligned with the matrix, steps 3 and 4 can be bypassed. You can export the semi-processed `.tar.gz` image directly and feed this output to SAW for automatic segmentation.

In addition, a `*regist.tif` image file will be provided. This is a reoriented image that matches the shape and orientation of its corresponding feature expression matrix. This image serves as the starting point for tissue and cell segmentation. **If you’re considering using other external segmentation tools or algorithms, it’s strongly advised to utilize this `*regist.tif` file as the input.**
{% endhint %}

### Feature Point Registration

Registration with feature points involves aligning images without the need for a feature expression matrix. It uses tracklines detected from the image and lines from the chip mask according to predefined rules.

{% hint style="info" %}
**Prerequisite to accessing this approach:**

1. Image must pass QC: this ensures the tracklines are visible.
2. Valid Stereo-seq chips that follow the predefined rules: Stereo-seq N FFPE V1.0, Stereo-seq T FF V1.3, or Stereo-CITE T V1.1 chips.
3. Input `.tar.gz` or the `.stereo` file correspondent `.tar.gz` is generated from StereoMap >= 4.1.
   {% endhint %}

To ensure that the two sets of lines match, you must also identify a specific point to indicate the orientation of the image; otherwise, the auto-alignment may fail.

**Requirements to select the correct feature point and get the correct registration result:**

1. The tissue's orientation in the image matches its placement on the slide, with the slide's engraved label on the right. The maximum tilting angle allowed is less than 15°.

   <figure><img src="/files/6hSSsB7v69cnesznyhvJ" alt=""><figcaption></figcaption></figure>
2. The four chip edges/corners can be seen from the image.
3. The imaging process has strictly followed the instructions specified in [**Microscope Assessment Guideline**](https://enfile.stomics.tech/STUM-PE001%20Microscope%20Assessment%20Guideline_ver%20C.pdf) **- Chapter 3 Microscope Imaging Guidelines - 3.2.2. Precautions for Experimental Operations**. You can access it from [STOmics](https://en.stomics.tech/) -> [Resources Documents](https://en.stomics.tech/resources/documents/list.html).

{% hint style="warning" %}
If your image cannot fulfill **all the requirements**, we highly recommend you perform the [**Morphology Registration**](#morphology-registration).
{% endhint %}

<figure><img src="/files/t0YxfTa4QfyeVuM4cbHM" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Feature point registration begins with an image that has been adjusted for rotation and scaling.
{% endhint %}

The process of feature point registration involves two stages:&#x20;

* **Adjusting Image Visibility**: To ensure all four edges and corners of the chip are clearly visible.
* **Selecting a Reference Point**: To set it as the reference.

<figure><img src="/files/uuMgOl2xeySqDxlBioX3" alt=""><figcaption></figcaption></figure>

To ensure all four sides of the chip are visible, you can manually adjust the image's **Normalization** <img src="/files/l7WWZRqwPeMdyH9GvnbL" alt="" data-size="original"> , **Contrast** <img src="/files/Oyvy3ygDurEqYJZLHUdv" alt="" data-size="original">, **Brightness** <img src="/files/c0o375k3kHOYNIbtw6O9" alt="" data-size="original">, and **Opacity** <img src="/files/QkkIZuxC6c5e9DFggSJh" alt="" data-size="original">.

<figure><img src="/files/bHLWlL0yF2ZRbRn20sfa" alt=""><figcaption></figcaption></figure>

Once you can see the chip, you should identify a predetermined point **inside the chip region that is nearest to the bottom left corner**. Click on this point to select it, and then click **Next** to complete the registration.

<figure><img src="/files/N5rNwmxD6okWbPaFIkIJ" alt=""><figcaption></figcaption></figure>

After selection, the orientation of the image will be auto-adjusted. You will see the result in [Step 3: Tissue Segmentation](#step-3-tissue-segmentation).

{% hint style="info" %}
After the image has been aligned with the matrix, steps 3 and 4 can be bypassed. You can export the semi-processed `.tar.gz` image directly and feed this output to SAW for automatic segmentation.

In addition, a `*regist.tif` image file will be provided. This is a reoriented image that matches the shape and orientation of its corresponding feature expression matrix. This image serves as the starting point for tissue and cell segmentation. **If you’re considering using other external segmentation tools or algorithms, it’s strongly advised to utilize this `*regist.tif` file as the input.** Other`.tif` file may fail to import due to the difference in image and matrix size.
{% endhint %}

## Step 3: Tissue Segmentation

{% hint style="info" %}
**Tissue Segmentation** is a skippable step.
{% endhint %}

In this step, you will define the tissue regions. Precisely identifying tissue boundaries helps minimize background interference, improving the accuracy of clustering results. The segmented tissue regions from the image will be mapped onto the sequencing-based spatial feature expression matrix, generating a feature density map for the tissue.

<figure><img src="/files/XU9R13tzQ6eN1lppOzTH" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you upload the `.stereo` file in step 1, you can see a semi-transparent mask overlapped on the registered microscope image.

For `.tar.gz` or `.tif/.tiff` image file, you will need to use tools to draw the tissue region.
{% endhint %}

In the Tissue Segmentation step, you can edit the recorded mask or create a new one. The tissue mask recorded in the `.tar.gz` or `.stereo` file appears as "**RECORD**" in the **Segmentation mask** dropdown, while manually drawn or imported masks are labeled as "**CUSTOM**". Select a mask from the dropdown to update the canvas display.

<figure><img src="/files/kHPOacKDEn2yUipHowp0" alt=""><figcaption></figcaption></figure>

To select or edit the tissue region, use a combination of **Lasso** <img src="/files/XneuB0sqcRQ9IrN1RIcK" alt="" data-size="original">, **Brush** <img src="/files/xupjaBYFS02SkFFUymMI" alt="" data-size="original"> , and **Eraser** <img src="/files/HJfFirxVfmaaZNFrJWYO" alt="" data-size="original"> tools.&#x20;

* **Lasso** **Tool**: This tool is typically used for selecting or deselecting large areas. It allows you to draw a freehand selection around the region of interest.
* **Brush** **Tool**: This tool is more suitable for smaller areas, such as regions around tissue or fill in small holes in the tissue. It allows you to paint over specific areas to include or exclude them from the selection.
* **Eraser** **Tool**: Similar to the Brush tool, the Eraser tool is used for smaller areas. It allows you to remove or deselect specific regions within the larger selection.

<div><figure><img src="/files/p3t9RwbZhTJ3WLqH4arI" alt=""><figcaption><p>Lasso</p></figcaption></figure> <figure><img src="/files/igoUoGbHzxtZewxIWLxK" alt=""><figcaption><p>Brush</p></figcaption></figure> <figure><img src="/files/6xKw0jXQbstOspAa1052" alt=""><figcaption><p>Eraser</p></figcaption></figure></div>

If you have created a `.tif` format binary mask file using a third-party tool, you can import it by:

* Click on the **Segmentation Mask** dropdown menu on the right panel.
* Select **Add Mask** <img src="/files/bwJx0rgIN3S6O2VJY77e" alt="" data-size="original"> in the  **CUSTOM** category to import mask.
* Navigate to your `.tif` binary mask file from your file system and click **Open** to import it.

If the imported result is unsatisfactory, you can replace it with a new mask

* Click on the **Segmentation Mask** dropdown menu again.
* Select the **option with** <img src="/files/VfMxQKPVHatNLHpHiQPS" alt="" data-size="original"> in the **CUSTOM** category to replace mask.
* Navigate to your `.tif` binary mask file from your file system and click **Open** to import it.

<div><figure><img src="/files/3HM0XmnJ9be8Ck0dCCOB" alt=""><figcaption><p>Import tissue mask</p></figcaption></figure> <figure><img src="/files/oU9usSGScmmLhFekh8LF" alt=""><figcaption><p>Show the file name of the imported mask</p></figcaption></figure> <figure><img src="/files/NA9PENI9UMw1j4m1bQ2Y" alt=""><figcaption><p>Replace the mask</p></figcaption></figure></div>

## Step 4: Cell Segmentation

{% hint style="info" %}
**Cell Segmentation** is a skippable step.
{% endhint %}

Cell segmentation is a key step in generating single-cell spatially resolved feature expression data.

<figure><img src="/files/k3lc0twb1zzDHp6B5EtS" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you upload the `.stereo` file in step 1, you can see the red outlines of the cells/nuclei on the registered microscope image.

For `.tar.gz` or `.tif/.tiff` image file, you will need to use tools to label cells.

Cell segmentation is applicable only within the tissue region. Therefore, the areas not encompassed in the Step 3 Tissue Segmentation will appear as a black background.

<img src="/files/YKmQx4Whzd7aru55EUuW" alt="" data-size="original">
{% endhint %}

Similar to **Step3 Tissue Segmentation**, you can edit a previously recorded mask ("RECORD") or create a new one ("CUSTOM") by selecting from the **Segmentation Mask** dropdown. Change the active mask by selecting from the **Segmentation mask** dropdown.

<figure><img src="/files/L1Ah53AqaWmNwzzjtbcq" alt=""><figcaption></figcaption></figure>

StereoMap offers three ways to refine your cell segmentation:

1. [**Import a Cell Segmentation Mask**](#import-a-cell-segmentation-mask)\
   Use third-party tools or algorithms to segment cells on your registered image and import the result for Stereo-seq analysis. This method is **best if you have high-quality segmentation results from third-party tools and want to seamlessly integrate them into your Stereo-seq analysis.** It is ideal for large datasets or when using advanced segmentation models.
2. [**Parameter-Adjustable Semi-Automatic Tool**](#parameter-adjustable-semi-automatic-tool)\
   This method allows you to apply automated segmentation across the entire tissue or within a selected region, with adjustable parameters for optimization. It is recommended when you **need a quick and efficient way to refine segmentation while maintaining flexibility**. This approach works well when the initial segmentation is decent but requires parameter tuning to improve accuracy, especially in cases with variable cell density.
3. [**Manual Refinement with Drawing Tools**](#manual-refinement-with-drawing-tools)\
   Using drawing tools like the **lasso, brush, and eraser** for precise manual cell segmentation adjustments. This method is most suitable for **precise corrections in small regions**, such as separating clustered cells, correcting segmentation errors, or handling complex regions where automated methods struggle. It is ideal for small datasets or cases requiring detailed, cell-by-cell refinement.

### Import a Cell Segmentation Mask

If you have already segmented cells using external tools, you can easily import the `.tif` format segmentation mask generated from the registered image and use it directly in your Stereo-seq analysis.

1. Click on the **Segmentation Mask** dropdown menu on the right panel.
2. Select **Add Mask** <img src="/files/bwJx0rgIN3S6O2VJY77e" alt="" data-size="original"> in the  **CUSTOM** category to import mask.
3. Navigate to your `.tif` binary mask file from your file system and click **Open** to import it.

If the imported result is unsatisfactory, you can replace it with a new mask

1. Click on the **Segmentation Mask** dropdown menu again.
2. Select the **option with** <img src="/files/VfMxQKPVHatNLHpHiQPS" alt="" data-size="original"> in the **CUSTOM** category to replace mask.
3. Navigate to your `.tif` binary mask file from your file system and click **Open** to import it.

<div><figure><img src="/files/8sZQMRfF6VBEU2kOECoM" alt=""><figcaption><p>Import cell mask</p></figcaption></figure> <figure><img src="/files/hkL8YABbrnKYXbol64xb" alt=""><figcaption><p>Show the file name of the imported mask</p></figcaption></figure> <figure><img src="/files/2QXGeWOqBpsj1ciL2oE1" alt=""><figcaption><p>Replace the mask</p></figcaption></figure></div>

### Parameter-Adjustable Semi-Automatic Tool

The [**parameter-adjustable semi-automatic tool**](/stereomap-user-manual-v4.2/tutorials/navigation-for-image-processing/parameter-adjustable-semi-automatic-tool.md) provides a balance between automation and control, allowing you to refine segmentation by adjusting key parameters to better fit your tissue sample.

1. Click on the **Automated Segmentation** dropdown menu on the right panel, and choose **Watershed**. Once selected, the **Box select** ![](/files/VZT2CW5Ym1hLSF5a4FpT) **mouse tool** will be activated and ready for use.

   <figure><img src="/files/boFW7OBYvpaeVZDSZsBW" alt=""><figcaption></figcaption></figure>
2. Use the **Box select** ![](/files/VZT2CW5Ym1hLSF5a4FpT) **mouse tool** to select your region of interest (ROI) area where you want to fine-tune the segmentation. This will trigger the **Watershed Parameters** settings dialog to pop up.

   <figure><img src="/files/APnVNT4Zd2A3yGOOrYX1" alt=""><figcaption></figcaption></figure>
3. In the pop-up **Watershed Parameters** settings dialog, modify key parameters to optimize segmentation for your ROI. Refer to [**Understanding Segmentation Parameters**](/stereomap-user-manual-v4.2/tutorials/navigation-for-image-processing/parameter-adjustable-semi-automatic-tool.md#understanding-segmentation-parameters) and [**Tips to Optimizing Segmentation Results**](/stereomap-user-manual-v4.2/tutorials/navigation-for-image-processing/parameter-adjustable-semi-automatic-tool.md#tips-to-optimizing-segmentation-results) for more information.

   <figure><img src="/files/0Bp7S9tTXoDzBvqDvYcF" alt=""><figcaption></figcaption></figure>
4. After adjusting the parameters, click **Apply** to implement the changes. Wait for the segmentation outcome to process and review the results.&#x20;

   <figure><img src="/files/dUebmIrrmMi1fFg2uxK4" alt=""><figcaption></figcaption></figure>
5. If you are satisfied with the segmentation of most cells, you can further refine any misclassified cells using the [**drawing tools**](#manual-refinement-with-drawing-tools) (lasso, brush, or eraser). Alternatively, if you're satisfied with the segmentation, click **Next** to proceed to the final step.

{% hint style="info" %}
Be aware that the automated tool **only updates the segmentation within your selected region**, so cells at the edges of the selection box will have **rigid boundaries**.&#x20;

To avoid this issue, you can either select the entire tissue region to ensure smooth segmentation across the tissue, or **use the drawing tools** to fix any misclassified cells while maintaining the accuracy of the rest of the segmentation.
{% endhint %}

### Manual Refinement with Drawing Tools

This method provides the highest level of precision, manually edit the segmentation using **Lasso** <img src="/files/XneuB0sqcRQ9IrN1RIcK" alt="" data-size="original">, **Brush** <img src="/files/xupjaBYFS02SkFFUymMI" alt="" data-size="original"> , and **Eraser** <img src="/files/HJfFirxVfmaaZNFrJWYO" alt="" data-size="original"> tools to fine-tune individual cell boundaries.

* **Lasso:** Best for deselecting large areas, such as the background.
* **Brush & Eraser:** Ideal for refining smaller areas, such as marking cells, or separating cell clusters.

<div><figure><img src="/files/czAB1OKK1jPn58Ur6pd0" alt=""><figcaption><p>Lasso to select a cell</p></figcaption></figure> <figure><img src="/files/OV6njRPKFTW9LphqGrjv" alt=""><figcaption><p>Lasso to deselect some cells</p></figcaption></figure></div>

<div><figure><img src="/files/mAG7lPS3Kjg3d4eNbPYh" alt=""><figcaption><p>Brush</p></figcaption></figure> <figure><img src="/files/juaDlQuyTGEdDWPi4bml" alt=""><figcaption><p>Eraser</p></figcaption></figure></div>

## Step 5: Export

The final step is to export the results of image registration, tissue segmentation, and cell segmentation. Click **Export image processing record** to generate a `.tar.gz` file.

<figure><img src="/files/HstfjZCNBGZxJrYp9VkI" alt=""><figcaption></figcaption></figure>

Click on the export will open your file system, and you will be allowed to select a saving path.

<div><figure><img src="/files/pbykpq5r865OlKvAI5q3" alt=""><figcaption></figcaption></figure> <figure><img src="/files/iZLFmoHWWnYsCuo5nts2" alt=""><figcaption></figcaption></figure></div>

There are two types of export files:

* **`*.tar.gz` File**: This file stores your original image along with all manual adjustments you made. It’s essential for SAW to combine sequencing data with image analysis. The internal structure of the `.tar.gz` is fixed, therefore to keep everything working smoothly, modifying it is not recommended.&#x20;
* **`*regist.tif` File**: If you manually adjusted the image alignment, this file will be saved in your output folder (or in the `/outs/` directory of SAW). The TIFF format makes it easy to use in third-party tools. This image has been cropped and resized to match the feature expression matrix dimensions, ensuring that any data generated from it using external tools can also be re-imported into StereoMap for further analysis.

<figure><img src="/files/Um8QsfaCMD13bBJWjD3U" alt=""><figcaption></figcaption></figure>

## Pass the TAR.GZ to SAW Pipeline

There are two options for transferring the output of Image Processing to SAW.

1. Using `--image-tar` in the `SAW count` Pipeline
   * This option is to use the `--image-tar` argument to feed the `.tar.gz` file into the `SAW count` pipeline
   * This will process the `.tar.gz` file along with the Stereo-seq FASTQ files.
   * The final output includes an HTML summary report with integrated sequencing and imaging data.

```bash
cd /saw/runs

saw count \
    --id=<ID> \
    --sn=<SN> \
    --omics=<OMICS> \
    --kit-version=<TEXT> \
    --sequencing-type=<TEXT> \
    --chip-mask=/path/to/chip/mask \
    --organism=<organism> \
    --tissue=<tissue> \
    --fastqs=/path/to/fastq/folders \
    --reference=/path/to/reference/folder \
    --image-tar=/path/to/image/tar
```

2. Using `--realigned-image-tar` in the `SAW realign` Pipeline
   * This option is to use the `--realigned-image-tar` argument to input the `.tar.gz` file into the `SAW realign` pipeline
   * `SAW realign` skips CID mapping and genome alignment.
   * It re-generates aligned images and extracts the feature expression matrix at both tissue and cell level
   * The pipeline produces an updated HTML report with refined segmentation and spatial expression data.

```bash
cd /saw/runs

saw realign \
    --id=<ID> \
    --sn=<SN> \
    --count-data=/path/to/previous/SAW/count/task/folder/id \
    --realigned-image-tar=/path/to/realigned/image/tar
```


---

# 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://stereotoolss-organization.gitbook.io/stereomap-user-manual-v4.2/tutorials/navigation-for-image-processing/nuclei-staining-image.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.
