Quansight / ragna

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

unify API and UI servers #418

Closed pmeier closed 3 months ago

pmeier commented 4 months ago

Closes #417. This PR mostly moves stuff around there are very few actual functional changes:

The actual functional changes are all things listed in #417 and a massively simplified config. Since we no longer need a separate hostname / port / ... for the REST API and web UI, I was able to get completely rid of the sections. Meaning, our configuration at this point is flat.

This PR can already be reviewed. The code however is currently defunct due to bokeh/bokeh-fastapi#8.

pmeier commented 3 months ago

@pierrotsmnrd To run this you need to

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

You also need to create a new config with ragna init. Either set a different database URL there or remove any existing from ~/.cache/ragna/ragna.db. Finally, API and UI are now started at the same time with ragna deploy.

blakerosenthal commented 3 months ago

@pierrotsmnrd To run this you need to

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

You also need to create a new config with ragna init. Either set a different database URL there or remove any existing from ~/.cache/ragna/ragna.db. Finally, API and UI are now started at the same time with ragna deploy.

I needed to bump python to 3.10 in order to get this to install

pmeier commented 3 months ago

I needed to bump python to 3.10 in order to get this to install

Indeed, the next version of bokeh, which will be pulled in when installing panel from the main branch, is Python >= 3.10 only. So we'll likely have to migrate our code base soon. However, there is no need for this right now. The installation that works with 3.9 is

$ pip install \
    git+https://github.com/bokeh/bokeh-fastapi.git@main \
    git+https://github.com/holoviz/panel@7377c9e99bef0d32cbc65e94e908e365211f4421