khoj-ai / khoj

Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
https://khoj.dev
GNU Affero General Public License v3.0
12.63k stars 640 forks source link

Use Single HTTP API for Robust, Generalizable Chat Streaming #858

Closed debanjum closed 1 month ago

debanjum commented 2 months ago

Stream Status Messages via Streaming Response from server to web client

Overview

Use a single API controller for advanced chat streaming and non-streaming mode. Improve code maintainability and generalize to other Khoj client apps.

Update web client to use the streamed response to show train of thought, stream response and render references.

Motivation

Details

Major