Skip to content

Error when conversation_stream=True #122

@Dufran

Description

@Dufran

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions