Use Wiki and knowledge graphs

Updated at:
Copy as MD

Alibaba Cloud Milvus supports using Wiki content and knowledge graphs. In after-sales customer service, for example, answers typically require checking product and component warranty terms, regional services, and application requirements.

Before use, follow Knowledge construction overview to complete the build. Verify that the required outputs are available, the selected version is correct, and the current account can access their sources.

Integrate outputs into business applications after building

Knowledge graphs and Wiki can support retrieval, question answering, and knowledge presentation in business systems. Choose an integration approach based on your existing business:

Business requirement

Approach

After-sales service example

You have an existing model and question-answering workflow and need supporting knowledge

Retrieve source text and Wiki content, provide the relevant evidence to your own model, and display citations

A customer service assistant retrieves warranty and application requirements and then formulates an answer

You want to obtain answers with supporting evidence directly

Use knowledge base question answering, enable Wiki or graph augmentation as needed, and display answers and citations on your business page

For a question about battery after-sales service, the system answers based on warranty periods, regional services, and application materials

You need complete topic articles or structured object relationships

Read Wiki article bodies, graph entities, and relationships directly for knowledge portals, agents, or business workflows

A training portal displays after-sales guides; an agent queries the battery and its applicable terms

Building content and handling user questions are separate processes. You do not need to rebuild for each question. For question-answering scenarios, use retrieval or question answering directly. Read the corresponding outputs separately only when you need complete articles or object relationships.

Prepare for integration

  1. Verify that the target knowledge base and required outputs are available, and check the sources of key conclusions.

  2. You can use the draft for debugging. If your business requires fixed knowledge content, publish a version that includes the required outputs and configure the business application to use it.

  3. Grant the required permissions to the identity used for business calls, and manage access credentials on the business application's server side.

For integration interfaces, parameters, authentication, and examples, see Knowledge base development reference.

Verify results in your business application

Use actual questions on your business page to verify answers and citations. Check that warranty periods, service conditions, and application materials are supported by evidence. After enabling augmentation, also verify that answers actually use the relevant outputs.

If materials are insufficient or outputs are unavailable, the business application must clearly indicate this. Do not present a generic answer as a well-supported conclusion. Handle cached content when sources are withdrawn. If a permission or version error occurs, check the configuration first. Do not automatically switch to another version to continue answering.

How ontology supports questions about relationships

Use your company's product manuals and warranty terms as sources. If a graph is required, follow the ontology modeling guide to generate and verify a schema with AI, save it, and build the graph. Then verify the following:

  1. Ontology definitions: Check that whole products, components, and terms are distinguished and that the meaning and direction of applicability relationships are consistent. "A product contains components" does not mean that the components inherit the product's warranty period.

  2. Graph facts: Check that each object is associated with its own terms and that periods and conditions match the source text. For example, a 24-month warranty for the whole product and a 12-month battery warranty must not be used interchangeably.

  3. Answer evidence: Check that the answer uses the terms for the correct object and includes evidence for service coverage and application requirements. This information can be supplemented from source text or Wiki content. It does not all need to be modeled in a graph first.

With a generic schema, type and relationship names may vary. Verify their business meanings against the source text. With a custom schema, also check compliance with the configured types and rules.

The graph identifies object relationships, while Wiki provides coherent topic descriptions. Editing Wiki content does not update the graph.

Choose a capability based on the question

Question

Capability to try first

Verification focus

Parameters or specific terms for a model

Source-text retrieval

Values, applicable conditions, and source versions

An overall description of a product or topic

Use Wiki

Page coverage and supporting source text

Relationships between products, components, and terms

Graph-augmented question answering

Relationship direction and the source for each relationship

Questions that require multiple retrieval steps and additional evidence

Intelligent retrieval

The tools actually called, evidence, latency, and budget

Compare source text and Wiki in retrieval validation

  1. Enter a question in the same knowledge base and version. Disable Use Wiki and record the source-text matches.

  2. After Wiki content becomes available, enable Use Wiki and run retrieval again with the same question.

  3. Distinguish returned source chunks, Wiki pages, and Wiki sections. Open the evidence and verify which facts it supports.

  4. Check whether pages and sections duplicate the same content, and then assess whether the results provide more complete information.

Standard retrieval validation uses source text and Wiki. Validate graph augmentation in the conversation experience. Run retrieval again after changing the version or parameters. Do not treat old results as results from the new configuration.

Validate answers in the conversation experience

To compare results, select Draft and keep the model, question, and other parameters unchanged. Create separate conversations: for the source-text baseline, disable Use Wiki and graph augmentation; for the Wiki comparison, enable only Use Wiki. Separate conversations prevent previous answers from affecting subsequent results. You do not need to publish a version first. Check that answers distinguish the terms for different objects, retain applicable conditions, and include citations that support their conclusions.

After building and verifying the graph, create another conversation with only graph augmentation enabled. Compare it with the source-text baseline to determine whether object relationships provide additional valid evidence. Source-text retrieval may also produce a correct answer, so compare the validity of the additional evidence.

Intelligent retrieval performs multiple retrieval steps within the budget. Execution records show the tools, statuses, and results. Users can stop execution. Tool failures, fallback behavior, and insufficient materials must be distinguished. If a permission or version error occurs, check the account permissions and selected version first.

Validate with a set of questions

Select representative question types from your own business materials. Record the actual answers and verify their evidence:

Question type

Verification focus

Questions explicitly answered in the materials

Check that values, applicable objects, and conditions match the source text

Questions that require connecting multiple materials

Check that the correct objects are connected and that evidence is provided for each conclusion

Questions not covered by the materials

Check that the answer clearly states when information cannot be confirmed and does not invent policies or commitments

When comparing results, keep the material revisions, questions, version, and parameters unchanged. Record factual accuracy, source citations, additional valid evidence, elapsed time, and model usage. After updating sources, validate again with affected questions. For manually revised Wiki pages, also check whether update suggestions have been adopted. Do not treat proposed content as current guidance. Do not compare only node counts, article counts, or answer lengths.

Versions and source permissions

  • Draft is used for ongoing validation. When fixed content is required, use a specific published version. Do not read the latest draft instead of the specified published version.

  • If a published version does not contain a graph or Wiki content, use only that version's source text. If it contains Wiki content, read the fixed page revisions. Saves that have not taken effect and unadopted update suggestions are excluded from published results.

  • After a source is deleted, disabled, or becomes inaccessible, its content must first be excluded from retrieval and question answering. A fixed version cannot bypass current access permissions.

  • A Wiki page with multiple sources requires permissions for all sources. History, export, and restoration operations also check current permissions.

Before publishing, verify that Wiki content is synchronized with its sources. If synchronization is incomplete, wait for it to finish or publish only the source text.

Common failures

Symptom

Initial checks

Source text or Wiki content is empty

Source parsing/indexing, whether the version contains content, scope, enabled status, and permissions

Retrieval succeeds but answer generation fails

The generation model, reranking, network, and call errors

Old content is returned after an update

Effective revisions, unadopted update suggestions, changes after submission, and the selected version

Answers are fluent but evidence is incomplete

Verify each fact and citation, supplement materials or correct rules, and ask the same question again

For build and maintenance settings, see Data updates and build management.