Re-use chains
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
调研方向
从 chatify/main.py 中第 141 行和第 201 行附近的两个链接函数开始,然后阅读第 156 行附近引用的部分,以了解当前的链生命周期。重构这些入口点,使 extension 首次加载时创建一个链,并针对每个新查询执行该链。确认两个完成标准都已满足。
由索引模型根据 Issue 内容生成。
描述
Overview
Instead of creating a new chain with each prompt, we should create the chain once (maybe when the chatify extension is first loaded?) and re-use it to respond to each query.
Completion criteria
This requires refactoring this function and this function
- create a new chain when the extension is first loaded
- execute the chain when new queries are submitted
Resources (optional)
Mentioned here.
- 主要语言
- Python
- 星标
- 23
- 派生
- 11
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ContextLab/chatify 的其他 Issue
-
coding required help wanted non-coding
难度 4/5 3-5 天 新手友好度 35/100
ContextLab/chatify#42 ·
-
coding required enhancement help wanted
难度 5/5 一周以上 新手友好度 20/100
ContextLab/chatify#38 · 1 条评论 ·
-
coding required enhancement help wanted
难度 4/5 3-5 天 新手友好度 35/100
ContextLab/chatify#33 · 3 条评论 ·
-
non-coding
难度 5/5 一周以上 新手友好度 20/100
ContextLab/chatify#13 ·
-
Tests [TODO]未关闭coding required non-coding
难度 5/5 一周以上 新手友好度 25/100
ContextLab/chatify#9 · 12 条评论 ·
查看 ContextLab/chatify 的全部 Issue
相似的 Issue
-
feedback simulation workshop
难度 2/5 1-3 小时 新手友好度 73/100
githubnext/gh-aw-workshop#4455 ·
维护者通常 1 天内回复
-
Triage 🩺
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
[BUG] Container scenario crashes without expected_recovery_time, kube DNS example uses retry_wait未关闭needs-triage
难度 2/5 1-3 小时 新手友好度 77/100
krkn-chaos/krkn#1627 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
NousResearch/hermes-agent#136483 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复