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

# Sources

Sources in Hyperleap AI allow you to add business documents, websites, and text content to create contextually aware AI responses. Our advanced retrieval engine (RAG) automatically processes and indexes your content, ensuring your AI delivers accurate, relevant responses grounded in your business context.

## How Sources Work

Understand how Sources work in Hyperleap AI to power your AI interactions:

<CardGroup cols={2}>
  <Card title="Content Processing" icon="file-import">
    Upload your documents, add URLs, or input text. Our system automatically processes and indexes your content for optimal retrieval.
  </Card>

  <Card title="Smart Indexing" icon="brain">
    Advanced RAG (Retrieval Augmented Generation) technology analyzes and organizes your content for contextual understanding.
  </Card>

  <Card title="Contextual Retrieval" icon="magnifying-glass-chart">
    During AI interactions, relevant information is automatically retrieved and incorporated into responses.
  </Card>

  <Card title="Cross-Feature Integration" icon="arrows-to-circle">
    Sources work seamlessly across Prompts and Personas, maintaining consistency in all AI interactions.
  </Card>
</CardGroup>

## Supported Content Types

<AccordionGroup>
  <Accordion title="Documents">
    * PDF files
    * Word documents
    * Text files
    * Spreadsheets

    <Note>
      Maximum file size: 1MB per document for free tier. Higher limits available in paid plans - see [pricing](https://hyperleap.ai/pricing) for details.
    </Note>
  </Accordion>

  <Accordion title="Web Content">
    * Website URLs
    * Web pages
    * Online documentation
  </Accordion>

  <Accordion title="Direct Text">
    * Custom text input
    * Code snippets
    * Business rules
    * Product information
  </Accordion>
</AccordionGroup>

## Creating Sources

<Steps>
  <Step title="Create a Source">
    Navigate to the Sources section in your API-Console and click on the "Create Source" button.

    <Frame>
      <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/create-source.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=cb403e2d6947a4970c215e21693eefaa" alt="Create source" width="800" data-path="images/sources/create-source.png" />
    </Frame>
  </Step>

  <Step title="Add Content">
    Choose your content addition method:

    <Tabs>
      <Tab title="Upload Documents">
        Drag and drop files or use the file picker

        <Frame>
          <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/upload-doc.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=47ef224de44a8b9a8776b7560bf00eee" alt="Uploading documents" width="800" data-path="images/sources/upload-doc.png" />
        </Frame>

        <Frame>
          <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/configure-upload-doc.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=d9bbf85f9e02f88a9d2dcec0407ed758" alt="Configure details and upload document" width="800" data-path="images/sources/configure-upload-doc.png" />
        </Frame>
      </Tab>

      <Tab title="Add URLs">
        Enter website URLs to index web content

        <Frame>
          <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/add-website.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=1ef4012f2c6ae2d66f7532d1f9e1b138" alt="Adding website" width="800" data-path="images/sources/add-website.png" />
        </Frame>

        <Frame>
          <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/configure-add-website.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=3209b45526019ad2fd48005af4274e0d" alt="Configure details and add website" width="800" data-path="images/sources/configure-add-website.png" />
        </Frame>
      </Tab>

      <Tab title="Direct Input">
        Type or paste text content directly

        <Frame>
          <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/add-text.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=bb0ae093a988eff797e81e8ef23e4119" alt="Direct text input" width="800" data-path="images/sources/add-text.png" />
        </Frame>

        <Frame>
          <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/configure-add-text.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=f9ab99bdb0e634d3f0606aa2cb6d20e0" alt="Configure details and add text" width="800" data-path="images/sources/configure-add-text.png" />
        </Frame>
      </Tab>
    </Tabs>
  </Step>

  <Step title="Test Source Integration">
    Chat with your source to verify content understanding and relevance:

    <Tabs>
      <Tab title="Chat with Source">
        Test how your AI understands and uses the source content

        <Frame>
          <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/chat-source.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=a24e473b51ab1b38ca5782e4117aa532" alt="Chatting with source" width="800" data-path="images/sources/chat-source.png" />
        </Frame>

        <Frame>
          <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/ask-source.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=8cbd6e58806155dde1ca3fd86037aa2f" alt="Ask source" width="800" data-path="images/sources/ask-source.png" />
        </Frame>
      </Tab>

      <Tab title="Source Types">
        Test specific source types individually:

        * Documents
        * Website URLs
        * Text content

        <Frame>
          <img src="https://mintcdn.com/hyperleap/hVizvetMa1CprwXZ/images/sources/chat-source-type.png?fit=max&auto=format&n=hVizvetMa1CprwXZ&q=85&s=362b8543fd6ac68cdb871e2ad9730d4b" alt="Chat with individual source types" width="800" data-path="images/sources/chat-source-type.png" />
        </Frame>
      </Tab>
    </Tabs>

    <Note>
      Free plan users can create one source. [Upgrade your plan](https://hyperleap.ai/pricing) to create multiple sources and unlock advanced features.
    </Note>
  </Step>

  <Step title="Share and Use">
    Your source is now ready to power AI features across your workspace:

    <CardGroup cols={2}>
      <Card title="Attach to Features" icon="puzzle-piece">
        Add your Source to
        Prompts, Personas, Tools, Assistants.
      </Card>

      <Card title="Team Access" icon="users">
        All Workspace members can use Sources to
        Build AI features, Create conversations, Generate responses
      </Card>
    </CardGroup>

    <Note>
      Sources are accessible to all team members within your Workspace, ensuring uniform AI responses based on your organization's information.
    </Note>
  </Step>
</Steps>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Processing Issues">
    **Issue**: Content not being processed correctly

    **Solutions**:

    * Verify file format compatibility
    * Check file size limits
    * Ensure clean, readable content
    * Try breaking large files into smaller chunks
  </Accordion>

  <Accordion title="Retrieval Problems">
    **Issue**: AI not using source content effectively

    **Solutions**:

    * Review content organization
    * Try Re-Indexing the source
    * Verify content relevance
    * Test with specific queries
  </Accordion>

  <Accordion title="Integration Challenges">
    **Issue**: Sources not working with Prompts or Personas

    **Solutions**:

    * Review access permissions
    * Test in playground first
  </Accordion>
</AccordionGroup>

## Next Steps

<CardGroup cols={2}>
  <Card title="Create Prompts" icon="wand-magic-sparkles" href="/guides/prompts/prompts">
    Learn how to use Sources in your Prompts
  </Card>

  <Card title="Configure Personas" icon="user-gear" href="/guides/personas/personas">
    Add Sources to power your Personas
  </Card>
</CardGroup>

## Need Help?

* Check our [FAQ](/guides/faq)
* Contact [Support](mailto:support@hyperleap.ai)
