simba

GitHamza0206Apache-2.0更新放缓

开箱即用的客服系统,内置评测与监控,基于知识库和 RAG 构建,可直接上生产环境。

OpenSource Production ready Customer service with built in Evals and monitoring

v0.4.0发布于 2025-03-11 11:50 UTC1,547star116fork同步于 2026-11-07 07:33 UTC

怎么上手

由 README 提炼,执行前请确认
git clone https://github.com/GitHamza0206/simba.git && cd simba
# 创建 .env 写入 OPENAI_API_KEY=your_openai_api_key
DEVICE=cpu make build && make up
硬件要求按 README 说明

README 未给出具体显存或内存要求;Docker 部署支持 CPU 与 NVIDIA GPU(DEVICE=cpu 或 DEVICE=cuda),LLM 可选 OpenAI 或本地模型。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

开源可自托管的客服 AI 助手,内置评测与监控,帮你掌控 RAG 全流程

开箱即用的客服系统,内置评测与监控,基于知识库和 RAG 构建,可直接上生产环境。

核心能力

  • 内置评测框架,追踪检索精度与生成质量
  • 可替换嵌入模型、LLM、向量库、分块与重排器
  • 提供 npm 聊天组件,一行代码嵌入网站
  • 带管理仪表盘,可管理文档并监控对话
  • 支持流式响应与 Celery 异步文档入库

容易踩的坑

需先在 .env 中配置 OPENAI_API_KEY,否则无法启动;默认访问 http://localhost:3000 仪表盘;Docker 部署需按硬件选择 DEVICE=cpu 或 DEVICE=cuda。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.4.0
  1. v0.4.0最新正式版2025-03-11 · 2025-03-11 11:50 UTC

    0.4.0 (2025-03-11)

    ✨ Features

    • add Mistral OCR integration with image support (dc1315f)
    • handle multiple documents edit / delete / parse (310165e)
    • Refactor embedding and parsing services with new EmbeddingService (b6ef53c)

    🐛 Bug Fixes

    • doc preview with latin-1 (cf2292d)
    • mistral ocr result embedding are removable & images are kept in UI (c4f10c5)
    • Simplify embedding processing and remove multimodal embedding components & Mistral_ocr is removable (aa2ffdb)

    📚 Documentation

    • added first draft of documentation with mintlify (ee55cd4)

    💎 Style

    • adding parser badge inside document list (8fd15b0)
  2. v0.3.02025-03-07 · 2025-03-07 22:30 UTC
    查看更新说明

    0.3.0 (2025-03-07)

    ✨ Features

    • ingesting with celery & multiple delete (0cb4315)
    • ingestion working with celery (e9eea7d)
    • refacto retrieval, added abstract class and modulari (684d51b)
    • sdk (c1cb8fe)

    🐛 Bug Fixes

    • fix multiple document delete (b080786)
    • modify kwargs in as_retriver function (bcec99d)

    📚 Documentation

    • add sdk quickstart in the readme (b5478af)
  3. v0.2.02025-03-06 · 2025-03-06 12:35 UTC
    查看更新说明

    0.2.0 (2025-03-06)

    ✨ Features

    • added clear_store & clean_index (19fc88c)
    • adding embeddingManager in simba-client (0376b70)
    • retriever is now in simba-sdk (63ce7db)
    • retriever.retreive (05edc21)
    • simba-client is now pip install package (3daa459)
    • simba-sdk (9482997)
    • simba-sdk document ingestion (a6f4988)

    🐛 Bug Fixes

    • fix retrieve documents returns langchain Document (fa93fc0)
  4. v0.1.12025-03-03 · 2025-03-03 10:07 UTC
    查看更新说明

    0.1.1 (2025-03-03)

    🐛 Bug Fixes

    • release-please file and ci (d82c6c5)
  5. v0.1.02025-03-02 · 2025-03-02 20:44 UTC
    查看更新说明

    0.1.0 (2025-03-01)

    ✨ Features

    • add framer motion (9ef44b3)
    • add sources in chat ui frame (47b8847)
    • document preview (7dc5d5e)
    • folder creation (1101214)
    • implement close chat functionality and update frontend design (96e94bf)
    • UX multiple document parsing & enabling (13fbd39)

    🐛 Bug Fixes

    🚦 Continuous Integration

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Twitter Follow

    See how easy it is to integrate Simba into your website

    What is Simba?

    Simba is an open-source customer service assistant built for teams who need full control over their AI. Unlike black-box solutions, Simba is designed from the ground up around evaluation and customization, so you can measure performance, iterate fast, and tailor the assistant to your exact needs.

    Why Simba?

    ProblemSimba's Solution
    Can't measure AI qualityBuilt-in evaluation framework with retrieval and generation metrics
    Generic responsesFully customizable RAG pipeline with your own data
    Hard to integrateDrop-in npm package for instant website integration
    Vendor lock-inOpen-source, self-hosted, swap any component

    Key Features

    • Evaluation-First Design - Track retrieval accuracy, generation quality, and latency out of the box. Know exactly how your assistant performs.
    • Fully Customizable - Swap embedding models, LLMs, vector stores, chunking strategies, and rerankers. Your pipeline, your rules.
    • npm Package for Easy Integration - Add a customer service chat widget to your website with a single npm install.
    • Modern Dashboard - Manage documents, monitor conversations, and analyze performance from a clean UI.
    • Production-Ready - Streaming responses, async processing, and scalable architecture.

    Quick Start

    Docker (Recommended)

    The fastest way to get Simba running:

    git clone https://github.com/GitHamza0206/simba.git
    cd simba
    

    Create a .env file:

    OPENAI_API_KEY=your_openai_api_key
    

    Run with Docker:

    # CPU
    DEVICE=cpu make build && make up
    
    # NVIDIA GPU
    DEVICE=cuda make build && make up
    

    Visit http://localhost:3000 to access the dashboard.

    Manual Installation

    If you prefer installing without Docker:

    pip install simba-core
    
    simba server
    simba front
    

    Development Setup with Claude Code

    If you're using Claude Code, you can set up the project with a single command:

    /setup --all
    

    This will automatically install all dependencies (Python, frontend, npm package) and start the infrastructure services. Other options:

    /setup --backend    # Python dependencies only
    /setup --frontend   # Next.js + simba-chat only
    /setup --services   # Start Docker infrastructure only
    

    Website Integration

    Add Simba to your website with the npm package:

    npm install simba-chat-widget
    
    import { SimbaChat } from 'simba-chat-widget';
    
    function App() {
      return (
        <SimbaChat
          apiUrl="https://your-simba-instance.com"
          theme="light"
        />
      );
    }
    

    That's it. Your customers now have an AI assistant powered by your knowledge base.

    Evaluation & Metrics

    Simba tracks what matters:

    • Retrieval Metrics - Precision, recall, relevance scores
    • Generation Metrics - Faithfulness, answer relevancy, latency
    • Conversation Analytics - User satisfaction, resolution rates

    Use these metrics to continuously improve your assistant's performance.

    Architecture

    ┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
    │   Your Website  │────▶│   Simba API     │────▶│  Vector Store   │
    │  (npm package)  │     │   (FastAPI)     │     │  (Qdrant/FAISS) │
    └─────────────────┘     └─────────────────┘     └─────────────────┘
                                   │                        ▲
                                   │                        │
                                   ▼                        │
                            ┌─────────────────┐     ┌───────┴─────────┐
                            │      LLM        │     │     Celery      │
                            │ (OpenAI/Local)  │     │   (Ingestion)   │
                            └─────────────────┘     └─────────────────┘
                                                            │
                                                            ▼
                                                    ┌─────────────────┐
                                                    │      Redis      │
                                                    │  (Task Queue)   │
                                                    └─────────────────┘
    

    Docker Deployment

    # CPU
    DEVICE=cpu make build && make up
    
    # NVIDIA GPU
    DEVICE=cuda make build && make up
    

    Customization Options

    ComponentOptions
    Vector StoreQdrant, FAISS, Chroma
    EmbeddingsOpenAI, HuggingFace, Cohere
    LLMOpenAI, Anthropic, Local models
    RerankerCohere, ColBERT, Cross-encoder
    ParserDocling, Unstructured, PyMuPDF

    Roadmap

    • Core evaluation framework
    • npm chat widget
    • Streaming responses
    • Multi-tenant support
    • Advanced analytics dashboard
    • Webhook integrations
    • Fine-tuning pipeline

    Contributing

    We welcome contributions! Fork the repo, create a branch, and submit a PR.

    Support