Build a knowledge base
End-to-end guide: centralize documents from multiple sources, enable hybrid search, and keep content fresh.
Build an internal knowledge base that lets your team search and ask questions across all your documentation — Notion pages, Confluence wikis, Google Docs, and PDFs — from a single interface.
Prerequisites
- A MemoryKit API key (get one here)
- Node.js 18+ or Python 3.8+
- Documents to ingest (any format: PDF, DOCX, XLSX, TXT, Markdown, HTML)
Step 1: Ingest documents from multiple sources
Tag each document with its source so you can filter later.
Step 2: Build the search API
Hybrid search returns ranked results. Feed these into your own LLM if you need answer generation.
Step 3: Filter by team or source
Use tags and type filters to scope queries to specific teams or document sources.
Step 4: Keep content fresh
Set up a sync pipeline that re-ingests updated documents. Use reprocess when content changes without re-uploading.
Use webhooks to get notified when reprocessing completes: listen for memory.completed events.
Summary
| What | How |
|---|---|
| Ingest text | batchIngest() with source metadata |
| Ingest files | upload() for PDF, DOCX, XLSX |
| Search | search() — ranked results with relevance scores |
| Filter by team | tags and created_after / created_before params |
| Keep fresh | update() + reprocess() on schedule |
Key features used: Batch ingest, File upload, Search, Reprocess