Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Error when conversation_stream=True

Aperta
#122 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
Python
Stelle
247
Fork
68
Merge medio
22h 47m
PR unite (30g)
8

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di typesense/typesense-python

Tutte le issue di typesense/typesense-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.