Skip to main content
Glama
Enesp4rl4k

enterprise-knowledge-integrator

by Enesp4rl4k

🧠 Enterprise Knowledge Integrator

기업의 비공개 데이터(PDF, Excel, Word, SQL)를 LLM 및 AI 에이전트에 연결하되, 내장된 PII 정화, 하이브리드 검색 및 MCP 서버를 제공합니다.

License: MIT Python 3.9+ FastAPI Model Context Protocol PRs Welcome

실시간 대시보드빠른 시작MCP 서버 설정아키텍처API 참조


🌟 왜 Enterprise Knowledge Integrator인가?

기업은 PDF 정책 문서, Excel/CSV 재무 모델, 계약서, ERP 메모 등에 분산된 지식을 보유하고 있습니다. 이 데이터를 LLM에 직접 주입하면 종종 PII 유출, 숫자에 대한 환각(hallucination), 문맥 손실로 이어집니다.

Enterprise Knowledge Integrator는 기업의 원본 파일을 모든 LLM 또는 AI 에이전트를 위한 깔끔하고, 인용 가능하며, 안전한 컨텍스트로 변환하는 오픈소스 경량 플러그 앤 플레이 미들웨어입니다.


Related MCP server: doc-intel MCP server

✨ 주요 기능

  • 📄 표 형식 인식 ETL(Excel & CSV): 스프레드시트 행을 마크다운 테이블과 의미론적 행 그룹으로 변환하여 LLM이 행 번호나 수식을 절대 환각하지 않도록 합니다.

  • 🛡️ 내장 PII 및 비밀정보 정화기: 임베딩 또는 프롬프트 주입 전에 TCKN, IBAN, 신용카드, 세금 ID(VKN), 전화번호 및 API 키를 자동으로 탐지하고 마스킹합니다.

  • 하이브리드 검색(Vector + Okapi BM25 + RRF): Reciprocal Rank Fusion(RRF)을 사용하여 밀집 임베딩과 희소 키워드 매칭을 혼합함으로써 금융 코드와 숫자에 대해 100% 정확도를 제공합니다.

  • 👥 역할 기반 접근 제어(RBAC): 문서 등급(Public, Internal, Confidential, Restricted) 및 부서 필터링을 적용합니다.

  • 🔍 인용 및 환각 검증기: 생성된 LLM 답변을 원본 문서와 대조하여 자동으로 확인하고 신뢰도 점수를 계산합니다.

  • 🔄 디렉터리 자동 감시: 폴더/클라우드 드라이브 마운트를 모니터링하고 추가되거나 수정된 파일을 자동으로 다시 색인합니다.

  • 🔌 유니버설 게이트웨이:

    • Model Context Protocol (MCP) — Cursor, Claude Desktop, Antigravity용.

    • FastAPI REST API — Swagger UI 포함.

    • 인터랙티브 웹 대시보드 (추가 종속성 불필요).

    • LangChain / LangGraph 도구 어댑터.


🏛️ 시스템 아키텍처

graph TD
    subgraph Ingestion ["1. Multi-Source Ingestion & ETL"]
        F1["📄 Documents (PDF, Word, Markdown)"]
        F2["📊 Tabular (Excel, CSV)"]
        F3["🗄️ Notes & Text Snippets"]
        F1 & F2 & F3 --> PII["🛡️ PII Masker (TCKN, IBAN, Cards)"]
        PII --> Chunk["✂️ Semantic & Parent-Child Chunker"]
    end

    subgraph Storage ["2. Storage & Hybrid Search Engine"]
        Chunk --> V["V-Store: Cosine Dense Embeddings"]
        Chunk --> B["BM25: Sparse Keyword Index"]
        V & B --> RRF["🎯 Reciprocal Rank Fusion (RRF)"]
    end

    subgraph Governance ["3. Security & Governance"]
        RRF --> RBAC["👥 RBAC & Clearance Filter"]
        RBAC --> Val["🔍 Citation & Grounding Validator"]
    end

    subgraph Interfaces ["4. LLM & Agent Gateways"]
        Val --> MCP["⚡ MCP Server (Claude Desktop / Cursor)"]
        Val --> API["🌐 FastAPI REST API (/api/v1/context)"]
        Val --> UI["🖥️ Modern Web Dashboard (/dashboard)"]
        Val --> SDK["💼 LangChain / LangGraph Adapter"]
    end

⚡ 60초 빠른 시작

1. 설치

git clone https://github.com/your-username/enterprise-knowledge-integrator.git
cd enterprise-knowledge-integrator
pip install -r requirements.txt

2. 웹 대시보드 및 API 실행

python -m knowledge_integrator.interfaces.api.app

브라우저에서 **http://localhost:8088/dashboard**를 열어 시각적 제어판에 접속하세요.


💻 CLI 사용법

텍스트 / 정책 메모 수집:

python -m knowledge_integrator.interfaces.cli.main ingest-text \
  --title "2025 Travel Policy" \
  --content "Daily travel allowance is 2,500 TL. Stays above 5,000 TL require CFO approval." \
  --category "policy"

파일 또는 디렉터리 수집(PDF, Excel, CSV, Word, Markdown):

python -m knowledge_integrator.interfaces.cli.main ingest ./company_docs/ --category "finance"

지식 베이스 검색:

python -m knowledge_integrator.interfaces.cli.main query "What is the travel budget limit?"

색인된 문서 목록:

python -m knowledge_integrator.interfaces.cli.main list

⚡ Model Context Protocol (MCP) 서버

기업 지식을 Claude Desktop, Cursor IDE 또는 Antigravity에 직접 연결하세요.

이 내용을 claude_desktop_config.json 또는 cursor 설정에 추가하세요:

{
  "mcpServers": {
    "company-knowledge": {
      "command": "python",
      "args": ["-m", "knowledge_integrator.interfaces.cli.main", "serve-mcp"]
    }
  }
}

사용 가능한 MCP 도구:

  • search_company_knowledge: 비공개 기업 문서를 대상으로 하이브리드 검색을 수행합니다.

  • get_company_context: 프롬프트에 주입할 수 있는 깔끔하고 인용된 컨텍스트를 반환합니다.

  • list_company_documents: 색인된 모든 소스와 메타데이터를 나열합니다.

  • ingest_company_note: 새 정책 또는 지식 조각을 동적으로 저장합니다.


🌐 REST API 참조

메서드

엔드포인트

설명

POST

/api/v1/ingest/file

파일 업로드 및 색인(PDF, Excel, CSV, Word, MD)

POST

/api/v1/ingest/text

원시 기업 메모 또는 규칙 수집

POST

/api/v1/context

인용된, LLM에 바로 사용할 수 있는 컨텍스트 블록 가져오기

POST

/api/v1/search

랭크된 청크 검색(하이브리드)

GET

/api/v1/documents

색인된 모든 문서 나열

DELETE

/api/v1/documents/{id}

문서 및 관련 임베딩 모두 삭제

대화형 Swagger 문서는 http://localhost:8088/docs에서 확인할 수 있습니다.


🤖 Python 및 LangChain / LangGraph 통합

from knowledge_integrator import KnowledgeEngine
from knowledge_integrator.agentic_cfo_adapter import AgenticCFOKnowledgeAdapter

# 1. Initialize engine
engine = KnowledgeEngine()

# 2. Ingest document
engine.ingest_file("budget_2025.xlsx", category="finance")

# 3. Retrieve LLM context
ctx = engine.get_context_for_llm("What was the Q3 software budget?")
print(ctx.context_text)

# 4. Use as a LangChain / LangGraph Tool for AI Agents
adapter = AgenticCFOKnowledgeAdapter(engine)
agent_tool = adapter.as_langchain_tool()

🐳 Docker 배포

docker-compose up -d

🧪 테스트 실행

python -m pytest knowledge_integrator/tests/ -v

📄 라이선스

이 프로젝트는 MIT 라이선스로 제공됩니다 — 자세한 내용은 LICENSE 파일을 참조하세요.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables querying enterprise documents (DOCX, PDF, PPTX) using natural language, with hybrid search and MCP integration for Claude Desktop and other agents.
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to extract structured data from PDFs with confidence scores and provenance, and to search, review, and correct documents via MCP tools, resources, and prompts.
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables document ingestion, semantic search, and retrieval-augmented generation via MCP tools and REST API, using vector embeddings and intelligent chunking.
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Provides a self-hosted knowledge index with document-level permissions, enabling AI agents to retrieve exactly the documents they are authorized to see via MCP. Supports OAuth 2.1, custom embedding models, and runs inside your network.
    41
    Apache 2.0

View all related MCP servers

Related MCP Connectors

  • Multi-engine search for AI agents. Trust scoring, local corpus, MCP-native. Self-hostable, BYOK.

  • Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Enesp4rl4k/enterprise-knowledge-integrator'

If you have feedback or need assistance with the MCP directory API, please join our Discord server