Local Files Connector
The local_files connector indexes documents from local folders.
Quick Start
hoard add ~/Documents/NotesOr configure manually in ~/.hoard/config.yaml:
connectors: local_files: enabled: true paths: - ~/Documents/NotesConfiguration Options
connectors: local_files: enabled: true
# Folders to scan (recursive) paths: - ~/Documents/Notes - ~/Documents/Projects
# File types to include include_extensions: - .md - .txt - .csv - .json - .yaml - .rst
# Chunking settings chunk_max_tokens: 400 chunk_overlap_tokens: 50Options Reference
| Option | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Enable connector |
paths | list | [] | Folders to scan recursively |
include_extensions | list | [".md", ".txt", ...] | File extensions to include |
chunk_max_tokens | int | 400 | Target chunk size in tokens |
chunk_overlap_tokens | int | 50 | Overlap between chunks |
Supported File Types
Default extensions:
.md— Markdown.txt— Plain text.csv— CSV data.json— JSON.yaml— YAML.rst— reStructuredText
Entity Identification
Each file becomes one entity:
| Field | Value |
|---|---|
source | local_files |
source_id | Absolute file path |
entity_type | document |
title | Filename (with extension) |
uri | file:///path/to/file.md |
tags | File extension (e.g., ["md"]) |
Chunking
Files are split into chunks using whitespace-based tokenization:
- Text is split into tokens using
\S+regex (non-whitespace sequences) - Chunks target
chunk_max_tokenstokens - Adjacent chunks overlap by
chunk_overlap_tokenstokens
Examples
Single Notes Folder
local_files: enabled: true paths: - ~/Documents/Notes include_extensions: - .md - .txtMultiple Folders
local_files: enabled: true paths: - ~/Documents/Notes - ~/Documents/Projects - ~/Desktop include_extensions: - .md - .txt - .csvPerformance Tips
- Be specific — Index targeted folders, not all of
~/Documents - Limit extensions — Only include types you’ll search
- Check sync times — Run
hoard connectors status
Troubleshooting
Files Not Indexed
- Check
include_extensionsincludes the file type - Check path is in
pathslist - Run
hoard doctorfor diagnostics
Sync Too Slow
- Reduce number of paths
- Narrow down file extensions
See Also
- Obsidian Connector — For Obsidian vaults
- Chunking — How chunking works
hoard add— Quick add command