Skip to content

AI and OCR

Aulteran edited this page Nov 6, 2026 · 2 revisions

FileCanopy works completely without AI. Nothing in this page is needed for files, sharing, search by name, or backups. AI and OCR are optional, and an outage in them never blocks basic file management.

Privacy rules that always apply

  • Private and Confidential content never goes to cloud AI, including extracted text and vectors.
  • Sending Normal files to a cloud provider requires an explicit administrator setting and a recorded consent.
  • AI never changes permissions, deletes things, downgrades privacy, creates collections or splits PDFs without your approval.
  • AI output is treated as a proposal. It is validated before it is applied.

Cloud providers

Anthropic, OpenAI and Gemini are supported through their official API keys. A chat subscription is not an API key.

  • Store keys only after setting FILECANOPY_SECRETS_KEY. Without it cloud keys cannot be stored, but local providers still work.
  • Enter the prices per million tokens from the provider's price page. FileCanopy ships no price table.
  • Set a monthly dollar cap. A usage ledger records calls.

Tests never make live paid API calls.

Local providers

Ollama or an OpenAI-compatible server (for example llama.cpp) can run on your network.

  • The address must resolve to loopback or private addresses. Public, link-local and cloud-metadata addresses are refused.
  • To name hosts explicitly, set FILECANOPY_AI_LOCAL_HOSTS in .env. Only listed hosts are accepted then.

Features

Feature What it does Notes
Organisation suggestions Proposes names and folders Each change needs your approval
PDF split and duplicates Proposes splits and flags duplicate pages Splits need approval; the source file is kept
Collections Suggests collections Collections are references to files, not copies
Document chat Single-turn questions with file citations No page numbers, no multi-turn conversation
Meaning-based search Local embeddings in the database Administrator connects an embedding server in the app (Account > AI > Meaning-based search). Nothing runs until then
MCP interface Read-only tools for MCP clients Off by default (FILECANOPY_MCP_ENABLED=true). Clients may forward data to their own providers

OCR

OCR makes scanned PDFs and pictures searchable. It runs in a sealed container with no network access.

  1. In .env, set:
    COMPOSE_PROFILES=ocr
    FILECANOPY_OCR_URL=unix:///run/ocr/ocr.sock
  2. Start the stack again: docker compose up -d --wait.
  3. Keep FILECANOPY_SEARCH_ENABLED=true for text search.

Limits: FILECANOPY_OCR_TIMEOUT_SECONDS (120 by default) and FILECANOPY_OCR_MAX_BYTES (50 MiB by default).

Office previews

Office previews use the sealed converter. Set COMPOSE_PROFILES=converter and FILECANOPY_CONVERTER_URL=unix:///run/converter/converter.sock, then restart.

Turning AI on

Leave AI off during the first setup. When you are ready, sign in as the administrator and open the AI settings in the app. Each feature has its own switch.

Clone this wiki locally