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

# Manage Document Chunks

> Learn how to manage and enhance document chunks for improved knowledge base performance

## Understanding Document Chunks

When you upload a document to your knowledge base, the system automatically divides it into smaller segments called "chunks." This chunking process is crucial for:

* **Improved LLM Processing**: Allows large language models to process manageable portions of text.
* **Enhanced Retrieval**: Enables more precise information retrieval by pinpointing relevant sections.
* **Optimized Performance**: Reduces computational load and improves response times.

## Accessing Document Chunks

<Steps>
  <Step title="Navigate to Knowledge">
    Go to the Knowledge section in the main navigation menu.
  </Step>

  <Step title="Select Knowledge Base">
    Choose the specific knowledge base containing your document.
  </Step>

  <Step title="Open Document">
    Click on the document you want to manage to view its chunks.
  </Step>

  <Step title="View Chunks">
    <img src="https://mintcdn.com/rapidaai/iFtJHOhZE0HHFT_Q/images/knowledge/chunk-list.png?fit=max&auto=format&n=iFtJHOhZE0HHFT_Q&q=85&s=ae74fdb4faa5aa35e419612059681a4c" alt="Fields for segment" width="3600" height="2022" data-path="images/knowledge/chunk-list.png" /> You'll see a list of
    chunks derived from the original document.
  </Step>
</Steps>

## Enhancing Document Chunks

Improve the quality of your chunks for better matching by enriching their metadata:

<Steps>
  <Step title="Open Chunk Editor">
    <img src="https://mintcdn.com/rapidaai/7mEgTVtO8_sF7q8D/images/knowledge/edit-chunk.png?fit=max&auto=format&n=7mEgTVtO8_sF7q8D&q=85&s=eda49de2976f07370971eefabf3e640c" alt="Fields for segment" width="3600" height="2024" data-path="images/knowledge/edit-chunk.png" />

    Click on a specific chunk to open the editing interface.
  </Step>

  <Step title="Review Fields">
    Examine the automatically generated metadata fields.
  </Step>

  <Step title="Modify Information">
    Update or add details to enhance searchability and context.
  </Step>

  <Step title="Save Changes">
    Click "Update document" to apply your modifications.
  </Step>
</Steps>

### Metadata Fields

<AccordionGroup>
  <Accordion title="Document Name" icon="file">
    The title or identifier for this chunk
  </Accordion>

  <Accordion title="Organizations" icon="building">
    Relevant company or group names
  </Accordion>

  <Accordion title="Dates" icon="calendar">
    Important dates mentioned in the content
  </Accordion>

  <Accordion title="Products" icon="box">
    Product names or types discussed
  </Accordion>

  <Accordion title="Events" icon="star">
    Significant events referenced
  </Accordion>

  <Accordion title="Industries" icon="factory">
    Related industry sectors
  </Accordion>

  <Accordion title="Locations" icon="map-pin">
    Geographic locations mentioned
  </Accordion>

  <Accordion title="People" icon="user">
    Names of individuals relevant to the content
  </Accordion>
</AccordionGroup>

## Search Types

When querying your knowledge base, you can utilize different search methods:

<CardGroup cols={3}>
  <Card title="Hybrid Search" icon="zoom-in">
    Combines semantic understanding with keyword matching. Ideal for balancing
    context-aware results with exact matches.
  </Card>

  <Card title="Full Text Search" icon="type">
    Focuses on exact keyword matches within the text. Best for finding specific
    terms or phrases.
  </Card>

  <Card title="Semantic Search" icon="brain">
    Emphasizes understanding the meaning and context of the query. Excellent for
    natural language queries and user intent.
  </Card>
</CardGroup>

Choose the search type that best fits your specific use case and the nature of your queries to optimize your knowledge base performance.
