arcana
345
Stars
11
Forks
7
Watchers
7
Open Issues
Apache-2.0
许可证
Elixir
语言
2025-12-23
创建时间
2026-11-09
最近更新
项目能做什么
面向 Elixir/Phoenix 的嵌入式 RAG 库,支持 Agent 工作流与仪表盘。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Arcana 🔮📚 [](https://livebook.dev/run?url=https%3A%2F%2Fgithub.com%2Fgeorgeguimaraes%2Farcana%2Fblob%2Fmain%2Flivebooks%2Farcana_tutorial.livemd) An embeddable RAG library for Elixir and Phoenix. Arcana lets you add vector search, knowledge graphs, and LLM-driven retrieval to any app that already has an Ecto repo, without standing up a separate vector database, indexing service, or orchestration layer. > [!TIP] > See [arcana-adept](https://github.com/georgeguimaraes/arcana-adept) for a complete Phoenix app with the Doctor Who corpus pre-ingested and ready to query. ## Why this exists Most RAG libraries are written in Python and assume you'll bolt them onto your stack via HTTP. That works, but it leaves you running a vector DB you don't otherwise need, juggling two languages, and gluing telemetry together across processes. The BEAM is particularly well-suited to RAG: pgvector is excellent, supervision trees are the right shape for long-running embedders and rerankers, telemetry is built into the platform, and your Phoenix app already has the Repo, the LiveView for the dashboard, and the user session for chat. Arcana takes that observation seriously. Everything lives inside your app: - **One Repo.** Documents, chunks, embeddings, and the knowledge graph are tables in your existing Postgres database. No new infrastructure. - **Local-first by default.** Embeddings run on Bumblebee with EXLA, EMLX (Apple Silicon), or Torchx. The cross-encoder reranker is also local. You can swap to OpenAI/Cohere/whatever, but you don't have to. - **One process model.** Embedders and rerankers are `Nx.Serving` instances under your supervision tree. Telemetry events are `:telemetry` spans you can already consume. There is no separate "RAG service" to operate. - **Pluggable, but not abstract.** Every step that can be replaced is a behaviour with a single callback and a sensible default. Custom rerankers, custom searchers, custom answerers — they're all 10-line modules. ## Three modes of operation Singh et al.'s 2025 [Agentic RAG survey](https://arxiv.org/abs/2501.09136) splits RAG systems into four progressively more flexible patterns. The key axis is **who decides the control flow**: | Pattern | Flow decided by | What it looks like | |---|---|---| | **Naive RAG** | nobody, there is none | embed → retrieve → generate, one shot | | **Advanced RAG** | author, at code time | naive + query rewriting, reranking, fusion | | **Modular RAG** | author, at code time | composable pluggable steps you wire together | | **Agentic RAG** | the LLM, at runtime | LLM picks tools each turn until it can answer | Arcana ships three usage shapes that map onto the last three slots: | Arcana surface | Singh slot | When to reach for it | |---|---|---| | `Arcana.search/2`, `Arcana.ask/2` | Advanced RAG | The default door. One call, sensible defaults: query rewriting, hybrid search, optional graph fusion, cross-encoder reranki阅读完整原文
商业机会分析 AI 生成
Arcana Pro: 商业级数据导入解析与连接器扩展包
| 产品构想 | 针对企业常见复杂文档格式(如扫描件 PDF、Excel 表格、Notion、Confluence)开发专用的 Elixir 预处理与分块连接器闭源插件,扩展原生仅支持简单文本的摄取能力。 |
| 核心功能 | 深度 PDF 表格与版面解析、Office 文档提取、增量同步 webhook、增强型多模态分块算子。 |
| 目标用户 | 需要将企业非结构化数据直接导入 Phoenix 内部知识库的中小企业研发人员与外包团队。 |
| 难度/周期 | 中等 · 4-6 周 · 成本:开发机器(带少量 GPU 验证环境)、第三方解析 API 测试额度(约 100-200 美元/月)。 |
| 收费模式 | 单一项目商业授权许可证(如 $299/应用)或年度商业订阅模式(商业 License)。 |
| 竞争风险 | Elixir 生态文档解析原生库相对匮乏,部分底层操作可能仍需调用系统依赖(如 Poppler/Tesseract),增加打包部署难度。 |
| 依据 | 已验证事实(源码依赖简单文本摄取,缺乏复杂企业文档解析支持)与 AI推测 |
Arcana Studio: 企业级 Phoenix LiveView 管理与可视化套件
| 产品构想 | 构建可直接挂载到 Phoenix 路由的即插即用高级管理后台,提供知识图谱交互式可视化、Prompt 调试、RAG 检索召回评测(Eval)与审计追踪能力。 |
| 核心功能 | 知识图谱可视化探索面板、RAG 召回命中率与质量评测面板(Eval 体系)、检索结果干预与标注界面、多租户文档隔离权限控制配置。 |
| 目标用户 | 在生产环境中部署 Arcana、需要向产品或运营人员交付知识库管理界面的全栈工程师。 |
| 难度/周期 | 中等 · 3-5 周 · 成本:极低(纯 Elixir/LiveView/JS 图表库开发,主要投入时间成本)。 |
| 收费模式 | 按席位或按实例销售的 Pro LiveView 组件授权(如 $49/月 或 $399 一次性买断)。 |
| 竞争风险 | 开发团队可能选择自行定制内部界面,对付费 UI 套件的支付意愿尚需验证。 |
| 依据 | 尚需验证的假设 |
BEAM 生态私有化 RAG 解决方案与技术支持服务
| 产品构想 | 为金融、电信或高并发业务场景的企业客户提供基于 BEAM/Nx/Bumblebee 的纯本地化/私有化 RAG 架构设计、性能调优和专家支持。 |
| 核心功能 | 本地 GPU 加速推断(Nx.Serving/EXLA)调优、超大 Postgres pgvector 索引性能优化、专用领域知识图谱构建与落地咨询。 |
| 目标用户 | 有强数据合规要求(不能走外部 API)、正在采用 Elixir 架构的中大型企业团队。 |
| 难度/周期 | 高 · 持续服务(按需介入) · 成本:极低(主要为专家时间成本)。 |
| 收费模式 | 技术咨询小时费(如 $150-$250/小时)或企业 SLA 年度保障合同。 |
| 竞争风险 | Elixir 社区整体规模相比 Python 偏小,需要私有化大模型/RAG 咨询的重度企业客群基数有限。 |
| 依据 | 数据支持的判断(Elixir 语言体量及项目 Star 数 345 反映的利基生态) |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| morluto/rea | 中文介绍暂未生成 Reverse engineer anything with agents, from app behavior dow |
452,801 | TypeScript |
| mattpocock/skills | 中文介绍暂未生成 Skills for Real Engineers. Straight from my .agents director |
322,047 | Shell |
| obra/superpowers | 中文介绍暂未生成 An agentic skills framework & software development methodolo |
316,320 | Shell |
| affaan-m/ECC | 中文介绍暂未生成 The agent harness performance optimization system. Skills, i |
301,386 | JavaScript |
| NousResearch/hermes-agent | 中文介绍暂未生成 The agent that grows with you |
262,741 | Python |
| anomalyco/opencode | 中文介绍暂未生成 The open source coding agent. |
226,184 | TypeScript |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2025-12-23,近 30 天仍在推送,发布过 22 个 Release |
| 社区活跃 | Star 345 / Fork 11 / Issue 7(数据支持,可自行核实) |
| 许可证 | Apache-2.0 |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/georgeguimaraes/arcana.git cd arcana docker compose up -d # 或参考 README 中的 docker run 命令
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。