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

# Knowledge Base

> Enhance AI conversations with custom knowledge and file integration

<Frame>
  <img src="https://mintcdn.com/taamai-c8c27d6c/7tpU7wOp-rlopJuB/images/playground/kb-chat-access.png?fit=max&auto=format&n=7tpU7wOp-rlopJuB&q=85&s=64220b1fa8ab0d9e4ee44ecdc0a54660" alt="Gately AI Knowledge Base" width="2880" height="1620" data-path="images/playground/kb-chat-access.png" />
</Frame>

## Overview

<Info>
  Gately AI's knowledge base feature enables intelligent conversations with your uploaded files and custom knowledge sources.
</Info>

## Creating a Knowledge Base

<Steps>
  <Step title="Navigate to Files" icon="folder">
    1. Go to [Playground](https://app.gately.ai/dashboard/playground)
    2. Click Files icon in the side menu

    <Frame>
      <img src="https://mintcdn.com/taamai-c8c27d6c/7tpU7wOp-rlopJuB/images/playground/kb-files-menu.png?fit=max&auto=format&n=7tpU7wOp-rlopJuB&q=85&s=68457bb5739efb30115f9985e30167a7" alt="Files Menu Access" width="2880" height="1620" data-path="images/playground/kb-files-menu.png" />
    </Frame>
  </Step>

  <Step title="Create New Base" icon="plus">
    1. Click the Add icon (+)
    2. Select "New Knowledge Base"

    <Frame>
      <img src="https://mintcdn.com/taamai-c8c27d6c/7tpU7wOp-rlopJuB/images/playground/kb-create-new.png?fit=max&auto=format&n=7tpU7wOp-rlopJuB&q=85&s=a3c6fb9dfd4bb70ad7798c46934baa64" alt="Create Knowledge Base" width="2880" height="2160" data-path="images/playground/kb-create-new.png" />
    </Frame>
  </Step>

  <Step title="Configure Base" icon="gear">
    1. Enter knowledge base name
    2. Add description (optional)
    3. Click Create button

    <Frame>
      <img src="https://mintcdn.com/taamai-c8c27d6c/7tpU7wOp-rlopJuB/images/playground/kb-configure.png?fit=max&auto=format&n=7tpU7wOp-rlopJuB&q=85&s=890a71a9c3b772e985df05cb64a81e08" alt="Configure Knowledge Base" width="2880" height="2160" data-path="images/playground/kb-configure.png" />
    </Frame>
  </Step>

  <Step title="Upload Content" icon="upload">
    1. Open the new knowledge base
    2. Click Upload or drag files
    3. Select files or folders to add

    <Frame>
      <img src="https://mintcdn.com/taamai-c8c27d6c/7tpU7wOp-rlopJuB/images/playground/kb-upload.jpg?fit=max&auto=format&n=7tpU7wOp-rlopJuB&q=85&s=5e3b16fad91dda521eec0f21b06bee53" alt="Upload Files" width="1920" height="1080" data-path="images/playground/kb-upload.jpg" />
    </Frame>
  </Step>

  <Step title="Process Files" icon="gears">
    1. Wait for processing
    2. Review uploaded files
    3. Check indexing status

    <Frame>
      <img src="https://mintcdn.com/taamai-c8c27d6c/7tpU7wOp-rlopJuB/images/playground/kb-processing.png?fit=max&auto=format&n=7tpU7wOp-rlopJuB&q=85&s=69e45d6110db5973a749c1167ad90dc1" alt="File Processing" width="2880" height="1620" data-path="images/playground/kb-processing.png" />
    </Frame>
  </Step>
</Steps>

## File Management

<AccordionGroup>
  <Accordion title="Supported File Types" icon="files">
    <CardGroup cols={3}>
      <Card title="Documents" icon="file-lines">
        * PDF
        * Word
        * Excel
        * PowerPoint
        * Text files
      </Card>

      <Card title="Media" icon="photo-film">
        * Images
        * Audio files
        * Video files
      </Card>

      <Card title="Code" icon="code">
        * Source files
        * Documentation
        * Configurations
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="File Operations" icon="folder-gear">
    * Multi-select files
    * Batch delete
    * Copy file links
    * Online preview
    * File sharing
  </Accordion>
</AccordionGroup>

## File Preview

<Steps>
  <Step title="Access File Preview" icon="eye">
    Preview supported files directly in the interface:

    <Frame>
      <img src="https://mintcdn.com/taamai-c8c27d6c/7tpU7wOp-rlopJuB/images/playground/file-preview.png?fit=max&auto=format&n=7tpU7wOp-rlopJuB&q=85&s=bc416a634d97cea08f2901134d1802b2" alt="File Preview Interface" width="2880" height="1620" data-path="images/playground/file-preview.png" />
    </Frame>
  </Step>

  <Step title="Supported Formats" icon="file-circle-check">
    * PDF documents
    * Excel spreadsheets
    * Word documents
    * PowerPoint presentations
    * Plain text files
  </Step>
</Steps>

## File Processing

<AccordionGroup>
  <Accordion title="Chunking Process" icon="puzzle-piece">
    Documents are split into segments for optimal processing:

    * Semantic boundaries
    * Size optimization
    * Structure preservation
  </Accordion>

  <Accordion title="Embedding Generation" icon="network-wired">
    Text segments are converted to vector embeddings:

    * Semantic encoding
    * Search optimization
    * Context preservation
  </Accordion>
</AccordionGroup>

## Using Your Knowledge Base

<Steps>
  <Step title="Access in Chat" icon="messages">
    1. Return to chat interface
    2. Click knowledge base icon
    3. Select your base from list

    <Frame>
      <img src="https://mintcdn.com/taamai-c8c27d6c/7tpU7wOp-rlopJuB/images/playground/kb-chat-access.png?fit=max&auto=format&n=7tpU7wOp-rlopJuB&q=85&s=64220b1fa8ab0d9e4ee44ecdc0a54660" alt="Access in Chat" width="2880" height="1620" data-path="images/playground/kb-chat-access.png" />
    </Frame>
  </Step>

  <Step title="Query Content" icon="search">
    1. Type your questions
    2. AI references your files
    3. Get contextual responses
  </Step>
</Steps>

<Note>
  The AI will now include information from your knowledge base when responding to relevant queries.
</Note>

## Future Enhancements

<CardGroup cols={2}>
  <Card title="Audio Processing" icon="waveform">
    * Speech-to-text conversion
    * Audio content analysis
    * Transcript generation
  </Card>

  <Card title="Visual Understanding" icon="image">
    * Image content extraction
    * Visual context analysis
    * Multi-modal integration
  </Card>
</CardGroup>

<Warning>
  Knowledge base processing may affect credit consumption based on file size and complexity.
</Warning>

## Next Steps

<CardGroup cols={3}>
  <Card title="Upload Files" icon="upload" href="https://app.gately.ai/dashboard/playground">
    Start adding your documents
  </Card>

  <Card title="Create Base" icon="database" href="https://app.gately.ai/dashboard/playground">
    Set up your knowledge base
  </Card>

  <Card title="Try Chat" icon="messages" href="/playground/chat-interface">
    Test with your content
  </Card>
</CardGroup>
