jina-ai / jina

☁️ Build multimodal AI applications with cloud-native stack
https://docs.jina.ai
Apache License 2.0
20.91k stars 2.22k forks source link

Allow endpoints to work on single BaseDocs. #5960

Closed JoanFM closed 1 year ago

JoanFM commented 1 year ago

Describe the feature To give a more natureal FastAPI feeling, we can allow users to have request and response schemas with single BaseDocs (or even single Pydantic models).

Internally Jina can translate them into singleton DocLists lists.

TODO: