Quansight / ragna

RAG orchestration framework ⛵️
https://ragna.chat
BSD 3-Clause "New" or "Revised" License
177 stars 22 forks source link

serve web UI with FastAPI / uvicorn #414

Closed pmeier closed 4 months ago

pmeier commented 4 months ago

This PR makes two major changes:

  1. Remove the authentication logic in the UI and stub it out on the API. Since this will be refactored completely in a follow-up PR, there is no need to fix it here.
  2. Run the Ragna UI through FastAPI / uvicorn using bokeh-fastapi.

Neither bokeh-fastapi nor a version of panel that supports it is currently released. Thus, you need to run the following inside your environment to have a working UI:

pip install git+https://github.com/bokeh/bokeh-fastapi.git@refactor git+https://github.com/holoviz/panel.git@main

If you are on Python < 3.10 you also need to run pip install eval_type_backport.

pmeier commented 4 months ago

@blakerosenthal The remaining CI failures are expected and we can fix them later, but of course before we merge the deploy-dev branch into main.