Skip to main content

Knowledge Base Tutorial

Knowledge bases let Memfit work from your materials instead of relying only on model training data. Use them for product docs, team standards, vulnerability data, project notes, and reusable operational experience.

【Image: Knowledge base page overview, labeling list, create, import, and diagnostics】

What to Store

ContentExamplesUse Case
Product docsAPI docs, deployment docs, manualsAnswer based on product facts
Security materialsCVEs, exploit notes, hardening baselinesSecurity analysis and reports
Team standardsCoding, testing, delivery rulesCode review and document checks
Project materialsArchitecture, modules, changelogsOnboarding and troubleshooting
Experience notesFAQs, runbooks, incident recordsReuse team experience

Create a Knowledge Base

Click New Knowledge Base and fill in:

FieldRecommendation
NameUse a clear name, such as “Web Security Baseline”.
DescriptionState source, scope, and update time.
Type / TagsUse for filtering and management.
LengthControls entry length; keep default if unsure.

【Image: Create knowledge base dialog】

Add Materials

  • Drag files into Agent or the knowledge area for quick import.
  • Import documents from the knowledge base detail page.
  • Add manual entries for short rules, experience, or conclusions.
Scenario: Node.js dependency audit
Conclusion: Run tests and build before upgrading dependencies.
Source: Team release process 2026

【Image: Dragging files into a knowledge base】

Build the Knowledge Base

After adding materials, build the knowledge base so Memfit can chunk, index, and retrieve the content.

ParameterPurpose
chunkControls chunking strategy.
entrylenControls knowledge entry length.
concurrencyControls build concurrency.
disableERMDisables entity relationship modeling when enabled.

【Image: Build parameters panel】

Diagnose Availability

Use Knowledge Base Availability Diagnostics after building:

  1. Confirm retrieval works.
  2. Check whether query results are relevant.
  3. Check chunk length quality.
  4. Verify the model can answer from retrieved materials.
Based on this knowledge base, what security checks are required before launch?

【Image: Knowledge base diagnostics result】

Use in Agent

  1. Open the knowledge base resource area in Agent.
  2. Select or mount the target knowledge base.
  3. Ask Memfit to answer based on the mounted knowledge base.
Based on the mounted “Web Security Baseline” knowledge base, check whether this Nginx config meets the requirements.

【Image: Selecting a knowledge base in Agent】

Manage Knowledge Bases

OperationWhen to Use
Update materialsDocuments or rules changed.
RebuildMany materials were added or removed.
ClearSource data is wrong or needs complete rebuild.
Query entriesCheck whether a fact entered the index.
Inspect entities / vectorsDebug retrieval quality.

Common Issues

If AI does not use knowledge base content, confirm it is built and mounted, and explicitly ask Memfit to answer based on it.

If retrieval is inaccurate, split unrelated materials into separate knowledge bases and improve titles and structure.

If new imports do not take effect, rebuild or wait for build completion.

Next Steps

Published: