Files
Huu Le f072308d03 feat: Add dev mode (#610)
* Add UI components and static assets for chat interface

* feat: Add simple chat app example with FastAPI integration

* fix: update default workflow file path and improve error handling

* update doc

* change to file_path

* include changes from #614

* fix mypy

* support devmode for backend ts server

* Revert "support devmode for backend ts server"

This reverts commit bd943fd8c1.

* fix: polling should work when server not yet started

* bump chat-ui to fix syntax highlight issue

* fix: missing language for code editor

* enhance UI with shadow overlay

* enhance doc

* fix minor UI bugs

* enhance doc

* remove unessesary debug log

* fix wrong check

* increase delay time before trigger polling

* feat: support dev mode for backend ts server (#616)

* feat: support dev mode for backend ts server

* update message

* validate typescript file

* fix: format

* use temp file to avoid server restart

* fix format

* use npx tsc

* remove typescript deps

---------

Co-authored-by: thucpn <thucsh2@gmail.com>
Co-authored-by: Thuc Pham <51660321+thucpn@users.noreply.github.com>
2025-05-15 14:56:08 +07:00
..
2025-05-15 14:56:08 +07:00
2025-05-15 14:56:08 +07:00
2025-05-15 14:56:08 +07:00

A simple chat app

This guide explains how to set up and use the LlamaIndex server with a simple chatbot agent.

Prerequisites

  • uv installed (a fast Python package manager and runner)
  • An OpenAI API key

Steps

  1. Set the OpenAI API Key

    Export your OpenAI API key as an environment variable:

    export OPENAI_API_KEY=your_openai_api_key_here
    
  2. Run the Server Using uv

    Start the server with the following command:

    uv run workflow.py
    

    This will launch the FastAPI server using the workflow defined in main.py.

  3. Access the Application

    Open your browser and go to:

    http://localhost:8000
    

    You will see the LlamaIndex chat app UI, where you can interact with the agent.