Error when conversation_stream=True
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Python
- Stars
- 247
- Forks
- 66
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 7
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from typesense/typesense-python
-
IPv6 node addresses produce an invalid request URLPossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
typesense/typesense-python#154 ·
-
`MultiSearchResponse` type does not account for union search response shapePossibly taken @tharropoulos claimed this 171 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
typesense/typesense-python#128 ·
-
`documents.Documents.import_()` `batch_size` argument is ignored, type of `import_parameters` is missing `batch_size`Possibly taken @tharropoulos claimed this 244 days ago. Open
Difficulty 2/5 1-2 days Newbie friendliness 68/100
typesense/typesense-python#124 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
typesense/typesense-python#100 ·
-
[Bug] - DeprecationWarning on instantiation of ClientPossibly taken @tharropoulos claimed this 265 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
typesense/typesense-python#114 · 8 comments ·
All issues in typesense/typesense-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
MISP/misp-workbench#496 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
fossasia/visdom-dev#69 ·
Maintainers usually reply within 3 days
-
[Bug] Parameters named like a property break to_xcal()Possibly taken @atharvasalunke1267 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
collective/icalendar#2018 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day