Skip to main content

Wiki and Ontology Knowledge Graph

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.

Overview

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.

Quick entry points

TaskConsole entry
Create or edit a knowledge baseData Ingestion → Knowledge Management, click View Details on the target knowledge base card, then click Edit in the upper-right corner
Import documentsKnowledge base details page: Document List → Upload Data
View Wiki generation progressKnowledge base details page: Wiki tab, or the Wiki Generation Status column in the document list
Create, edit, roll back, or delete PagesKnowledge base details page: Wiki → Knowledge
View the ontology knowledge graphKnowledge base details page: Ontology Knowledge Graph tab
Use Wiki retrieval or knowledge Q&AKnowledge Services → Knowledge Retrieval / Knowledge Q&A
View reference prices and billsThe Fee panel on the right of the knowledge base editing page; View bills and usage

Wiki retrieval vs. chunk retrieval

Wiki does not replace the existing chunk and vector indexes. The two organize knowledge differently and can be used together:
DimensionChunk retrievalWiki retrieval
Knowledge unitDocument chunkTopic knowledge page (Wiki Page)
Content sourcePreserves original document fragmentsExtracted, organized, and generated by the model from documents
Content formOriginal fragments such as headings, paragraphs, and tablesTopic-oriented content such as summaries, entities, and concepts
Suitable questionsExact clauses, original-text location, and local fact lookupTopic understanding, entity lookup, concept explanation, and related knowledge recall
TraceabilityReturns source documents and chunksReturns 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.

Use cases

ScenarioTypical materialsValue
Enterprise knowledge portalPolicies, SOPs, training materials, onboarding guidesOrganizes scattered documents into readable topic knowledge so employees can understand policies, processes, and concepts
Product knowledge and pre-sales supportProduct manuals, solutions, white papers, feature descriptionsOrganizes knowledge around products, capabilities, and technical concepts to support pre-sales retrieval and product Q&A
Customer service and operations supportFAQs, troubleshooting manuals, operations runbooks, service documentsProvides topic-oriented knowledge for customer service or operations Agents, combined with original chunks to locate specific steps
Research and professional material analysisPapers, research reports, annual reports, industry materialsUses summaries, entities, and concepts to quickly understand material topics, with source documents available for verification
Enterprise Agent knowledge servicesEnterprise business documents and domain knowledgeProvides 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.

Prerequisites

  • 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.

Enable and configure Wiki

Open the knowledge base editing page

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.

Enable Wiki and the ontology knowledge graph

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.

Configure generation parameters

ParameterDescription
Extraction modelUsed 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 granularityControls 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 requirementsControls 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 focusSpecifies 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 methodCurrently 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.

Save the configuration

Click Save and Return. When documents are imported or updated later, the system generates Wiki content according to the current configuration.

Billing

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.

Fee components

Fee itemBilled objectBilling methodDescription
Knowledge base specification feeFlagship knowledge base instanceBilled by RCU runtimeWiki 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 feeWiki extraction and generation stageBilled by actual input and output tokens of the selected extraction modelSupports 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 feesDocument vectorization, retrieval reranking, Q&A generation, etc.Billed by token usage of the corresponding modelsBilled independently from Wiki extraction model invocation fees. For details, see Model invocation fees

Operations that trigger Wiki extraction model billing

OperationBilling impactDescription
Importing documents for the first time after enabling Wiki and generating Wiki PagesTriggers Wiki extraction model callsBilled by tokens actually consumed by extraction and generation for the imported documents
Adding or modifying documents while automatic update is enabledTriggers regeneration for related documentsExisting Pages remain available and retrievable during generation. Frequent updates continuously incur fees
Reparsing documents after modifying Wiki content generation requirements, extraction focus, or extraction granularityTriggers reparsing and generationSaving the configuration does not immediately rewrite all historical Pages. Existing content is affected only after reparsing
Re-enabling Wiki after it was disabledTriggers full generation for all documentsDisabling deletes all existing Pages and the ontology knowledge graph. Re-enabling cannot restore old versions and incurs token fees again

Fee estimation and viewing

Wiki extraction model fees can be estimated as follows:
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.

Cost control recommendations

  • 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.

Import documents and view generation progress

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.
  1. Import documents: On the Document List of the knowledge base details page, click Upload Data, select a data source, and complete the import.
  2. 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.
  3. 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.
  4. 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.

Effects of canceling generation

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.

View and manage Wiki Pages

The Wiki tab on the knowledge base details page provides an overall index summary and the following content types:
Content typeDescription
SummaryGeneralized content about a document or topic, helping you quickly understand the main information
EntitySpecific objects mentioned in documents, such as products, organizations, people, and projects
ConceptConceptual knowledge such as domain terms, technical methods, and business mechanisms
Synthesis / ComparisonContent 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.

Create a Page

Go to Wiki → Knowledge and click the New Wiki Page icon in the upper-right corner of the list to create and save a Page.

Edit a Page

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.

View revision history and roll back

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.

Delete a Page

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.

Ontology knowledge graph

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.

Use Wiki retrieval and Q&A

Knowledge retrieval

A knowledge base with Wiki enabled can use an independent Wiki retrieval service alongside the vector retrieval service.
  1. 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.
  2. 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.
  3. Configure query rewriting, initial vector/keyword retrieval TopK, rerank model, similarity threshold, and maximum recall count as needed.
  4. Enter typical business questions in the debugging window and check the returned Wiki Pages and source information.
  5. 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.

Knowledge Q&A

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.
  1. Go to Knowledge Services → Knowledge Q&A and create or open a Q&A service.
  2. Add the target knowledge base. A single service can bind up to 15 knowledge bases.
  3. Configure the model, prompt, citations, refusal, and anti-leakage capabilities as needed.
  4. Debug with typical questions and verify the Wiki Pages and source documents cited in the answer.
  5. 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.

API integration notes

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.

Batch import and concurrency

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.

Automatic update, disabling, and deletion

Add or modify documents

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.

Delete documents

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.

Disable Wiki

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.

Delete a knowledge base

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.

Best practices

  1. 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.
  2. Ensure source document quality: Prefer documents with complete content, clear headings, and good parsing results. Check parsing results before evaluating Wiki quality.
  3. 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.
  4. Clarify domain extraction focus: List core business entities and concepts in Wiki extraction focus, but do not include generic requirements unrelated to the domain.
  5. Verify with chunk retrieval: For exact facts and key clauses, check Wiki Pages, original chunks, and source documents together.
  6. 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.
  7. 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.