Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error when conversation_stream=True

Open
#122 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
api

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from typesense/typesense-python

All issues in typesense/typesense-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.