AM

alexai-mcp/langent

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

40 stars 10 forks 质量 66 趋势 0Apache-2.0

alexai-mcp/langent 是一个从 https://github.com/alexai-mcp/langent. 导入的 MCP 服务器候选

概览

alexai-mcp/langent 是一个从 https://github.com/alexai-mcp/langent. 导入的 MCP 服务器候选

概述(AI 翻译)

Langent 是一个 RAG(检索增强生成)框架,将您的本地工作空间转变为知识的三维宇宙星云。它结合了向量嵌入(ChromaDB)和知识图谱(Neo4j),提供深度互联的 AI 体验。

观看演示


v3 有什么新内容

  • 安全性:移除所有硬编码凭证,增加了密码注入防止,可选API密钥认证
  • 日志记录:将所有print()替换为结构化logging模块
  • 测试:包含40+测试用例的综合pytest套件
  • CI/CD:GitHub Actions for lint + test for Python 3.10/3.11/3.12
  • 工具:ruff(lint)、mypy(类型检查)、容器化部署用的 Dockerfile
  • API:时间计算请求模型、FastAPI依赖注入、健康检查端点
  • 漏洞修复:修复了工作流程中的${}插值错误,修复了MCP服务器方法调用错误

主要特色

  • 自动摄入:自动扫描并索引MD、PDF、TXT、CSV、JSON和YAML文件。
  • 混合RAG:将语义向量搜索与基于图的关系遍历合并,以获得更优越的上下文。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Langent v3 — Personal Ontology & 3D Knowledge Nebula

Langent is a RAG (Retrieval-Augmented Generation) framework that transforms your local workspace into a 3D cosmic nebula of knowledge. It combines vector embeddings (ChromaDB) with knowledge graphs (Neo4j) to provide a deeply connected AI experience.

Watch the Demo


What’s New in v3

  • Security: Removed all hardcoded credentials, added Cypher injection prevention, optional API key auth
  • Logging: Replaced all print() with structured logging module
  • Testing: Comprehensive pytest suite with 40+ test cases
  • CI/CD: GitHub Actions for lint + test across Python 3.10/3.11/3.12
  • Tooling: ruff (lint), mypy (type check), Dockerfile for containerized deployment
  • API: Pydantic request models, FastAPI dependency injection, health check endpoint
  • Bug fixes: Fixed ${} interpolation bug in workflows, fixed MCP server method call error

Key Features

  • Auto-Ingestion: Automatically scans and indexes MD, PDF, TXT, CSV, JSON, and YAML files.
  • Hybrid RAG: Merges semantic vector search with graph-based relationship traversal for superior context.
  • 3D Nebula Visualizer: Explore your knowledge base in an interactive Three.js 3D environment.
  • Knowledge Linking: Automatically discovers and creates relationships between your documents and entities.
  • MCP Integration: Built-in support for Model Context Protocol (MCP) to plug into Claude Desktop, Antigravity, and more.
  • LangGraph Workflows: Agent state machines with RAG + Graph reasoning pipeline.

Installation & Quick Start

1. Install via Pip

git clone https://github.com/AlexAI-MCP/langent.git
cd langent
pip install -e .

2. Configure Environment

cp .env.example .env

Edit .env to set your LANGENT_WORKSPACE (the folder containing your documents).

3. Ingest & Serve

langent ingest --workspace ./samples  # Start with sample data
langent serve                         # Open http://localhost:8000

4. Docker (Alternative)

docker build -t langent .
docker run -p 8000:8000 -v ./workspace:/app/workspace langent

Development

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Lint
ruff check langent/ tests/

# Type check
在 GitHub 查看完整 README

安装

docker run -p 8000:8000 -v ./workspace:/app/workspace langent
新手?先看 mcpskill.org 教程 →