GH

ggozad/haiku.rag

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

641 stars 56 forks 품질 73 트렌드 43MIT

로컬 및 자체 호스팅 문서 검색을 위한 에이전트틱 RAG: 임베디드 LanceDB에서의 하이브리드 검색, 재랭킹 및 다중 모달 RAG, Docling 파싱과 MCP 서버

개요

페이지 번호와 섹션 제목에 대한 인용으로 자신의 문서에 관한 질문에 답하는 에이전트틱 RAG입니다. 내장 데이터베이스에서 로컬로 실행되며, 서버가 필요하지 않습니다. LanceDB, Pydantic AI, Docling 기반으로 구축되었습니다. 전체 문서는 ggozad.github.io/haiku.rag 에서 확인할 수 있습니다. - — 벡터 + 전체 텍스트와 상호 랭크 융합 - — 멀티모달 임베더(vLLM, VoyageAI, Cohere)는 그림 벡터를 텍스트와 같은 공간에 배치합니다; 텍스트-쿼리 → 도표 히트, 이미지-쿼리 지원 - — 인용(페이지 번호, 섹션 제목)과 함께 RAG 기능 - — 비전 지원 모델은 청크 텍스트와 함께 도표 바이트를 받습니다; 질문에 직접 이미지를 첨부하기 (Ask), 분석, MCP, 채팅 TUI - — 로컬 교차인코더, Cohere, Zero Entropy, vLLM - — 샌드박스 Python 코드 실행을 통한 복잡한 분석 작업(집계, 계산, 다중 문서 분석) - — 이전 질문 검색 결과를 인용한 증거로 대체하는 선택적 기능, 긴 대화를 중단...

개요(AI 번역)

페이지 번호와 섹션 제목에 대한 인용으로 자신의 문서에 대한 질문에 답하는 에이전트 RAG입니다. 기본적으로 Ollama를 통해 열린 모델이 포함된 내장된 LanceDB 데이터베이스에서 실행되므로 서버나 API 키가 필요하지 않습니다. Pydantic AI가 지원하는 어떤 제공업체도 대신 작동하며, 동일한 데이터베이스가 S3, GCS, Azure 또는 LanceDB Cloud에서 존재할 수 있습니다.

LanceDB, Pydantic AI, Docling 기반입니다. 문서: ggozad.github.io/haiku.rag.

특징

  • **PDF, 사무용 문서, HTML, 마크다운 및 Docling이 포함된 이미지를 인제스트하세요. 진행 중이거나 docling-serve에서 작성 중입니다. 저장된 DoclingDocument는 제목, 표, 사진 및 페이지 출처를 보관합니다.
  • **하이브리드 벡터 및 전체 텍스트 검색, 선택적 재랭킹(교차인코더, Jina, Cohere, Zero Entropy, vLLM, OpenRouter), 섹션 인식 컨텍스트 확장, 멀티모달 임베더를 통한 이미지 검색(vLLM, OpenRouter, VoyageAI, Cohere)을 통한 검색. 여러 명명된 데이터베이스를 동시에 통해.
  • RAG 기능으로 답변: 검색, 샌드박스 파이썬으로 문서 집계 및 집계, 페이지 번호와 제목 인용을 수행합니다. 비전 모델은 도표를 받습니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

haiku.rag

Agentic RAG that answers questions about your own documents with citations to page numbers and section headings. It runs on an embedded LanceDB database with open models through Ollama by default, so no server or API key is needed. Any provider Pydantic AI supports works in their place, and the same database can live on S3, GCS, Azure or LanceDB Cloud.

Built on LanceDB, Pydantic AI and Docling. Documentation: ggozad.github.io/haiku.rag.

Features

  • Ingest PDFs, office documents, HTML, Markdown and images with Docling, in-process or on docling-serve. The stored DoclingDocument keeps headings, tables, pictures and page provenance.
  • Search with hybrid vector and full-text retrieval, optional reranking (cross-encoders, Jina, Cohere, Zero Entropy, vLLM, OpenRouter), section-aware context expansion, and image search with a multimodal embedder (vLLM, OpenRouter, VoyageAI, Cohere). Across several named databases at once.
  • Answer with the RAG capability: it searches, runs sandboxed Python over the documents for counting and aggregation, and cites page numbers and headings. Vision models receive the figures. Optional capabilities compact earlier evidence in long conversations and require every answer to declare its grounding.
  • Check a citation by drawing its chunk on the page image, from the CLI, the chat TUI or Python.
  • Integrate through the Python API, native Pydantic AI capabilities, plugin hooks that observe document writes and transform searches, an MCP server for Claude Code, Codex and Claude Desktop, and a reference web app.
  • Operate with the haiku-ingester service (filesystem, HTTP, S3 and WebDAV sources, a SQLite or Postgres job queue with retries, a control plane and dashboard), tags and rollback, vacuum, and haiku-rag doctor health checks.

Installation

Python 3.12 or newer.

pip install haiku.rag        # Docling, the VoyageAI and Cohere embedders, every reranker, the TUI
pip install haiku.rag-slim   # the core, with extras chosen by you
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →