Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3588

Pydantic classes as single source of truth

$
0
0

I am working on a project where the backend is a python application using weaviate and a next.js frontend to interact with the users.

I would like to mantain a single source for the data schema and am using pydantic classes for this purpose.

My application objects are a pydantic class and my weaviate collection is described by a class derived from it with the collection name and the embedding module as aded metadata.

I am using the same application object to generate the typescript interfaces from it.

I would ideally want to use that pydantic class to generate the weaviate collection definition and/or constrain/typecheck the weaviate queries.

Any good practices to suggest?

Happy 2025 to all.


Viewing all articles
Browse latest Browse all 3588

Trending Articles