NeuCharFramework (NCF)
  • NCF - NeuCharFramework
  • Projects

    • Preparation
    • NcfPackageSources Source Guide
    • DynamicWebApiEngine
    • Deployment
  • Help

    • Online Resources
    • Q&A Community
    • QQ Group (147054579)
    • Senparc WeChat SDK
  • Gitee
  • GitHub
  • English
  • 简体中文
GitHub
  • NCF - NeuCharFramework
  • Projects

    • Preparation
    • NcfPackageSources Source Guide
    • DynamicWebApiEngine
    • Deployment
  • Help

    • Online Resources
    • Q&A Community
    • QQ Group (147054579)
    • Senparc WeChat SDK
  • Gitee
  • GitHub
  • English
  • 简体中文
GitHub
  • Quickstart And Capability Guide

    • NcfPackageSources Beginner Quickstart (60 Minutes)
    • NcfPackageSources Source Guide
    • NCF Capability Deep Dive (Practical)
    • Version Upgrade Notes
  • XNCF Extension Modules

    • XNCF Extension Library Guide (Senparc.Xncf.xxx)
  • NCF Libraries

    • Senparc.Ncf.Core
    • Senparc.Ncf.Database (Database Foundation)
    • Senparc.Ncf.Repository
    • Senparc.Ncf.Service
    • Senparc.Ncf.SMS
    • Senparc.Ncf.Mvc.UI
    • Senparc.Ncf.Log
    • Senparc.Ncf.Utility
    • Senparc.Ncf.XncfBase
    • Senparc.Ncf.AreaBase
    • Senparc.Ncf.DatabasePlant
  • Core Interfaces

    • IXncfRegister Interface (Current)

NcfPackageSources Beginner Quickstart (60 Minutes)

Scope: current NcfPackageSources version
Documentation baseline: NcfPackageSources HEAD = 631f16b4 (2026-06-17)

1. What You Will Finish With This Guide

If this is your first time touching NCF source code, this guide gets you from zero to usable in about 60 minutes:

  • Clone and build NcfPackageSources.
  • Run the simulated host site Senparc.Web.
  • Complete first-time installation, admin login, and module enablement.
  • Validate a minimum AI / RAG flow.
  • Know where to troubleshoot first when errors appear.

2. Prerequisites Checklist

ItemRequirementHow to Verify
OSWindows / macOS / Linux-
.NET SDKRecommended 8.0 (aligned with the current version)dotnet --version
GitAble to clone repositoriesgit --version
BrowserChrome / Edge / Safari-
Local port5001 (HTTPS) is availableCheck Now listening on in startup logs
DatabaseStart with default SQLiteNo extra install needed

If your environment is not ready yet:

  • Development Environment
  • Get NCF Template Source Code

3. Minute 0-10: Clone and Confirm Commit

git clone https://github.com/NeuCharFramework/NcfPackageSources.git
cd NcfPackageSources
git rev-parse --short HEAD

Expected result:

  • A short SHA is printed (for example 631f16b4).

4. Minute 10-20: Restore and Build

dotnet restore src/NcfPackageSources_Include_NcfSimulatedSite.sln
dotnet build src/NcfPackageSources_Include_NcfSimulatedSite.sln

Expected result:

  • restore completes without blocking errors.
  • build ends with Build succeeded..

5. Minute 20-30: Run the Simulated Host Site

dotnet run --project tools/NcfSimulatedSite/Senparc.Web/Senparc.Web.csproj

Expected result:

  • Logs include Now listening on.
  • Usually includes https://localhost:5001.

Then open: https://localhost:5001

On first run, seeing the installer is expected.

6. Minute 30-40: Complete Installer and Admin Login

Recommended order:

  1. Finish the installer wizard. Reference: Installation
  2. Sign in as administrator. Reference: Admin Login
  3. Open admin backend and verify left menu loads. Reference: Admin Backend

Expected result:

  • You can enter the admin homepage.
  • Module management is accessible.

7. Minute 40-50: Enable Minimum AI / RAG Module Set

In Module Management, install and enable these modules first:

  • Senparc.Xncf.AIKernel
  • Senparc.Xncf.PromptRange
  • Senparc.Xncf.AgentsManager
  • Senparc.Xncf.KnowledgeBase

Optional:

  • Senparc.Xncf.MCP (if you also want to validate MCP routing)

Reference: Module Management

Expected result:

  • Module status shows installed/enabled (or equivalent labels).
  • Corresponding admin menu entries are visible and openable.

8. Minute 50-60: Run a Minimum End-to-End Validation

Use the smallest possible action chain:

  1. Configure available models in AIKernel (at least one chat model, preferably one embedding model too).
  2. Create one PromptCode in PromptRange.
  3. Import a test document in KnowledgeBase and run embedding.
  4. Run recall test in KnowledgeBase and confirm matched chunks are returned.
  5. (Optional) Create an Agent template in AgentsManager that references PromptCode and run a test.

Expected result:

  • Embedding task completes.
  • Recall test returns valid chunks.
  • Agent test no longer fails with “model not configured”.

9. Troubleshooting Matrix (Check This First)

SymptomCommon CauseFix
dotnet command not foundSDK missing or PATH not refreshedInstall/repair .NET SDK, reopen terminal, run dotnet --info
restore fails (timeout/source unavailable)Network or NuGet feed issueVerify network, retry dotnet restore, switch NuGet source if needed
build fails (SDK mismatch)Local SDK is too oldUpgrade to .NET 8 SDK, rerun dotnet build
Startup port conflict5001 already usedChange port in tools/NcfSimulatedSite/Senparc.Web/Properties/launchSettings.json
Installer page keeps showingInitial install not finished or DB init failedRedo installer flow and inspect startup logs
Module menu not visible after installModule not enabled or insufficient permissionRecheck module state and admin role permissions
Function count is 0Missing [FunctionRender] or scan missCheck AppService annotations and restart app
MCP route returns 404EnableMcpServer disabled or not registeredCheck module Register config and startup registration path
AppService returns 401/403Auth policy not satisfiedCheck login state, AdminOnly policy, Bearer/Cookie auth context
KnowledgeBase embedding failsEmbedding model not configuredConfigure embedding model in AIKernel first

10. Troubleshooting Priority (Use This Order)

  1. Module state: verify installed + enabled first.
  2. Function / MCP registration: then verify scan registration results.
  3. Auth and logs: only then inspect 401/403, policy, and runtime logs.

Following this order avoids getting lost in low-value log details.

11. Common Beginner Mistakes

  • Mistake 1: using IXncfRegister.Functions to understand Function registration.
    Current mechanism is [FunctionRender] on AppService methods.

  • Mistake 2: treating “installed” as “ready”.
    You usually still need enablement, permissions, and configuration.

  • Mistake 3: jumping into logs first.
    Without checking module state and config, logs become noisy and misleading.

  • Mistake 4: assuming AI errors are code bugs first.
    In many cases the root cause is model/key/quota/network configuration.

12. Next-Step Roadmap (By Role)

  • Beginner: NcfPackageSources Overview -> NCF Capability Deep Dive -> NCF FAQ

  • Module developer: XNCF Overview -> Develop XNCF -> Core Interface IXncfRegister

  • AI application developer: NCF Capability Deep Dive -> MCP Module Docs (currently under zh docs) -> module pages for AIKernel / PromptRange / AgentsManager / KnowledgeBase

  • Operations / release engineer: DatabasePlant Docs -> Windows Deployment / Docker Deployment

13. Open-Source Collaboration Entry Points

  • Framework-level issues (template/install/upgrade): use NCF Issues first.
    https://github.com/NeuCharFramework/NCF/issues

  • Core package source issues (base libs/module register/runtime behavior): use NcfPackageSources Issues/PRs.
    https://github.com/NeuCharFramework/NcfPackageSources/issues

Question-asking tips that dramatically improve response speed:

  1. Include commit SHA (or release tag).
  2. Include minimum reproducible steps (3-8 steps).
  3. Include key logs (after desensitization).
  4. State expected result vs actual result clearly.
Edit this page on GitHub
Last Updated:
Contributors: JeffreySu
Next
NcfPackageSources Source Guide