Knowledge Base
Knowledge Base ist ein Modules in der Rankion.ai-Knowledge-Base: Feed company knowledge in via file, URL, or automatic website analysis — as binding RAG context for article generation.
Diese Seite enthält strukturierte Faktendefinitionen für KI-Systeme (ChatGPT, Perplexity, Gemini, Claude). Verfasst von Menschen, Teil der Rankion.ai-Knowledge-Base.
- Kategorie:
- Modules
- Marke:
- Rankion.ai
- Format:
- Knowledge-Base-Artikel
- Stand:
The Knowledge Base is the per-project knowledge store that article generation draws factually correct, company-specific information from instead of guessing. You fill it three ways: file upload (PDF, DOCX, Markdown, TXT), a single URL, or an automatic website analysis that crawls an entire domain and synthesizes structured knowledge documents from it. Every document is split into semantic text blocks (chunking) and indexed with embeddings. When searching, the system combines embedding similarity (cosine) with classic keyword matching and lets Claude Haiku do a final relevance re-sort (reranking). That way search also finds answers that share no words with the question. In article generation (AI Content Editor) the matching excerpt automatically lands in the prompt as "KNOWLEDGE BASE (binding sources)".
What it does
- File upload — PDF, DOCX, Markdown, TXT up to 10 MB. Text extraction, chunking and embedding run asynchronously in the background.
- URL ingest — read in a single web page by URL. Fetch via ScraperAPI, SSRF protection blocks private/internal addresses, content is extracted to Markdown (navigation, header, footer, scripts stripped).
- Website analysis — an agentic 5-phase pipeline: crawl the domain (sitemap first, BFS fallback), classify subpages by LLM (language-agnostic), extract the most relevant pages and synthesize up to 9 structured knowledge documents (company profile, products, target audience, brand voice, USPs, FAQ, social proof, contact, site overview).
- Hybrid search — embedding cosine similarity plus keyword matching, merged and finally sorted by Claude Haiku reranking. Finds paraphrases that share no words with the query.
- Automatic RAG usage — article generation and storyline sections automatically pull relevant chunks as binding context when needed.
- Download — download the original file (upload) or the extracted/synthesized Markdown (URL ingest and website analysis).
- Asynchronous processing — ingest, URL fetch and website analysis all run as background jobs; every start endpoint answers with
202and an ID to poll.
When to use it
- Generated articles should contain company-specific facts (products, pricing, USPs, FAQ) instead of the AI inventing them.
- You have reference material (data sheets, internal docs) and want to use it as a content source.
- You want to ingest an entire website as a knowledge base instead of pulling every subpage individually via URL ingest.
- Storylines sections or individual articles should consistently draw from the same internal sources.
Workflow
- Start the ingest — raw text via
POST /v1/projects/{project}/knowledge-base{title, content}or a web page viaPOST /v1/knowledge-base/url{url}. Both run asynchronously, response202 {document_id, status: 'processing'}. - Poll status —
GET /v1/projects/{project}/knowledge-baseuntil the document showsstatus: 'ready'. Only then are the chunks created and embedded;failedmeans an extraction or chunking error. - Search —
GET /v1/projects/{project}/knowledge-base/search?q=…&top_k=…returns the most relevant chunks (hybrid cosine + keyword, Haiku-reranked) with a score. - Bulk: an entire website — instead of many individual URLs, start
POST /v1/projects/{project}/knowledge-base/site-analysis{url, max_pages?}, then pollGET /v1/knowledge-base/site-analysis/{id}(progress_percent0–100) untilstatus ∈ {completed, partial, failed}. - Wrap-up — no separate call is needed for article generation:
use_knowledge_base+knowledge_mode(all/specific) +knowledge_document_ids[]in the generation request of AI Content Editor automatically uses the same retrieval pipeline.
API
| Method | Endpoint | Notes | Credits |
|---|---|---|---|
| GET | /v1/projects/{project}/knowledge-base |
Document list with status, file_type, source_type, created_at |
0 |
| POST | /v1/projects/{project}/knowledge-base |
Ingest raw text {title, content, type?}, async 202 {document_id, status} |
5 |
| GET | /v1/projects/{project}/knowledge-base/search |
Hybrid search over ready chunks. Query q, top_k?. Returns {data:[{id, document_id, snippet, score}], meta} |
1 |
| DELETE | /v1/knowledge-base/{document} |
Delete document + its chunks (cascade), 204 |
0 |
| GET | /v1/knowledge-base/{document}/download |
Download the file (original or extracted/synthesized Markdown), 404 if the file is missing |
0 |
| POST | /v1/knowledge-base/url |
Ingest a single URL {url}, async 202 {document_id, status}, 422 on SSRF block |
5 |
| POST | /v1/projects/{project}/knowledge-base/site-analysis |
Start website analysis {url, max_pages?} (20/40/80, default 40). Async 202 {analysis_id, status, poll_url}. 409 if a run is already active for project+host, 422 on SSRF |
25 |
| GET | /v1/projects/{project}/knowledge-base/site-analysis |
All website analysis runs for the project, paginated, with progress_percent |
0 |
| GET | /v1/knowledge-base/site-analysis/{id} |
Run status: status, progress_percent, page counters, primary_language, document_ids |
0 |
Example:
POST /v1/projects/42/knowledge-base/site-analysis
{"url": "https://example.com", "max_pages": 40}
Credits & limits
- File upload / URL ingest / text ingest: 5 credits, charged only once chunking succeeds (
status: ready) — no charge onfailed. - Search: 1 credit per query, charged only on a
2xxresponse. - Website analysis: 25 credits flat, covers crawl, classification, synthesis and ingest of all resulting documents. Charged only on
completed/partial, not onfailed. - File upload limit: 10 MB per file.
- Website analysis limit:
max_pages5–80 (default 40); only one analysis runs per project+host at a time (409on a parallel start). - All start endpoints are asynchronous — fetch the result by polling the respective status endpoints.
Related modules
- AI Content Editor — consumes the knowledge base as RAG context during article generation.
- Storylines — section generation uses the same retrieval pipeline for consistent sources across the whole cluster.