
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
一站式AI框架
https://github.com/neuml/txtai/releases
https://github.com/neuml/txtai/releaseshttps://github.com/neuml/txtai/releaseshttps://github.com/neuml/txtai/releaseshttps://raw.githubusercontent.com/neuml/txtai/master/docs/images/architecture.png#gh-light-mode-only
txtai的核心组件是嵌入数据库,它是向量索引(稀疏和密集)、图网络和关系数据库的结合体。
这一基础支持向量搜索,或作为大型语言模型(LLM)应用的强大知识源。
构建自主智能体、检索增强生成(RAG)流程、多模型工作流等。
txtai功能摘要:
txtai基于Python 3.10+、https://github.com/huggingface/transformers%E3%80%81https://github.com/UKPLab/sentence-transformers%E5%92%8Chttps://github.com/tiangolo/fastapi%E6%9E%84%E5%BB%BA%E3%80%82txtai%E9%87%87%E7%94%A8Apache 2.0许可证开源。
有兴趣以简单安全的方式运行托管txtai应用吗?加入txtai.cloud预览版了解更多。
!https://raw.githubusercontent.com/neuml/txtai/master/docs/images/why.png#gh-light-mode-only
新的向量数据库、LLM框架及其他相关工具每天都在涌现。为什么选择基于txtai构建?
python# 几行代码即可开始使用 import txtai embeddings = txtai.Embeddings() embeddings.index(["正确", "不是我们所希望的"]) embeddings.search("积极", 1) #[(0, 0.29862046241760254)]
yaml# app.yml embeddings: path: sentence-transformers/all-MiniLM-L6-v2
bashCONFIG=app.yml uvicorn "txtai.api:app" curl -X GET "http://localhost:8000/search?query=积极"
以下部分介绍txtai的常见使用场景。还提供了超过60个https://neuml.github.io/txtai/examples%E3%80%82
构建语义/相似性/向量/神经搜索应用。
!https://raw.githubusercontent.com/neuml/txtai/master/demo.gif
传统搜索系统使用关键字查找数据。语义搜索理解自然语言,并识别具有相同含义的结果,而不一定是相同的关键字。
!https://raw.githubusercontent.com/neuml/txtai/master/docs/images/search.png#gh-light-mode-only
通过以下示例开始使用。
| 笔记本 | 描述 | |
|---|---|---|
| https://github.com/neuml/txtai/blob/master/examples/01_Introducing_txtai.ipynb ▶️ | txtai提供的功能概述 | 、与数据对话、与大型语言模型(LLM)交互的管道和工作流。
!https://raw.githubusercontent.com/neuml/txtai/master/docs/images/llm.png
以下是更多相关内容。
| 笔记本 | 描述 | |
|---|---|---|
| https://github.com/neuml/txtai/blob/master/examples/44_Prompt_templates_and_task_chains.ipynb | 构建模型提示并通过工作流将任务连接在一起 | 。
通过以下链接了解更多。
| 笔记本 | 描述 | |
|---|---|---|
| https://github.com/neuml/txtai/blob/master/examples/68_Analyzing_Hugging_Face_Posts_with_Graphs_and_Agents.ipynb | 使用图分析和智能体探索丰富数据集 | 通过使用知识库作为上下文约束输出来降低LLM幻觉风险。RAG通常用于“与您的数据对话”。
!https://raw.githubusercontent.com/neuml/txtai/master/docs/images/rag.png#gh-light-mode-only
txtai的一个新颖特性是它可以同时提供答案和来源引用。
| 笔记本 | 描述 | |
|---|---|---|
| https://github.com/neuml/txtai/blob/master/examples/52_Build_RAG_pipelines_with_txtai.ipynb | 检索增强生成指南,包括如何创建引用 | 将语言模型连接在一起以构建智能应用。
!https://raw.githubusercontent.com/neuml/txtai/master/docs/images/flows.png#gh-light-mode-only
虽然LLM功能强大,但有许多更小、更专业的模型在特定任务上表现更好、速度更快。这包括抽取式问答、自动摘要、文本转语音、转录和翻译模型。
| 笔记本 | 描述 | |
|---|---|---|
| https://github.com/neuml/txtai/blob/master/examples/14_Run_pipeline_workflows.ipynb ▶️ | 简单而强大的结构,用于高效处理数据 | ![在Colab中打开]([***] |
| https://github.com/neuml/txtai/blob/master/examples/09_Building_abstractive_text_summaries.ipynb | 运行抽象文本摘要 | ![在Colab中打开]([***] |
| https://github.com/neuml/txtai/blob/master/examples/11_Transcribe_audio_to_text.ipynb | 将音频文件转换为文本 | ![在Colab中打开]([***] |
| https://github.com/neuml/txtai/blob/master/examples/12_Translate_text_between_languages.ipynb | 简化机器翻译和语言检测 | ![在Colab中打开]([***] |
![安装](https://raw.githubusercontent.com/neuml/txtai/master
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务