The Embedding API converts schemas into vector representations. These vectors capture structural meaning: schemas that are functionally similar produce vectors that are close together, regardless of surface-level differences like naming or ordering.
Embed multiple schemas and cluster them to discover structural categories in your organization's work:
schemas = load_all_project_schemas()
embeddings = [client.embed(schema=s) for s in schemas]
vectors = [e.vector for e in embeddings]
# Use any clustering library on the vectors
# Schemas in the same cluster share structural patterns