Error when conversation_stream=True
还没有人认领这个 Issue。
评估
调研方向
Start by reproducing the documented client.collections[collection].documents.search call with conversation_stream=True and compare it with the working synchronous request. Trace the response handling that produces the JSONDecodeError; done means the Python client can use conversation_stream without that error and the streamed response is usable.
由索引模型根据 Issue 内容生成。
描述
Hello. I'm trying to implement RAG like chat completion using python sdk.
While sync way is working OK.
Trying to use
response = client.collections[collection].documents.search(
search_parameters={
"q": message,
"query_by": "embedding",
"exclude_fields": "embedding",
"conversation_model_id": CONVERSATION_MODEL_NAME,
"conversation": True,
"conversation_stream": True,
}
)
Throws
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Is there any recomended way to use convesation_stream on python?
- 主要语言
- Python
- 星标
- 247
- 派生
- 66
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 7
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
typesense/typesense-python 的其他 Issue
-
IPv6 node addresses produce an invalid request URL可能已有人在做 @RaphaelFakhri 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
typesense/typesense-python#154 ·
-
`MultiSearchResponse` type does not account for union search response shape可能已有人在做 @tharropoulos 于 171 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
typesense/typesense-python#128 ·
-
`documents.Documents.import_()` `batch_size` argument is ignored, type of `import_parameters` is missing `batch_size`可能已有人在做 @tharropoulos 于 244 天前认领。 未关闭
难度 2/5 1-2 天 新手友好度 68/100
typesense/typesense-python#124 ·
-
难度 1/5 1 小时以内 新手友好度 68/100
typesense/typesense-python#100 ·
-
[Bug] - DeprecationWarning on instantiation of Client可能已有人在做 @tharropoulos 于 265 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
typesense/typesense-python#114 · 8 条评论 ·
查看 typesense/typesense-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
gramaziokohler/compas_timber#870 ·
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
autowarefoundation/autoware_carla_scenario#500 ·
维护者通常 1 天内回复
-
good first issue priority: low size: XS testing
难度 1/5 1-3 小时 新手友好度 86/100
cubrid-lab/cubrid-mcp-server#385 ·
维护者通常 1 天内回复
-
good first issue priority: low size: S testing
难度 2/5 1-3 小时 新手友好度 85/100
cubrid-lab/cubrid-cookbook-python#447 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100