Repository navigation
feat(streaming): add streaming conversation support - #123
Open
tharropoulos wants to merge 16 commits into
Open
tharropoulos wants to merge 16 commits into
tharropoulos wants to merge 16 commits into
Conversation
tharropoulos
force-pushed
the
stream-convo
branch
2 times, most recently
from
February 6, 2026 15:57
b868933 to
cce50e7
Compare
- introduce typed stream callbacks and message chunks for conversation search - add decorator-based StreamConfigBuilder and wire streaming params into search
- parse conversation stream sse lines into message chunks or search responses - combine streamed chunks into a final search response for async calls
- add async sse handling with chunk parsing, callbacks, and final response combine - wire stream_config and conversation_stream through async search api
- provide fake sse stream responses and contexts for unit tests - add integration fixtures for conversational streaming collections and docs
- test both async and sync version of the client - add unit tests and tests against real typesense instance
tharropoulos
force-pushed
the
stream-convo
branch
from
October 7, 2026 10:57
cce50e7 to
23a1838
Compare
tharropoulos
force-pushed
the
stream-convo
branch
from
October 7, 2026 11:01
3f4ba14 to
133f6fa
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
Add streaming conversational search (
conversation_stream) for bothdocuments.searchandmulti_search, in the sync and async clients.documents.search_stream()andmulti_search.perform_stream()return a context-managed stream. Iterate it for the answer's{conversation_id, message}pieces, then callget_final_response()for the full search response.search()/perform()withconversation_stream: Truestill accept astream_config(dict orStreamConfigBuilder) withon_chunk,on_completeandon_error, matchingtypesense-js. They return the final response.httpx'siter_linesgets the last one wrong.max_concurrent_requestsslot until it is closed.stream_read_timeout_secondssetting (default 60s, the server's LLM timeout). It is used as the read timeout for streams, since the first piece only arrives once the LLM starts answering.conversation,conversation_model_id,conversation_idandconversation_streamsearch parameters, and the top-levelconversationon multi-search responses.Tested with respx (failover, mid-stream errors, early close, httpx2) and against Typesense 30.2 and 31.0.rc18 with an OpenAI model (
-m open_ai).PR Checklist