Chat flow integration with LLM module#2039
Open
ruwinirathnamalala wants to merge 4 commits into
Open
Conversation
PR from buerokratt/dev
Pull from buerokratt/dev
|
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.




This pull request introduces support for LLM orchestration streaming in the chatbot backend, integrating a new streaming workflow for LLM-generated responses. The main changes include adding a new HTTP endpoint for LLM streaming, implementing orchestration logic to handle streaming requests, and updating the workflow to conditionally route messages through the LLM orchestrator based on configuration. Additionally, environment variables and configuration files are updated to support the new orchestrator service.
LLM Orchestration Streaming Integration:
/channels/:channelId/llm-streamHTTP endpoint innotification-server/src/server.jsto trigger LLM orchestration streaming for a given channel, accepting chat history and message payloads.createLLMOrchestrationStreamRequestfunction innotification-server/src/openSearch.js, which handles streaming requests to the LLM orchestrator, manages active connections, processes SSE responses, and sends stream events to clients.notification-server/src/openSearch.jsand imports innotification-server/src/server.jsto include the new orchestration streaming function. [1] [2]Workflow and Queue Handling Updates:
DSL/Ruuter.public/backoffice/POST/internal/message-to-bot.ymlto check if the LLM module is active, fetch chat history, and route messages through the LLM stream endpoint if enabled.notification-server/src/sseUtil.jsto process pending stream requests by conditionally invoking the LLM orchestration stream logic if the request includes a message, otherwise falling back to the Azure OpenAI stream. [1] [2]Configuration Updates:
LLM_ORCHESTRATOR_URLtoconstants.iniandnotification-server/.envto configure the LLM orchestration service endpoint. [1] [2]