DEV Community

TongWu
TongWu

Posted on

How to Use qKnow Agent Platform for "Small-Scale Validation, Large-Scale Expansion"?

When promoting AI agents and knowledge applications, a common issue is the desire to integrate all knowledge files, business systems, departmental permissions, and application requirements right from the start.

From a final goal perspective, this direction is not wrong. However, for large enterprises with complex data sources, diverse knowledge types, and long business processes, if the initial scope is too broad, it becomes difficult to quickly determine whether unsatisfactory Q&A results stem from the model, file quality, knowledge parsing, retrieval parameters, knowledge graphs, or the application process itself.

Therefore, enterprise AI agent construction is better suited to first select a small number of high-frequency scenarios for validation, and then gradually expand the capability boundaries.

Taking equipment knowledge Q&A as an example, you can start by selecting one type of equipment, one maintenance team, and a batch of real questions to run through the complete process: model integration, knowledge processing, knowledge retrieval, Q&A validation, and feedback optimization.

Once validation is effective, the methods and platform capabilities formed can be replicated to more equipment, personnel, and business processes.

This is also a landing method for the qKnow Agent Platform in enterprise AI agent construction:
Keep the initial business scope small, but unify the platform architecture first.


I. Enterprise Product Design Thinking: Small-Scale Validation, Platform-Based Expansion

01. Why are enterprise AI projects not suitable for a full rollout in the first phase?

The larger the enterprise, the more complex the knowledge and data environment usually is.
The same type of equipment may have different codes, technical materials may be scattered across different systems, and different departments may have different rules regarding file versions, approval processes, and data permissions. If all content is integrated in the first phase, the project will quickly face a massive number of variables.

At this point, the hardest questions to answer are often the three most basic ones:

  • Is the model truly suitable for the current business?
  • Can the knowledge materials be correctly parsed and retrieved?
  • Does the final application actually solve the user's problem?

If these three questions cannot be independently verified, even if the final result is unsatisfactory, it is difficult to determine which link needs adjustment. Therefore, the first phase is better suited to actively narrowing the scope, allowing every problem to be located and every adjustment to be re-verified.


02. Establish a "Minimum Viable Loop" first

Taking equipment knowledge Q&A as an example, a complete minimum loop is not just "uploading a few files and letting the large model answer questions."
At least the following must be completed:
Model Integration → Knowledge Base/Graph Construction → File Processing → Retrieval Configuration → Real Question Recall Test → Knowledge Q&A → User Validation → Problem Feedback → Readjustment

Only when these links can connect with each other can we judge whether the enterprise has truly established an AI application foundation that can continue to expand.
Completing model interface configuration, knowledge file uploading, or a single demo Q&A independently cannot be equated to completing a business loop.


First-phase scenarios should not pursue "bigness," but "ease of validation"

Scenarios suitable for first-phase validation usually share several common characteristics: high usage frequency, basically available existing materials, clear target users, and easily judgeable effects.

  • Scenario Scope: Select 2-3 high-frequency scenarios (Avoid covering all departmental needs simultaneously).
  • User Scope: One team or business group (Avoid facing all employees upon initial launch).
  • Equipment Scope: One type of equipment or one equipment family (Avoid including all equipment at once).
  • Question Scope: 20-50 real questions (Avoid using demo questions without business context).
  • Data Scope: Materials directly related to target questions (Avoid moving all historical files from the entire database).

"Small incision" does not mean the underlying architecture should also be small

The business scope can start from one scenario, but the underlying design should ideally consider future reuse from the very beginning.

In the actual construction of qKnow, the following can be considered separately:

  • Model Layer: Decouple model integration from application calls, allowing for future replacement or addition of other models.
  • Data Layer: Unify file naming, equipment coding, versions, and permission rules in advance.
  • Knowledge Layer: Build knowledge bases in a reusable way, keeping knowledge graph concepts and primary keys unified.
  • Application Layer: Q&A, retrieval, agents, and business workflows share the same knowledge base.
  • Operation Layer: Continuously retain user questions, audit responsibilities, and knowledge update mechanisms.

In this way, the first phase validates a small scenario, but subsequent expansions reuse the same set of platform architecture and governance methods, rather than rebuilding a new system for every added scenario.

Once the first-phase loop is validated, the scope can be gradually expanded according to:
Similar Objects → Adjacent Users → Adjacent Processes

For example, after the main unit knowledge Q&A is stable, add valves, sensors, electrical cabinets, and other equipment; subsequently expand to other maintenance teams; when users begin to need to query the relationships between equipment, components, fault phenomena, causes, and maintenance measures, then add knowledge graphs and entity relationship retrieval.

Each expansion still forms a new "small loop," rather than integrating all remaining content at once.


II. Operational Process: Using qKnow to Complete the Equipment Knowledge Q&A Loop

Below, taking "Pump Station Equipment Fault Knowledge Q&A" as an example, let's specifically look at how to use qKnow to complete knowledge processing, retrieval, and final Q&A validation step-by-step starting from the model.

Note: In actual projects, model names, business parameters, knowledge scope, and user permissions need to be configured according to the enterprise's own situation.

Step 1: Integrate the model and replace the model used in the actual application

First, you need to complete the target large model configuration in the qKnow Model Market.
After filling in the key and related necessary parameters, conduct a connectivity test first.

However, for knowledge Q&A, interface connectivity is just the first step.
After successful model integration, you also need to enter the actual Q&A workflow, Bot, or agent configuration to replace the original model node with the target model.

At this point, focus on confirming:

  • Can the dialogue model return results normally?
  • Can the context length meet the needs of knowledge Q&A?
  • Is the prompt configuration correct?
  • Is the knowledge retrieval node correctly connected to the model node?
  • Can the output node return results normally?

After the model replacement is complete, a full dialogue needs to be re-executed, rather than just confirming that the model interface "call was successful."

If the enterprise plans to integrate multiple models simultaneously, it is recommended to fix one main model for the first phase.
The reason is simple: if the model changes frequently, then when the answer effect changes, it is difficult to determine whether it is caused by model differences or knowledge retrieval.


Step 2: Create a knowledge base or knowledge graph around the first-phase scenario

Once the model can be called normally, the next step is to build the knowledge base.
Depending on the form of business knowledge, you can:

  • Create only a knowledge base;
  • Create only a knowledge graph;
  • Use both knowledge base and knowledge graph simultaneously.

The problems solved by the two are not exactly the same.

  1. Knowledge Base: More suitable for carrying document-type knowledge such as technical manuals, maintenance records, fault cases, and operating procedures.

  1. Knowledge Graph: Suitable for expressing clear entities and relationships such as: Equipment → Component → Fault Phenomenon → Fault Cause → Maintenance Measure.

For example: In the first phase, you can create a "Pump Station Main Unit Fault Case Knowledge Base"; if subsequent equipment relationship analysis is needed, you can simultaneously build a "Pump Station Equipment Fault Knowledge Graph."

After creation, it is recommended to keep it in an unpublished state until file processing, relationship checking, and retrieval testing are completed before officially opening it.
At the same time, the knowledge base owner, applicable departments, material scope, and subsequent update responsibilities need to be clarified.

Compared to generalized names like "Comprehensive Knowledge Base" or "Temporary Knowledge Base," the knowledge base name should directly explain the business scope, so that subsequent users can quickly judge what content it contains.


Step 3: Establish knowledge classification that fits business users' habits

Enter the target knowledge base and establish a knowledge classification system via: Knowledge Base Settings → Knowledge Classification.

For the pump station equipment fault scenario, you can first establish classifications such as:
Fault Phenomenon, Fault Cause, Equipment Component, Maintenance & Disposal, Operating Conditions.

Note here that knowledge classification is not to make the backend directory "look more complete," but to help with subsequent file governance and business user understanding.
Therefore, classification names should use expressions familiar to business users as much as possible.
The same level should also maintain a consistent division standard.
If a certain category has no knowledge files or query needs in the first phase, there is no need to create it in advance for the sake of system completeness.


Step 4: Upload, parse, and check knowledge files

Enter "Knowledge Files," select the corresponding classification first, and then upload knowledge materials such as Word, PDF, TXT, etc.

Before formal import, it is recommended to perform basic governance on the files first.
Focus on cleaning up: duplicate files, expired versions, and materials with poor scanning quality that may affect parsing results.

After the file upload is complete, the parsing results need to be further checked. For example:

  • Is the document title correct?
  • Are the body text and tables parsed completely?
  • Are chapter numbers preserved?
  • Does the segmentation structure conform to the original logic?
  • Does the maximum segment length cause context truncation?
  • Can the overlap length preserve cross-segment explanations?

These settings will directly affect subsequent knowledge recall.
For example, if a piece of equipment fault description originally consisted of "phenomenon, cause, disposal steps," and segmentation恰好 splits the cause and disposal steps, even if the model capability is sufficient, it may not be able to obtain the complete context.

If the business also needs to query relationships between equipment, components, fault causes, and maintenance measures, you can further establish unstructured extraction tasks after file import to extract relevant entities and relationships into the knowledge graph.
However, if the first-phase goal is only to complete document Q&A, you can temporarily not introduce the graph and keep the first-phase scope within knowledge base Q&A.


Step 5: Configure knowledge retrieval methods

After file parsing is complete, enter: Knowledge Base Settings → Retrieval Settings to start configuring the knowledge recall method.

For enterprise knowledge scenarios where technical manuals, maintenance cases, and maintenance records coexist, hybrid retrieval can be adopted first.

  1. On one hand, use full-text keywords to match professional terms, equipment models, and fault names;
  2. On the other hand, use vector similarity to handle users' natural language expressions.

When the data volume increases, or there are many similar knowledge segments, the Rerank model can also be used to further rerank results.

Top K and score thresholds are also not recommended to be set too tightly at the beginning.
A more suitable approach is to first use relatively loose conditions to observe recall results, and then gradually adjust based on real tests.

At the same time, try to modify only one parameter per round of testing.
For example, adjust only Top K in this round, and adjust the score threshold in the next round.
Otherwise, if multiple parameters are changed at once, even if the final effect improves, it is difficult to determine which factor played a role.


Step 6: Use real business questions for recall testing

When knowledge Q&A effects have problems, often the issue is not in the "large model answer," but in the earlier knowledge recall stage.
Therefore, before formally entering the Q&A application, you can first enter "Recall Testing."

Input the 20-50 real business questions organized in advance into the platform one by one.
For example: "Which parts should be checked first when the main unit has abnormal vibration?"

At this time, do not focus on whether the final answer is fluent enough, but focus on confirming:

  1. Was the correct file found?
  2. Did the truly relevant text segments enter the recall results?

Different phenomena correspond to different processing paths.

  • If the wrong file is hit, check file naming, question expression, and retrieval weights;
  • If the file is correct but the returned segment is incomplete, focus on checking segment length and overlap length;
  • If the correct segment exists but is ranked too low, further adjust Top K, Rerank, or check if there is a large amount of duplicate content in the knowledge base;
  • If recalled materials are old versions, it indicates the problem is no longer just retrieval parameters, but that knowledge file version management and content responsibility need further governance.

Only after this step is basically stable should you proceed to the large model answer generation stage.


Step 7: Associate knowledge base and knowledge graph in knowledge Q&A

After the recall test basically passes, you can enter: Application Center → Horizontal General Applications → Knowledge Q&A to create a new conversation.

Depending on the specific business, you can select only the target knowledge base, or simultaneously select the knowledge graph as the Q&A basis.
For example, select: "Pump Station Main Unit Fault Case Knowledge Base."
If the current question involves relationships between equipment, components, faults, and maintenance measures, continue to associate the corresponding equipment fault knowledge graph.

Subsequently, input the real question: "Which parts should be checked first when the main unit has abnormal vibration?"

What truly needs to be verified here is not just what answer the model finally generated.
You should also simultaneously check:

  • Is the answer content correct?
  • Do the citation sources come from the correct knowledge files?
  • Do the relevant knowledge segments match the current equipment?
  • When continuing to ask about applicable conditions, operation sequences, or original text basis, can context consistency be maintained?

It is recommended to record every abnormal answer.
Including: no answer, wrong citation, answer not matching current equipment, and answers ultimately not adopted by the user.
This type of information is often more valuable than simply recording "answer accuracy rate," because it can directly guide subsequent model, knowledge, and retrieval adjustments.

It must also be emphasized that important disposal suggestions in enterprise equipment maintenance scenarios should still be confirmed by corresponding business personnel.
Intelligent Q&A can help users find materials and organize basis faster, but cannot replace the enterprise's original professional review and safety management processes.


Step 8: Feed user questions back into the model and knowledge processing flow

After the equipment knowledge Q&A is truly online, the new work has just begun.
It is recommended to regularly summarize actual Q&A questions and return to the corresponding links according to different causes.

For example:

  • Unstable model performance: Return to the model, prompts, or workflow for adjustment;
  • Missing or expired files: Supplement knowledge materials and clarify file versions and update responsibilities;
  • Answer exists in the file but was not recalled: Return to segmentation methods and retrieval parameter adjustments;
  • Multiple names exist for the same equipment: Supplement aliases, tags, or entity normalization rules;
  • Users begin to need to analyze relationships between equipment, components, faults, and maintenance measures: Gradually increase graph models, knowledge extraction, and entity relationship retrieval capabilities.

After each adjustment, it is recommended to continue using the original question set for re-testing.
Only then can the results before and after adjustment be compared to determine whether this modification truly brought improvement, rather than judging based on individual Q&A experiences.


Step 9: Determine if the first-phase minimum loop has truly passed

After the first phase is completed, the acceptance criteria should not just be "the agent is online" or "users can open the page normally."
It can be judged from at least four dimensions:

  1. Model Usable: Q&A and workflows can stably call the target model;
  2. Knowledge Usable: High-frequency business questions can recall correct knowledge files and corresponding segments;
  3. Answer Usable: Key conclusions have clear sources, are understandable by business personnel, and are actually adopted in appropriate scenarios;
  4. Process Usable: Once an error occurs, the team can further determine whether the problem comes from the model, knowledge files, retrieval mechanism, or knowledge governance link.

If these four aspects are basically stable, it indicates that the first business loop has a foundation for replication.
The next phase can continue to expand to the second type of equipment, the second team, or the second business scenario.

During the expansion process, there is no need to rebuild a whole set of systems, but to continue reusing the existing:
Model integration methods, data standards, knowledge classification systems, permission rules, and testing methods.
What is added is only the data and knowledge capabilities truly needed by the new business.


Conclusion

Enterprise AI agent construction does not necessarily need to start with "big and all-inclusive."
Compared to integrating all data, knowledge, and business processes at once, a more controllable way is:
First complete a small-scale loop around real users and real questions: the model can be stably called, knowledge can be accurately recalled, answers can find basis, and problems can continue to be located and adjusted after they occur.

qKnow places model integration, knowledge files, knowledge extraction, knowledge bases, knowledge graphs, and Q&A applications in the same platform link, enabling enterprises to first validate a specific scenario, and then gradually reuse existing data, knowledge, and application architectures to expand to more business.

First make one real scenario work, then replicate the validated method to more scenarios.

For enterprise AI agent platforms, this "small-step validation, platform-based expansion" method is more important not for how big the first phase is, but for ensuring that every subsequent expansion has a validated foundation to reuse.

AI #EnterpriseAI #KnowledgeManagement #RAG #qKnow #TechStrategy

Top comments (0)