> For the complete documentation index, see [llms.txt](https://docs.aisera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aisera.com/aisera-platform/adding-data-to-your-tenant/data-ingestion/optimizing-documents-for-rag-indexing/re-indexing-and-testing-after-optimization.md).

# Re-indexing and Testing After Optimization

Once you have optimized your documents, the next step is to re-ingest them into the Aisera Gen AI platform and test the output. The following steps walk you through that process.

### Re-indexing Your Documents

1. Verify that the Data Source containing your optimized documents is integrated with your tenant.&#x20;
2. If you want to apply a template to your documents during ingestion, add the template under the **Templates** section of the [Data Source configuration](/aisera-platform/adding-data-to-your-tenant/integrations-and-data-sources/creating-a-connector/adding-and-managing-data-sources-in-your-tenant.md#editing-a-data-source).
3. Verify that the integrated Data Source has been added to your bot.
4. Navigate to **Settings > System Jobs > Generic Jobs** in the Aisera Admin UI.
5. Select **+ New Job**
6. Select **Neural Search RAG Indexer** as the job to create.
7. Select the bot the optimized Data Source is attached to under **bot-id**.
8. Input the Data Source ID of the optimized Data Source for **data-sources**.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>You can retrieve the Data Source ID by navigating to <strong>Settings > Data Sources > {your_optimized_data_source}</strong> and locating the <strong>ID</strong> on the right side of the <strong>Data Source Details</strong> screen.</p></div>
9. Select **OK** to create the job.

The job will appear under the jobs list with a status. Once the job has completed the newly ingested data can be observed.

### Testing and Iterating

1. Run your application or bot and test whether the answers are accurate.
2. If results are still poor, return to your documents and apply additional optimization. For guidance, see [How to Optimize Documents and When to Optimize Documents](/aisera-platform/adding-data-to-your-tenant/data-ingestion/optimizing-documents-for-rag-indexing/how-to-optimize-documents.md).
3. After optimizing your documents, [re-index your data](#re-indexing-your-documents).
4. Repeat steps 2 and 3 until you are satisfied with the results.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.aisera.com/aisera-platform/adding-data-to-your-tenant/data-ingestion/optimizing-documents-for-rag-indexing/re-indexing-and-testing-after-optimization.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.
