43 lines
816 B
Markdown
43 lines
816 B
Markdown
# Configuration
|
|
|
|
Configuration is done through environment variables.
|
|
|
|
## File Monitoring
|
|
|
|
Set directories to monitor for automatic indexing:
|
|
|
|
```bash
|
|
# Monitor single directory
|
|
export MONITOR_DIRECTORIES="/path/to/documents"
|
|
|
|
# Monitor multiple directories
|
|
export MONITOR_DIRECTORIES="/path/to/documents,/another_path/to/documents"
|
|
```
|
|
|
|
## Embedding Providers
|
|
|
|
### Ollama (Default)
|
|
|
|
```bash
|
|
EMBEDDINGS_PROVIDER="ollama"
|
|
EMBEDDINGS_MODEL="mxbai-embed-large"
|
|
EMBEDDINGS_VECTOR_DIM=1024
|
|
```
|
|
|
|
### VoyageAI
|
|
|
|
```bash
|
|
EMBEDDINGS_PROVIDER="voyageai"
|
|
EMBEDDINGS_MODEL="voyage-3.5"
|
|
EMBEDDINGS_VECTOR_DIM=1024
|
|
VOYAGE_API_KEY="your-api-key"
|
|
```
|
|
|
|
### OpenAI
|
|
|
|
```bash
|
|
EMBEDDINGS_PROVIDER="openai"
|
|
EMBEDDINGS_MODEL="text-embedding-3-small" # or text-embedding-3-large
|
|
EMBEDDINGS_VECTOR_DIM=1536
|
|
OPENAI_API_KEY="your-api-key"
|
|
```
|