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

# Document Context

> Using documents to enhance responses

## Overview

Olis can use documents from a configured folder to provide contextual, informed responses to your queries.

## Supported Formats

<CardGroup cols={4}>
  <Card title="Text" icon="file-lines">
    `.txt` files
  </Card>

  <Card title="Markdown" icon="markdown">
    `.md` files
  </Card>

  <Card title="JSON" icon="file-code">
    `.json` files
  </Card>

  <Card title="CSV" icon="table">
    `.csv` files
  </Card>
</CardGroup>

## Configuration

Set the document folder in your environment:

```bash theme={null}
# Windows
OLIS_DOCS_FOLDER=C:\Users\YourName\Documents\olis-docs

# macOS/Linux
OLIS_DOCS_FOLDER=/Users/yourname/Documents/olis-docs
```

## How It Works

1. Documents are indexed on startup
2. When you ask a question, relevant documents are retrieved
3. Document content is used to enhance the response
4. Citations are provided when available

## Best Practices

* Organize documents in logical folders
* Use descriptive filenames
* Keep documents updated
* Remove irrelevant documents

## Next Steps

<CardGroup cols={2}>
  <Card title="Intent Detection" icon="lightbulb" href="/features/intent-detection">
    Learn about intent detection
  </Card>

  <Card title="Integrations" icon="plug" href="/features/integrations">
    Explore integrations
  </Card>
</CardGroup>
