> ## Documentation Index
> Fetch the complete documentation index at: https://botpress-pb-update-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Knowledge Base Optimizer

The official Knowledge Base Optimizer integration improves your bot's ability to respond to questions using information contained in your Knowledge Base.

## Setup

<Info>
  You will need:

  * A [published bot](/get-started/quick-start)
</Info>

<Steps>
  <Step>In Botpress Studio, select **Explore Hub** in the upper-right corner.</Step>
  <Step>Search for the **Knowledge Base Optimizer** integration, then select **Install Integration**.</Step>
  <Step>In the **Configuration** menu, select **Save Configuration**.</Step>
</Steps>

## Optimize

Now you can select <Icon icon="wand-sparkles" /> **Auto-optimize** on any of your Knowledge Bases:

<Frame>
  <img alt="Auto-optimize" className="block dark:hidden" src="https://mintcdn.com/botpress-pb-update-api/Uey_w5vQL4rt15QC/integrations/integration-guides/assets/auto-optimize.png?fit=max&auto=format&n=Uey_w5vQL4rt15QC&q=85&s=f06a7b59a154d83120b6f3a2d77c597c" width="1338" height="100" data-path="integrations/integration-guides/assets/auto-optimize.png" />

  <img alt="Auto-optimize" className="hidden dark:block" src="https://mintcdn.com/botpress-pb-update-api/Uey_w5vQL4rt15QC/integrations/integration-guides/assets/auto-optimize-dark.png?fit=max&auto=format&n=Uey_w5vQL4rt15QC&q=85&s=baa6dfa0c939db598b31216838ccc85e" width="1338" height="100" data-path="integrations/integration-guides/assets/auto-optimize-dark.png" />
</Frame>

This improves your bot's ability to respond to queries with the information contained in your Knowledge Bases.

## How it works

The Knowledge Base Optimizer analyzes each document in your Knowledge Base with AI. It then automatically generates smart summaries for every file and creates an overall summary for the entire Knowledge Base.

When your bot gets a question, it uses these summaries—along with the full content—to quickly find and deliver more relevant, accurate answers from your Knowledge Base.
