跳到正文

正在自动登录…

← 返回项目列表

hydra-db/open-glean

知识问答深度研究模型服务接入

Open Glean 是一个开源的 AI 知识工作平台,允许用户通过自然语言提问,从 Hydra DB 数据库中检索上下文并生成带引用的答案,支持深度研究、范围切换和多种模型接入。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/14 13:36:17 · 查看原文

普通TypeScript应用与服务
累计 Stars
1,602
当前热度
已过新项目期
仓库创建时间
打开 GitHub ↗项目网站 ↗

选用指南

AI 根据 README 整理 · 2026/10/14 13:36:17

使用方式

通过 Next.js 服务器运行,提供 Web 界面,用户通过浏览器访问,支持 Docker 部署。

查看 README 依据
- **Bring your own model**: any OpenAI-compatible endpoint. A searchable OpenRouter model picker with favourites is built in. ## Getting started ```bash npm ci npm run dev ``` Copy `.env.example` to `.env.local` and set at least `OPEN_GLEAN_SESSION_SECRET`. Everything else is optional. Without a Hydra key, the app shows a connect screen and asks for one. Open http://localhost:3000, then: 1. **Connect**: paste your Hydra DB API key (create one at [app.hydradb.com/keys](https://app.hydradb.com)) and pick a database.
2. **Add a model**: in Settings, paste an OpenRouter (or other OpenAI-compatible) key and pick a model. It only writes answers; search works without it. 3. **Ask away**, or add context first from the Context page (files, notes, URLs). ## Running with Docker ```bash docker build -t open-glean . docker run -p 3000:3000 \ -e OPEN_GLEAN_SESSION_SECRET=your-random-16-char-secret \ -e HYDRA_API_KEY=your-hydra-key \ -e OPENROUTER_API_KEY=your-openrouter-key \ -e OPEN_GLEAN_LLM_MODEL=google/gemini-3.7-flash \ -e MONGODB_URI=mongodb://your-mongo-host:27017 \ open-glean ```
部署要求

需要 Node.js 环境(npm ci)或 Docker;需要设置 OPEN_GLEAN_SESSION_SECRET,可选配置 Hydra API 密钥、OpenRouter API 密钥和 MongoDB URI。

查看 README 依据
- **Bring your own model**: any OpenAI-compatible endpoint. A searchable OpenRouter model picker with favourites is built in. ## Getting started ```bash npm ci npm run dev ``` Copy `.env.example` to `.env.local` and set at least `OPEN_GLEAN_SESSION_SECRET`. Everything else is optional. Without a Hydra key, the app shows a connect screen and asks for one. Open http://localhost:3000, then: 1. **Connect**: paste your Hydra DB API key (create one at [app.hydradb.com/keys](https://app.hydradb.com)) and pick a database.
2. **Add a model**: in Settings, paste an OpenRouter (or other OpenAI-compatible) key and pick a model. It only writes answers; search works without it. 3. **Ask away**, or add context first from the Context page (files, notes, URLs). ## Running with Docker ```bash docker build -t open-glean . docker run -p 3000:3000 \ -e OPEN_GLEAN_SESSION_SECRET=your-random-16-char-secret \ -e HYDRA_API_KEY=your-hydra-key \ -e OPENROUTER_API_KEY=your-openrouter-key \ -e OPEN_GLEAN_LLM_MODEL=google/gemini-3.7-flash \ -e MONGODB_URI=mongodb://your-mongo-host:27017 \ open-glean ```
已知限制

DocumentDB 不支持 IAM 数据库认证;未设置 OPEN_GLEAN_LLM_MODEL 时答案不可用;允许私有 LLM URL 默认关闭。

查看 README 依据
| `HYDRA_DEFAULT_DATABASE` | Optional default tenant. Requests with no explicit database scope to this one. | | `MONGODB_URI` | Chat persistence. A MongoDB connection string, or a bare DocumentDB cluster endpoint (auto-detected via `.docdb.*.amazonaws.com`). | | `MONGODB_DB` | Database name for chats (defaults to `open_glean`). | | `OPENROUTER_API_KEY` | Optional server-level LLM key. When set, users need not enter their own. | | `OPEN_GLEAN_LLM_MODEL` | Default answer model id, e.g. `openai/gpt-4o-mini`. No built-in default. Without it (or a per-user model), answers are unavailable. |
| `OPEN_GLEAN_LLM_BASE_URL` | Optional OpenAI-compatible endpoint for the server-level key (defaults to OpenRouter) | | `OPEN_GLEAN_ALLOW_PRIVATE_LLM_URL` | Allow an LLM base URL on a private or loopback address, for a local model such as Ollama or LM Studio. Off by default. It permits plaintext `http:` on a private address only. A public host still requires `https:`, and non-http schemes are rejected. | | `MONGODB_PROXY_KEY` | Shared secret for the Lambda proxy. The Lambda reads the same value as `PROXY_KEY`; the two names must match. |
| `OPEN_GLEAN_MAX_CONCURRENT_RESEARCH` | Concurrent Deep Research runs per instance (default 3). Each run costs many LLM and retrieval calls | > **DocumentDB does not support IAM database authentication.** The IAM token > path in the code cannot authenticate against Amazon DocumentDB. `AWS_REGION`, > `AWS_IAM_USER_ARN` and `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` are read > by that path and are listed here only to describe what it expects. For > DocumentDB, use a standard MongoDB connection string or the Lambda proxy. ## Stack

README

正在加载 README…

收录信息

仓库创建时间
2026/9/17 13:22:08
首次达标收录
2026/10/9 11:44:24
统计更新时间
2026/10/22 18:40:44

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

普通加权总分 3.8 / 5

新颖度
3.3
实用价值
4.3
成熟度
4.1
实质含量
3.6

由 Jev 模型根据仓库描述与 README 评估,2026/10/10 13:54:41 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/21 05:58:00
许可证标识
Apache-2.0
Fork 数
492
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目