khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
14.7k stars 730 forks source link

Generate dynamic diagrams (via Excalidraw) #940

Closed sabaimran closed 3 weeks ago

sabaimran commented 3 weeks ago

Add support for generating dynamic diagrams in flow with Excalidraw (https://github.com/excalidraw/excalidraw). This happens in three steps:

  1. Default information collection & intent determination step.
  2. Improving the overall guidance of the prompt for generating a JSON, Excalidraw-compatible declaration.
  3. Generation of the diagram to output to the final UI.
Inline diagram Expanded diagram
Screenshot 2024-10-17 at 13 58 33 Screenshot 2024-10-17 at 13 58 41

Add support on the web UI for rendering the diagrams in-flow.

Pending issues

rehandaphedar commented 3 weeks ago

Hi, not sure if this should be in a separate issue, but I think these two programs would be very good candidates for extending a feature like this: