# 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](https://docs.aisera.com/aisera-platform/integrations-and-data-sources/creating-a-connector/adding-and-managing-data-sources-in-your-tenant#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](https://docs.aisera.com/aisera-platform/adding-data-to-your-tenant/data-ingestion/optimizing-documents-for-rag-indexing/how-to-optimize-documents).
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.
