Comments (3)
Some context about how things work right now:
If you spin up a server and go to "/docs" you'll see the OpenAPI spec exposed by the FastAPI server
We use an OpenAPI => TypeScript fetch() compiler from this script which generates all the code in fastapi_client. This is done in the dev server whenever python code is touched (so the typescript hot loader automatically kicks in). What's really nice is we type the FastAPI rest endpoints with pydantic models, which basically act as a very lightweight proto, and it generates the TypeScript interfaces on the other side.
For example:
Python: https://github.com/lilacai/lilac/blob/main/src/router_data_loader.py#L68
Auto-gen'd typescript:
Our RTK Query wrapped endpoint which components actually call:
lilac/src/web/src/store/api_dataset.ts
Line 104 in 203edaa
The python server speaks OpenAPI which is really nice because we can generate clients for any language: https://github.com/OpenAPITools/openapi-generator
Is there something that Next.js could give us beyond this?
from lilac.
Ok i see, makes more sense now. Is /tasks
intentionally left outside the api, or just not ported over? That was the one that was fooling me. Same goes with the other routes in server.py.
from lilac.
Ah yeah, everything in server.py is a bit old (for the original prototype). We'll clean this up as soon as the new concept builder rough draft is done, we were just keeping that around in case we wanted to look at it. But yeah, everything in server should get prefixed!
from lilac.
Related Issues (20)
- Add a * when importing from a directory full of parquet files
- Have a way to get to the concept labeler from the datasets page.
- When there are no examples, the concept labeler throws an error.
- When metadata panel is open, the cluster button does not work.
- Histograms are not visually correct. HOT 2
- Null fields in items don't update when row changes
- Support uploading data from the UI
- Mount Lilac in existing FastAPI App
- Unable to restore deleted row in UI HOT 2
- Restoring deleting rows crashes the server.
- Problem with editing filter in UI
- Support azure when reading from sources.
- Nomic Embed Prefixes
- There is no place in UI to select input field for clustering HOT 3
- Clustering freezing when assigning noise points: HOT 4
- Error while clustering HOT 1
- Clustering Error: Trying to Access Jina
- [Feature Request] Allow human to create and edit data in Lilac
- [Feature Request] Enable Local File Upload Option
- Invalid Input Error: Error in file "/data/dataset.csv" on line n: Maximum line size of 2097152 bytes exceeded!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lilac.