0hq / tinyvector

A tiny nearest-neighbor embedding database built with SQLite and Pytorch. (In development!)
MIT License
772 stars 24 forks source link

Experimenting with Pydantic and Swagger APIs #1

Closed ivanleomk closed 1 year ago

ivanleomk commented 1 year ago

Hi will,

Chanced upon the project and thought i'd try to contribute a bit. I've managed to get a simple swagger and redoc documentation running which does request time validation with Pydantic.

I've done it for the first few APIs and plan on slowly working through the other APIs when I get the time.

I'm a bit unsure as to what might be the best way to type the response type of the db.info() call. Was wondering if you had any suggestions.

Somethings I'd like to figure out but am not too sure how to

0hq commented 1 year ago

Thanks Ivan, this is super helpful! Let me know when you're ready for me to merge.