> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lindy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Knowledge Base

<div style={{ display: 'flex', justifyContent: 'center', margin: '2rem 0' }}>
  <div className="video-card">
    <video src="https://lindy-docs-content.nyc3.digitaloceanspaces.com/Knowledge%20Base.mp4" width="600" autoPlay muted loop playsInline style={{ display: 'block', width: '100%', borderRadius: '16px' }} />
  </div>
</div>

## Quick Overview

Knowledge bases let your agents access information from multiple sources like files, websites, and cloud storage. When your agent needs information, it searches through all your content using both semantic understanding and keyword matching to find relevant answers.

This is perfect for customer support bots that need to reference documentation, or any workflow where your agent needs to pull information from a large collection of content.

<Note>
  For small datasets (single Google Doc or Sheet), use direct actions like Get Document or Get Spreadsheet for better performance.
</Note>

## How Search Works

### Semantic Search

Matches meaning rather than exact words. Understands context and finds related concepts.

* Query: "dark colored jeans"
* Finds: "black and navy denim pants"

### Keyword Search

Matches exact words in your query. Useful for precise matching of specific terms.

* Query: "invoice #12345"
* Finds: Exact invoice number

## Adding a Knowledge Base

Click the plus button in your workflow and select "Search knowledge base".

<Frame>
  <img src="https://mintcdn.com/lindyai/D9TqHMLRoGnnvrcz/lindy-brand-assets/add-KB.png?fit=max&auto=format&n=D9TqHMLRoGnnvrcz&q=85&s=d6be83211cdb615fb807e1254a5fe9a3" alt="IMAGE NEEDED: Screenshot showing the Add Step menu with 'Search knowledge base' option highlighted" width="1124" height="688" data-path="lindy-brand-assets/add-KB.png" />
</Frame>

### Selecting Content Sources

<Frame>
  <img src="https://mintcdn.com/lindyai/XRHjWZiSf5VPQvY1/lindy-brand-assets/kb-select-content-sources.png?fit=max&auto=format&n=XRHjWZiSf5VPQvY1&q=85&s=29c0e62b7552d91ddac5d574b9f3e8de" alt="IMAGE NEEDED: Screenshot of the content source selection modal showing Files, Text, Website, Google Drive, OneDrive, Dropbox, Notion, and Freshdesk options" width="1082" height="770" data-path="lindy-brand-assets/kb-select-content-sources.png" />
</Frame>

Choose from multiple content types:

**Files**

* Supports: PDF, XLSX, CSV, DOCX, TXT, HTML
* Maximum: 20MB per file
* Audio files supported

**Text**

* Free-form text input
* Ideal for FAQs and reference content
* No formatting requirements

**Websites**

* Single page or full site crawling
* Selective page removal
* Automatic link following

**Cloud Storage**

* Google Drive, OneDrive, Dropbox
* Notion databases
* Freshdesk tickets

## Configuring Search

<Frame>
  <img src="https://mintcdn.com/lindyai/XRHjWZiSf5VPQvY1/lindy-brand-assets/kb-search-configuration.png?fit=max&auto=format&n=XRHjWZiSf5VPQvY1&q=85&s=4590564a1c29a90cb4526ff5fbd90fe4" alt="IMAGE NEEDED: Screenshot of Search Knowledge Base configuration showing Query field, Max Results, and Search Fuzziness settings" width="1378" height="1338" data-path="lindy-brand-assets/kb-search-configuration.png" />
</Frame>

### Query Field

Instructions for what to search in the knowledge base.

**Mode options:**

* **Auto** — Your agent determines the optimal query
* **Prompt AI** - Custom search instructions
* **Set Manually** - Use exact search query (no AI)

Example: `Search for the answer to the user's question in the email`

### Max Results

Number of results returned per query.

* Default: 4 results
* Maximum: 10 results
* Increase for frequently mentioned topics

### Search Fuzziness

Balance between semantic and keyword search (0-100 scale).

* **0** - Pure keyword matching
* **100** - Pure semantic search (default)
* Lower values emphasize exact matches

<Tip>
  Keep fuzziness at 100 to avoid the 1,500 file limit. Lower values restrict search to first 1,500 files only.
</Tip>

## Managing Your Knowledge Base

Your knowledge base stays current through automatic and manual updates:

* **Automatic updates**: Content refreshes every 24 hours automatically
* **Manual updates**: For immediate updates, use Resync Knowledge Base actions to update the entire knowledge base or specific entries when needed

<Frame>
  <img src="https://mintcdn.com/lindyai/XRHjWZiSf5VPQvY1/lindy-brand-assets/kb-resync-actions.png?fit=max&auto=format&n=XRHjWZiSf5VPQvY1&q=85&s=2447642f93365dca3c15c6d80f4d75bb" alt="IMAGE NEEDED: Screenshot showing Resync Knowledge Base actions in the action menu" width="1066" height="654" data-path="lindy-brand-assets/kb-resync-actions.png" />
</Frame>

## Best Practices

* **Organize content** - Group similar information and remove duplicates
* **Test queries** - Try different searches and adjust fuzziness for accuracy
* **Update regularly** - Keep content current with manual resyncs when needed
* **Start simple** - Begin with fewer sources and expand as needed

## Common Use Cases

<AccordionGroup>
  <Accordion title="Customer Support Bot">
    * **Content**: FAQs, product docs, support articles
    * **Settings**: High semantic search (100)
    * **Results**: 4-6 max results
  </Accordion>

  <Accordion title="Email Responder">
    * **Content**: Templates, documentation, policies
    * **Settings**: Balanced search (70-80)
    * **Results**: 4 max results
  </Accordion>

  <Accordion title="Meeting Assistant">
    * **Content**: Transcripts, project docs, resources
    * **Settings**: High semantic search (100)
    * **Results**: 6-8 max results
  </Accordion>

  <Accordion title="Document Query Tool">
    * **Content**: Mixed files, cloud storage, websites
    * **Settings**: Flexible based on content
    * **Results**: 10 max results
  </Accordion>
</AccordionGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Irrelevant Results">
    * Lower search fuzziness for more exact matching
    * Organize content into clearer categories
    * Use more specific search queries
  </Accordion>

  <Accordion title="Missing Information">
    * Check sync status of your sources
    * Try exact keyword search (fuzziness near 0)
    * Verify content is in supported formats
  </Accordion>

  <Accordion title="Slow Performance">
    * Reduce number of content sources
    * Use direct actions for single documents
    * Lower max results if not needed
  </Accordion>
</AccordionGroup>

<Warning>
  Pro users have 20M character limit. Monitor usage to avoid hitting storage limits.
</Warning>

## Next Steps

Enhance your knowledge base workflows with these concepts:

<CardGroup cols={2}>
  <Card title="Actions" href="/fundamentals/lindy-101/actions" icon="arrow-pointer">
    Combine knowledge search with other actions
  </Card>

  <Card title="Conditions" href="/fundamentals/lindy-101/conditions" icon="network-wired">
    Route workflows based on search results
  </Card>

  <Card title="Memory" href="/fundamentals/lindy-101/memory" icon="database">
    Store important findings for future use
  </Card>

  <Card title="Agent Steps" href="/fundamentals/lindy-101/ai-agents" icon="brain-circuit">
    Let agents intelligently use knowledge bases
  </Card>
</CardGroup>
