Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Connect a Local LangGraph RAG Knowledge Base to a Feishu Bot

AI summary

A technical tutorial describes connecting a locally hosted LangGraph enterprise knowledge-base RAG system to a Feishu bot. The bot receives messages through an outbound WebSocket connection, sends queries to the knowledge base’s /ask endpoint, and returns the generated answer to the chat. The described RAG stack uses FastAPI, ChromaDB, BM25 and vector retrieval, plus confidence-based routing. The tutorial also covers deployment, per-user session isolation through thread_id, lark-oapi responsibilities, and limitations: only text messages are handled, all users receive access to public documents, and local testing disables self-signed certificate verification.

企业知识库 × 飞书机器人 —— 从 0 到 1 接入

把一个本地跑的 LangGraph 企业知识库 RAG 系统,接上飞书机器人:员工在飞书里直接提问,机器人检索知识库后把答案回过来。本文讲清整条链路、每个文件和 SDK 各干什么,以及"为什么局域网就能跑、不需要公网域名"。

一、先想清楚:我们到底要做什么

假设你已经有一套企业知识库系统:文档入库、切分、向量化,员工提问时做混合召回、路由判断、大模型生成答案(本工程基于 FastAPI + LangGraph + ChromaDB,带 BM25 + 向量双路召回和置信度路由)。

现在的需求很朴素:不想再让人打开网页查资料,直接在日常用的飞书里问就行。

飞书机器人在这里只是一个薄适配层:

#LangGraph#Feishu#FastAPI#ChromaDB#lark-oapi

Original · 13 min readRead the original
Group chat

No comments yet. Start the conversation.