Enable Wiki in a Flagship document knowledge base to organize documents into readable, retrievable topic pages (Wiki Pages), and browse page relationships through the ontology knowledge graph.
Wiki is available only in Flagship knowledge bases. Standard knowledge bases do not include Wiki or the ontology knowledge graph. Wiki and the ontology knowledge graph currently share one feature switch. After you enable it, one parsing run generates both types of content, which are displayed separately on the knowledge base details page.
Wiki is a knowledge organization capability provided by Flagship document knowledge bases. After you enable it, the system uses a large language model to extract summaries, entities, and concepts from documents, generates structured Wiki pages (Wiki Pages), and builds an independent index that participates in knowledge retrieval and Q&A.Wiki Pages can be returned to applications as retrieval results, and can also be read and revised directly in the console. Automatically generated Pages can be traced back to their source documents.After you enable the feature, one parsing run generates both:
Wiki Pages: Topic-organized knowledge pages that can be read, revised, and used in retrieval recall.
Ontology knowledge graph: A relationship view generated from associations between Wiki Pages, used for knowledge browsing and relationship display.
Wiki Pages build an independent index that participates in retrieval recall. The graph data itself does not participate in retrieval and is mainly used for display. The knowledge base details page provides separate Wiki and Ontology Knowledge Graph tabs.
Wiki does not replace the existing chunk and vector indexes. The two organize knowledge differently and can be used together:
Dimension
Chunk retrieval
Wiki retrieval
Knowledge unit
Document chunk
Topic knowledge page (Wiki Page)
Content source
Preserves original document fragments
Extracted, organized, and generated by the model from documents
Content form
Original fragments such as headings, paragraphs, and tables
Topic-oriented content such as summaries, entities, and concepts
Suitable questions
Exact clauses, original-text location, and local fact lookup
Topic understanding, entity lookup, concept explanation, and related knowledge recall
Traceability
Returns source documents and chunks
Returns Wiki Pages and allows you to view source documents
For questions that require strict verification against original text, such as contract clauses, error codes, and exact values, use chunk retrieval together with source documents. Do not rely solely on model-generated content.
Policies, SOPs, training materials, onboarding guides
Organizes scattered documents into readable topic knowledge so employees can understand policies, processes, and concepts
Product knowledge and pre-sales support
Product manuals, solutions, white papers, feature descriptions
Organizes knowledge around products, capabilities, and technical concepts to support pre-sales retrieval and product Q&A
Customer service and operations support
FAQs, troubleshooting manuals, operations runbooks, service documents
Provides topic-oriented knowledge for customer service or operations Agents, combined with original chunks to locate specific steps
Research and professional material analysis
Papers, research reports, annual reports, industry materials
Uses summaries, entities, and concepts to quickly understand material topics, with source documents available for verification
Enterprise Agent knowledge services
Enterprise business documents and domain knowledge
Provides retrievable and citable topic knowledge to Agents through knowledge retrieval, knowledge Q&A, or APIs
If your business mainly queries structured data such as orders or inventory, use a Data Query knowledge base. If you need to verify contracts or regulations word by word, keep chunk retrieval as well. Wiki is better suited to topic-oriented organization and understanding of document knowledge.
You have created a Flagship knowledge base with knowledge base type Document Search and use case Basic Document Q&A. For details, see Create a knowledge base.
You have imported documents into the knowledge base, or are ready to import them by uploading files, selecting categories, or selecting files.
You understand that Wiki generation calls the selected large language model and is billed by actual input/output tokens. For fee composition and prices, see Billing, Knowledge base billing, and Model invocation pricing.
Log in to the console and go to Data Ingestion → Knowledge Management. Click View Details on the target knowledge base card, then click Edit in the upper-right corner of the details page.If you have not created a knowledge base yet, create a Flagship knowledge base first and enable Wiki and the ontology knowledge graph during creation.
Expand Wiki and Ontology Knowledge Graph and turn on the feature switch. After you enable it, one parsing run generates both Wiki Pages and the ontology knowledge graph.
Used for Wiki content extraction and generation. Supports qwen3.8-max (default), qwen3.8-flash, and qwen3.7-plus. Billed by input/output tokens of the selected model
Extraction granularity
Controls the number of Wiki entities/concepts extracted per document. Focused: extracts only the main subjects, cleanest but may miss secondary entities. Standard: extracts main subjects and secondary entities/concepts described in detail, suitable for most scenarios. Detailed: extracts all identifiable named entities and concepts, suitable for use as a glossary
Wiki content generation requirements
Controls the expression focus of summaries, pages, and the home page, up to 4,000 characters. For example, for legal review, prioritize responsible parties, timelines, and risk warnings. Citation, merging, and anti-hallucination rules are maintained by the system
Wiki extraction focus
Specifies domain entities and concepts to prioritize, up to 4,000 characters. For example, products, versions, organizations, owners, and key technical concepts. This does not replace the system JSON and citation protocols
Update method
Currently automatic update. When documents are added or modified, related Wiki content is regenerated automatically to stay up to date, which incurs token-based fees
For most scenarios, start with Standard granularity, then adjust based on Page count, content quality, and retrieval results.
After you modify Wiki content generation requirements or other configuration, you must reparse documents for the changes to affect existing content. Saving does not immediately rewrite all historical Pages.
Wiki-related fees are independent of knowledge base specification fees and regular model invocation fees. Before enabling Wiki, understand the fee components and the operations that trigger billing. Before large-scale imports or historical document migration, validate quality, time, and token consumption with a small set of representative documents.
Wiki is supported only by Flagship knowledge bases. Specification fees support pay-as-you-go or Flagship resource packages, and are incurred while the instance is running. For details, see Specification fees
Wiki extraction model invocation fee
Wiki extraction and generation stage
Billed by actual input and output tokens of the selected extraction model
Supports qwen3.8-max, qwen3.8-flash, and qwen3.7-plus. This fee is not included in the knowledge base specification fee or knowledge base free quota. For the latest unit prices, tiered billing rules, promotional discounts, and free quotas of each model, see Model invocation pricing
Regular model invocation fees
Document vectorization, retrieval reranking, Q&A generation, etc.
Billed by token usage of the corresponding models
Billed independently from Wiki extraction model invocation fees. For details, see Model invocation fees
Wiki extraction model fees can be estimated as follows:
Copy
Wiki extraction model fee ≈ input tokens × input unit price + output tokens × output unit price
Actual consumption depends on document length, extraction granularity, model output, task retries, and platform queuing. Final fees are subject to the bill.
When editing a knowledge base in the console, you can view the currently selected extraction model and reference prices of related services in the Fee panel on the right.
Validate with a small batch first: Before historical document migration or large-scale rollout, validate generation quality, time, and token fees with a small set of representative documents.
Import in batches: Control import concurrency. Avoid importing too many documents at once or submitting large batches to multiple knowledge bases simultaneously, to reduce queuing and repeated retries.
Be cautious with full regeneration: Reparsing after configuration changes and re-enabling Wiki after disabling both trigger batch or full generation. Evaluate fees in advance.
Evaluate automatic update frequency: Frequent document additions or modifications continuously trigger regeneration. Configure based on business update cadence and cost budget.
Stop specification fees: Deleting only files in a knowledge base does not stop specification fees. To completely stop knowledge base specification fees, delete the entire knowledge base instance. For details, see How do I completely stop billing for a knowledge base?.
Disabling Wiki is not a temporary pause. It deletes all Wiki Pages and the ontology knowledge graph, including manually edited content and revision history, and cannot be undone. Re-enabling requires full generation for all documents and incurs token fees again.
Document import is the same as for regular knowledge bases. You can upload files, select categories, or select files. For formats, sizes, and operations, see Document management.
Import documents: On the Document List of the knowledge base details page, click Upload Data, select a data source, and complete the import.
Check document parsing status: View the parsing status in the document list. If document parsing or index import fails, resolve the parsing or indexing issue based on the error message first.
View Wiki generation progress: Switch to the Wiki tab to view the number of processed, processing, and failed documents. Wiki generation is asynchronous. After document parsing completes, you still need to wait for Wiki generation to finish.
Confirm generation results: After Wiki Generation Status in the document list becomes Generated, open the Wiki tab to check Page content and source documents.
Based on reference stress-test data, when tasks are not congested, Wiki generation for 500 documents takes about 2 hours. Actual time depends on document size, the selected model, platform traffic, and task queuing, and may be longer during peak periods. This is not a processing-time commitment. For large imports, see Batch import and concurrency.
During generation, you can click Cancel Generation to stop the current task. Cancellation does not delete original documents or existing Pages, and generation can be triggered again later:
Original documents and completed document parsing results are retained.
Already generated Wiki Pages are retained. Unfinished tasks return to Pending.
Re-importing documents can trigger generation for pending tasks again. Merely reselecting the same document in the file picker does not necessarily trigger generation again.
Do not recover tasks by disabling and re-enabling Wiki. Disabling deletes all existing Pages and the ontology knowledge graph.
To continue processing pending documents, trigger generation by re-importing documents. Do not recover tasks by disabling Wiki.
The Wiki tab on the knowledge base details page provides an overall index summary and the following content types:
Content type
Description
Summary
Generalized content about a document or topic, helping you quickly understand the main information
Entity
Specific objects mentioned in documents, such as products, organizations, people, and projects
Concept
Conceptual knowledge such as domain terms, technical methods, and business mechanisms
Synthesis / Comparison
Content type entries provided by the console. Actual generated results depend on document content and extraction results
Click a Page title to view the Page summary, full body, source documents, and backlink information. The actual number and types of generated Pages depend on source documents, extraction granularity, and model processing results. The same concept may be merged across documents, so Page count does not necessarily grow linearly with document count.
Open the target Page and click Edit. Modify the summary or body and save. Saving creates a new version, for example from V1 to V2, and updates the online Wiki retrieval index.
In the Page's Version history, select a target version and roll back. Rollback does not simply change the version number back to an old value. It creates a new version using the old version's content. For example, rolling back from V2 to V1 creates V3.
In the Wiki → Knowledge list, find the target Page, click ... on its right, and select Delete. You can also delete it from the Page details action area.Confirm the impact before deletion. The deletion confirmation states that it is irreversible. After deletion, the Page no longer participates in subsequent Wiki retrieval. If a full generation is run again later, the system may regenerate Pages on the same topic from source documents.
Pages can be generated automatically from documents or created manually based on business needs, and can be continuously maintained in the console.
On the knowledge base details page, switch to the Ontology Knowledge Graph tab to view the relationship view generated from Wiki Page associations. The graph displays legends and node counts by content type, and reports total nodes and isolated nodes.The ontology knowledge graph is mainly used for knowledge browsing and relationship display. The graph data itself does not participate in retrieval. Retrieval recall uses the independent Wiki Page index.
A knowledge base with Wiki enabled can use an independent Wiki retrieval service alongside the vector retrieval service.
After you create a regular knowledge base and enable Wiki, the system automatically provides two knowledge retrieval services: Chunk retrieval and Wiki retrieval. The Chunk retrieval service is created with the knowledge base, and the Wiki retrieval service is created through the Wiki enablement flow. Go to Knowledge Services → Knowledge Retrieval and open the Wiki retrieval service for the knowledge base. Both services are published immediately after creation and can be used directly. If you cannot find the Wiki retrieval service, use the service list API to verify by knowledge base ID, then create and publish it.
Confirm that the service is bound to a knowledge base with Wiki enabled. For multi-knowledge-base federated retrieval, you can add other knowledge bases. A single service can bind up to 15 knowledge bases, and they must be in the same workspace.
Configure query rewriting, initial vector/keyword retrieval TopK, rerank model, similarity threshold, and maximum recall count as needed.
Enter typical business questions in the debugging window and check the returned Wiki Pages and source information.
Confirm that the service is Published. Automatically created services can be used directly. If you modify the service configuration, publish it again. Use Service channels to view API, SDK, and other integration methods.
Wiki retrieval results include metadata such as wiki_page_id, title, type, path, aliases, version, and summary. The returned text may be a Page summary or a retrieval snippet, and is not guaranteed to be the full body. For key content, continue reading the Page or verify the source document.
A knowledge Q&A service can be associated with a knowledge base that has Wiki enabled, and generates natural-language answers based on retrieved Wiki content.
Add the target knowledge base. A single service can bind up to 15 knowledge bases.
Configure the model, prompt, citations, refusal, and anti-leakage capabilities as needed.
Debug with typical questions and verify the Wiki Pages and source documents cited in the answer.
After publishing, integrate it into business applications or Agents through Service channels.
The current knowledge Q&A flow uses both regular knowledge retrieval and Wiki retrieval. Applications should not assume that answers come only from Wiki Pages. Verify original chunks, Wiki Pages, and final citations together.For API integration with knowledge retrieval or knowledge Q&A, see Service channels.
Obtain the request address, service ID, and latest request examples for the current environment from the service's Publish Channel → API Debugging. Do not reuse domains or service IDs from other environments.
In the knowledge retrieval API (POST /api/v1/indices/knowledge/search), agent_id is the unique identifier of a published knowledge retrieval service. The field name is retained by the API. Calling a knowledge retrieval service does not require creating an Agent application.
You can use POST /api/v1/indices/rag/app/list to query retrieval services associated with a knowledge base by pipeline_id. Set agent_scene to search, and optionally set search_type=chunk/wiki to filter by type. The response includes search_type. The service details API /api/v1/indices/rag/app/get also returns this field.
Wiki retrieval is called by service ID and returns a Page list with related metadata.
When knowledge Q&A uses streaming responses, the response may contain tool calls, tool returns, and intermediate messages. Callers must parse by event and message type, and must not simply concatenate all content as the final answer.
An outer HTTP 200 does not mean the internal retrieval succeeded. Check tool status, error codes, and the final answer in streaming events as well.
The API Key plaintext is shown only when it is created. Keep it secure, and delete unused Keys promptly after testing.
Wiki Pages and Q&A answers both contain model-generated content. For high-risk business such as contracts, finance, healthcare, and compliance, perform human review together with source documents. Do not use generated results as the sole basis for decisions.
A single upload or file selection supports up to 50 files. For details, see Capacity and limits.Wiki generation consumes document parsing, index building, and large language model generation resources at the same time. Control import concurrency. Do not import too many documents at once, and avoid submitting large batches to multiple knowledge bases simultaneously. Otherwise, task queuing may become significantly longer and the console may become sluggish.
Import in batches: Submit by business batch. For example, submit about 100 documents per batch through the console in two submissions. Wait until the current batch completes and stabilizes before submitting the next batch.
Time reference: When not congested, Wiki generation for 500 documents takes about 2 hours. Actual time depends on document size, the selected model, platform traffic, and queuing, and may be longer during peak periods. This is not a processing-time commitment.
Validate with a small batch first: Before historical document migration or large-scale rollout, validate generation quality, time, and token fees with a small set of representative documents.
Stop on anomalies: If persistent queuing or failures occur, pause new tasks and contact technical support. Avoid repeated retries in a short period.
The system automatically regenerates related Wiki content and incurs model token fees. During generation, existing Pages remain available and retrievable. Before frequent document updates, evaluate the generation workload and cost.
After you delete an original document, associated Wiki Pages and indexes are cleaned up asynchronously. They do not all disappear at the same moment the document is deleted. During cleanup, the Wiki tab and retrieval results may temporarily retain old content. Wait for cleanup to complete before verifying.If Pages or retrieval results for a deleted document remain for a long time after waiting, record the knowledge base ID, document ID, deletion time, and Page ID, and contact technical support.
Disabling is not a temporary pause. The second confirmation clearly states:
All generated Wiki Pages and the ontology knowledge graph in this knowledge base are deleted, including manually edited content and revision history. Deletion is irreversible.
The Wiki index no longer participates in recall, and the ontology knowledge graph relationship view is no longer available. Vector retrieval and keyword retrieval are not affected.
Re-enabling requires full generation for all documents and incurs token fees again.
During disabling, the Wiki retrieval API may return WikiNotEnabled. After regeneration, Pages use new Page IDs and start from V1. Revision history from before disabling is not restored.
Deleting a knowledge base cleans up the knowledge base and its Wiki data. If knowledge retrieval or knowledge Q&A services exist, the console prompts you about the associations.After deleting a knowledge base, check its associated knowledge retrieval and knowledge Q&A services, and unbind or delete unused services and API Keys as needed. If you continue calling the original Q&A service after the knowledge base is deleted, the retrieval tool in the streaming response may return PipelineNotExist, indicating that the original knowledge base no longer exists.
Before deleting documents, disabling Wiki, or deleting a knowledge base, confirm the impact. Do not treat these operations as configuration changes that can be freely restored.
Divide knowledge bases by domain: Put business-related documents in the same knowledge base to reduce interference from unrelated topics in knowledge organization and retrieval.
Ensure source document quality: Prefer documents with complete content, clear headings, and good parsing results. Check parsing results before evaluating Wiki quality.
Start with Standard granularity: Validate with the default configuration first, then adjust extraction granularity based on entity/concept coverage. Avoid generating too many low-value Pages at the start.
Clarify domain extraction focus: List core business entities and concepts in Wiki extraction focus, but do not include generic requirements unrelated to the domain.
Verify with chunk retrieval: For exact facts and key clauses, check Wiki Pages, original chunks, and source documents together.
Evaluate with real questions: Use typical enterprise questions to compare recall and answer quality before and after enabling Wiki, then decide whether to expand the document scope.
Validate exception paths before rollout: In addition to the normal generation flow, validate canceling generation, deleting documents, unbinding services, and API error handling. Establish necessary monitoring and alerts.