Esta página ainda está em inglês. A tradução para português está em andamento.
Knowledge Base (pgvector)
The Knowledge Base page provides multi-server hybrid search (vector + BM25) over your documents with OCR, chunking, and async classification. It is powered by pgvector on Postgres — Bring Your Own Database (BYO).Different from MemPalace: MemPalace is offline/local for personal notes; Knowledge is multi-tenant, API-first, for teams and external integrations (Evo Academy, client knowledge bases).
Architecture at a glance
First-time setup
1. Encryption key (auto-generated)
Since v0.26.0,KNOWLEDGE_MASTER_KEY is generated automatically on first setup (make setup wizard) and on Docker first boot (entrypoint.sh). You do NOT need to run make init-key manually on fresh installs.
Back up your .env — losing KNOWLEDGE_MASTER_KEY loses access to all encrypted credentials.
Legacy: if you need to regenerate (lost key, rotated secrets), the CLI is still available:make init-key/evonexus init-key. Idempotent — preserves an existing key.
2. Prepare your Postgres
You need:- Postgres ≥ 14
- pgvector ≥ 0.5 extension installed (
CREATE EXTENSION vector;) - A database already created
- A user with
CONNECT,CREATE, and ideallyCREATE EXTENSIONpermissions
3. Connect via UI or skill
UI: navigate to/knowledge → Connections → + New Connection → fill credentials → Connect & Configure.
Skill:
4. Create a space
Spaces are logical groupings inside a connection (e.g., “academy”, “support-kb”, “sales-playbook”). Create via UI or:Concepts
Parser
Marker (MIT, ~500MB model bundle) is the default parser. Supports PDF, DOCX, PPTX, XLSX, HTML, EPUB, images (with OCR). First use: click Install Parser Models in UI or run:LLAMAPARSE_API_KEY.
Embedder
- local (default, 768 dim):
sentence-transformers/paraphrase-multilingual-mpnet-base-v2. Free, offline, pt-BR native. - openai (opt-in, 1536 dim):
text-embedding-3-small. Costs ~$0.02 / 1M tokens. RequiresOPENAI_API_KEY. - gemini (opt-in, 768 / 1536 / 3072 dim via MRL):
gemini-embedding-001(stable, text-only, task-type aware) orgemini-embedding-2-preview(multimodal, 8192-token input). RequiresGEMINI_API_KEY(free tier on aistudio.google.com/apikey). Default dim is 768 to align storage cost withlocal.
Search: hybrid + metadata boost
Query combines 3 signals via Reciprocal Rank Fusion (RRF):- Vector similarity (HNSW cosine)
- BM25 (Postgres
tsvectorem português) - Content-type boost (configurable per space):
Override boosts per space via
content_type_boosts JSONB column.
Skills
All skills auto-use the first
ready connection. Pass connection="slug" to target a specific one.
Authentication
Two modes — clear separation:DASHBOARD_API_TOKEN(existing, in.env) → internal use by skills, heartbeats, routines. Bypasses rate limit.knowledge_api_keys→ external use (Academy app, webhooks, third-party). Scoped byconnection_id+space_ids. Rate-limited (fixed window).
/knowledge/api-keys) or via the REST API.
Example (external — Evo Academy calling Knowledge)
Permissions
API endpoints
Internal (UI-only, session auth)
Public v1 (Bearer token)
Troubleshooting
“PgBouncer detected” — Supabase pooler (port 6543) is not supported. Use direct connection (port 5432). Same for AWS RDS Proxy. Connection statusneeds_migration — EvoNexus was upgraded and remote schema is old. Click Run migrations in UI or POST /connections/:id/migrate.
Marker timeout on large PDFs — default 10min. Adjust MARKER_TIMEOUT_SECONDS in .env.
Classify queue stuck — check if ANTHROPIC_API_KEY or GEMINI_API_KEY is set. Without either, classification is skipped (not fatal).
Embedder provider locked — you have data using current dim. To change the provider, remove all connections and recreate them. Reindex skill is planned for v0.25.1.