Skip to content

feat(streaming): add streaming conversation support#123

Open
tharropoulos wants to merge 8 commits intotypesense:masterfrom
tharropoulos:stream-convo
Open

feat(streaming): add streaming conversation support#123
tharropoulos wants to merge 8 commits intotypesense:masterfrom
tharropoulos:stream-convo

Conversation

@tharropoulos
Copy link
Contributor

Change Summary

Follow typesense-js's way of streaming conversation support, through a stream_config dictionary to dictate which callback to invoke on chunks, completions and errors.

PR Checklist

- 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 tharropoulos force-pushed the stream-convo branch 2 times, most recently from b868933 to cce50e7 Compare February 6, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant