# KnowledgeBase.AI **Repository Path**: ymjake/knowledgebase-aI ## Basic Information - **Project Name**: KnowledgeBase.AI - **Description**: KnowledgeBase.AI POC - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2026-03-16 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: Aspnet, KnowledgeBase, Agent, MCP ## README # KnowledgeBase.AI A knowledge base–driven AI customer service PoC built with .NET 10, featuring multi-path RAG retrieval, knowledge graph extraction, and agent orchestration. ## Tech Stack **Core** - .NET 10 + .NET Aspire - Vertical Slice Architecture + CQRS + Mediator (source generator) - Minimal API + API Versioning - FluentValidation + Mapperly - Serilog + OpenTelemetry **AI & Agent** - Microsoft Agent Framework (MAF) - Microsoft.Extensions.AI - GraphRag (managedcode) **Storage** - PostgreSQL 18 + pgvector + Apache AGE - Entity Framework Core + Npgsql **Documentation** - Swagger / OpenAPI ## Features ### Model Management - Multi-provider support: OpenAI / Azure OpenAI / Ollama / any OpenAI-compatible API - Per-model configuration: endpoint, API key, deployment name - Separate chat and embedding model management ### Knowledge Base - Document upload and processing (PDF, Word, Markdown, TXT) - Automatic chunking and vectorization pipeline - Multi-path retrieval: - **Vector Search** — semantic similarity via pgvector - **Full-Text Search** — BM25 lexical search via PostgreSQL FTS - **PageIndex Tree Search** — reasoning-based hierarchical document retrieval - **Hybrid Search** — RRF fusion of vector + BM25 results - **Rerank** — LLM-based result reranking ### Knowledge Graph - Automatic entity and relation extraction via LLM - Graph storage with PostgreSQL + Apache AGE - Per-knowledge-base graph profile: configurable extraction model, node/edge limits - Extraction run tracking with status and audit log - Graph visualization ### AI Agent - Customer service agent configuration - Bind models, knowledge bases, and MCP tools - System prompt management ### Session Management - Multi-turn conversation with context sliding window - SSE streaming responses - Auto-generated session titles (ChatGPT-style) - Session history and message persistence ### MCP Tools - External tool registration and management - Agent-tool binding - Tool call audit logging