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
- 分支
- 68
- 平均合併
- 22 小時 47 分鐘
- 30 天內合併 PR
- 8
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
typesense/typesense-python 的其他 Issue
-
`MultiSearchResponse` type does not account for union search response shape可能已有人在做 @tharropoulos 於 174 天前認領。 未關閉
難度 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 於 247 天前認領。 未關閉
難度 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 於 268 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 55/100
typesense/typesense-python#114 · 8 則留言 ·
-
難度 3/5 1-2 天 新手友好度 30/100
typesense/typesense-python#97 · 1 則留言 ·
查看 typesense/typesense-python 的全部 Issue
相似的 Issue
-
The changelog workflow excludes otelbot but not dependabot, so every Dependabot pull request fails the changelog check可能已有人在做 @ocelotl 今天認領。 未關閉
難度 1/5 1 小時以內 新手友好度 82/100
open-telemetry/opentelemetry-python#5825 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
cuga-project/cuga-agent#1020 ·
維護者通常 2 天內回覆
-
難度 1/5 1 小時以內 新手友好度 70/100
microsoft/playwright#43640 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
stac-utils/stac-fastapi-elasticsearch-opensearch#965 ·
維護者通常 2 天內回覆
-
from-review-extraction library privacy python severity:suggested
難度 2/5 1-3 小時 新手友好度 83/100
LearningCircuit/local-deep-research#7951 ·
維護者通常 2 天內回覆