Knowledge Base Assistant: ChatGPT + Prompt Engineering
Have you got a messy knowledge base that you always want to revamp?
01/ Knowledge Base and Increase in Information
With the rapid development of the information age, knowledge bases have become an indispensable part of our lives and work. Whether it's personal study notes, company project documents, or research materials for an entire industry, a clear and easily retrievable knowledge base directory structure is crucial. However, we often face a problem: as knowledge accumulates, the knowledge base becomes more and more cumbersome and complex, making it increasingly difficult to find the information we need.
Workplace novices may lack effective knowledge management and categorization skills, causing the knowledge base to become intricate and complicated.
Of course, even those who have been working in the workplace for many years face the same problem. The expansion and bloating of the knowledge base make the original categorization method unable to meet new needs and urgently need to be optimized and adjusted.
This often leads to several troubling problems:
"I remember this document exists, but I can't find it!"
"I've saved that important webpage link, why can't I find it now?"
"Why are all the materials for this project scattered in different places?"
How to solve these problems? In this article, we will explore how to optimize the directory structure of the knowledge base with the help of AI combined with prompts, making it more efficient and orderly.
02/ The Status Quo and Challenges
From technical documents to research papers, from market strategies to product manuals, all kinds of information and data need to be organized and stored in the knowledge base. However, the accompanying problems are also increasingly evident:
Structural Inadaptability: Many knowledge bases are initially based on a specific classification method and structure. However over time, the original structure may no longer meet new needs, making information difficult to classify and retrieve.
Low Retrieval Efficiency: Traditional knowledge bases often rely on keywords or tags for search, but due to the irregularity of tags or the ambiguity of descriptions, the retrieval results are often unsatisfactory.
Redundancy & Loss of Knowledge: Due to a lack of uniform standards and management, the same knowledge or information may be repeatedly stored in different locations, or important materials may be erroneously deleted or lost.
Difficulty Adapting to Rapid Change in Knowledge: The modern work and learning environment requires us to constantly update and expand our knowledge. However, in a rigid knowledge base structure, the addition of new knowledge and the update of old knowledge becomes extremely difficult.
These challenges are particularly prominent for those who hope to improve work efficiency through knowledge bases. And with the continuous accumulation of knowledge, these problems may further intensify. Therefore, finding an effective method to optimize and manage the structure of the knowledge base is particularly important.
Next, let's introduce today's main role - ChatGPT. Let's see how to use prompting words to allow ChatGPT to help us optimize the directory structure of the personal knowledge base.
03/ How to Use AI to Optimize Knowledge Base Structure
In this section, we will create a prompt below for a knowledge base GPT assistant.
I/ Core Features
Analyze and optimize the existing knowledge base structure.
Classify based on the latest learned or collected knowledge, and provide suitable locations.
II/ Target Users
Workplace novices.
Career professionals facing knowledge base directory management problems.
III/ Key Input Information
Existing knowledge base directory structure: Used for AI to analyze and provide optimization suggestions.
Purpose of the knowledge base: Clarifying what the usage background of the knowledge base is.
Frequently used directories: Based on the existing knowledge base directory structure, optimize key directories to relatively forward positions for convenient queries.
Scale of the knowledge base: Let the AI know the current number of articles and growth rate, identify the corresponding scale of the knowledge base. Different scales of knowledge bases are suitable for different directory categorization structures. We need to know that what suits you is the best.
Pain points in managing the knowledge base: Help AI quickly locate the problem. Information can be provided according to actual situations.
IV/ Prompting
Since this task is somewhat complex, we use a structured prompting approach here. Based on the user-provided key input information, we let ChatGPT execute the Workflow via CoT (Chain of Thought) to ultimately achieve optimization and suggestions for the knowledge base structure.
# Role: Knowledge Base Directory Structure Optimization Assistant
## Profile
As a knowledge base directory optimization expert, you are responsible for optimizing the user's existing knowledge base directory using the MECE principle, ensuring that the directory structure is clear, complete, and mutually exclusive. At the same time, you can recommend appropriate places in the knowledge base directory for new knowledge based on its type.
## Background
The user wants to analyze or optimize their existing knowledge base directory, thereby helping the user build a long-term applicable knowledge base directory structure.
## Goals
1. Analyze the user's existing knowledge base structure and provide optimization suggestions.
2. Help users classify the newly enter knowledge and confirm the correct position in the knowledge base.
## Skills
1. Understand and apply the MECE principle for the categorization and organization of the knowledge base directory.
2. Provide optimization suggestions according to the user's existing directory structure.
3. Analyze the type of new knowledge and recommend appropriate locations in the knowledge base directory.
## Rules
1. Maintain a professional and objective attitude.
2. Generated content must align with the user-provided existing directory structure.
3. Optimization suggestions need to follow the MECE principle.
4. Do not generate brief answers due to worrying about token limitations. If the content is too long, you can ask the user to say "continue" to generate the full content.
## Output Format
Output in the format of Markdown code blocks, using # for first-level directories, ## for second-level directories, and so on.
## Workflow
1. Greet the user with "Hello, user, I am your knowledge base directory structure optimization assistant!".
2. Ask the user the following questions one by one, only asking one question each time, no multiple questions at a time.
- What is the existing knowledge base structure like, please provide a detailed structure, do not exceed three levels of structure.
- What is the main purpose of the knowledge base? Examples: academic research, daily notes, work documents, programming code, etc.
- What parts are often visited and modified, please provide the corresponding directory.
- Approximately how many articles are in the knowledge base? Examples: 200, 1000.
- What is the annual growth rate of articles? Examples: 100, 200.
- What are the pain points of managing the knowledge base currently? Examples: difficult to retrieve; unclear structure of the knowledge base; unsure where to put new knowledge.
3. According to the user-provided information, generate an optimized knowledge base directory structure for the user according to the following rules.
- Ensure the directory is complete and mutually exclusive according to the MECE principle.
- The directories that users often visit and modify should be placed at the top position for users to retrieve as quickly as possible.
- Provide a suitable knowledge base directory structure based on the size of the articles.
4. When the user provides information about new knowledge, first match with the existing knowledge base directory according to the MECE principle. If a suitable location is matched, provide suggestions directly. If not matched, do not give a suggestion, first ask whether subsequent knowledge of this type will continue to increase and handle it in the following ways:
- If it will continue to increase, recommend a new knowledge base directory position.
- If it won't continue to increase, provide suggestions for storage location based on the current knowledge base directory structure.
5. Consult users for their opinions on the optimized knowledge base directory structure and adjust as needed.
## Initialization
As a <Role>, you must follow the <Rules>. Communicate with users in the order of the <Workflow>.The core here lies in using the MECE principle as a methodology to handle this work. Let's briefly understand the simple concept and scenario of the MECE principle, the foremost of McKinsey's 46 methodologies:
MECE (Mutually Exclusive, Collectively Exhaustive) is a framework principle in management consulting used to organize information and analyze data. It requires dividing data, information, or problems into mutually exclusive and collectively exhaustive subsets to ensure comprehensiveness and avoid overlap.
The MECE principle is commonly applied in problem-solving, data analysis, organizational structure design, and other fields. For example, when analyzing market prospects, the market can be divided into mutually exclusive and collectively exhaustive submarkets to better understand potential opportunities.
Example: A company is evaluating its product line. The application of the MECE principle divides the products into mutually exclusive categories, such as electronics, home goods, sports goods, etc., to fully understand the performance of each category and make strategic decisions.
V/ Case Study - For a Career Professional
Common problems professionals face may include:
Urgent need for classification optimization: Over time, classifications become increasingly complicated, making indexing articles very difficult.
Knowledge fragmentation: Years of professional experience may result in knowledge being scattered across various tools and platforms, leading to knowledge fragmentation.
Team collaboration difficulties: As responsibilities and teams change, ensuring that the knowledge base can be smoothly shared and collaborated with team members becomes a problem.
Knowledge confidentiality and permissions: Experienced professionals may have some sensitive or important materials, so ensuring the security and permissions of these materials is critical.
1/ Initialize prompts
I have configured a bot with above prompt in Coze bot store through this link. A simple “hi” will get it return the initialized questions to answer:
2/ Provide the existing directory structure
I chose some of the common knowledge categories I interact with the most, and fed it to the bot:
3/ Provide other important information
The chatbot goes on to ask about the main purpose of the knowledge base, most frequently visited directory, the number of articles in that directory and expected annual growth.
4/ ChatGPT outputs optimized structure
As previously I mentioned that the most frequently used is “Project Knowledge” and “AI Learning Materials” directory, ChatGPT went on to optimize the structure for me.
5/ Suggest the new knowledge categorization
Whether the existing knowledge base structure has suitable directories or not, it can give me relatively friendly suggestions. Awesome!
04/ Summary
In the era of information explosion, effective knowledge management has become a challenge for each of us. Whether you are a novice in the workplace or an experienced veteran, we all know how important an orderly, clear, and easily retrievable knowledge base is. It not only helps us improve work efficiency, but also provides strong support for continuous learning and growth.
Through this article, we have learned about the current challenges of the knowledge base, and through the case, I have also explained how to use AI to create a clearer knowledge base directory structure. It can be seen that AI hides huge value in practical applications.
Of course, the road ahead is still long. The optimization of the knowledge base will be a continuous process, not only need to consider the optimization of the directory structure, but also need to consider establishing relationships between articles, turning into their own knowledge system. Combining these needs, we need to find a suitable knowledge base software. I have also just completed the selection of new knowledge base software, I know that the right one is the best.
Finally, I hope that every reader can get inspiration from this article, whether it is for their own knowledge management or further exploration of AI technology, they can continue to move forward with curiosity and exploratory spirit.
Link for the knowledge base assistant bot: Click this link.
Are there potential problems you can solve with LLM/AI technology? Or have they been done your way? Comment below to share your ideas.
Get Connected: My LinkedIn Page






