{"id":27997,"library":"nucliadb-models","title":"NucliaDB Models","description":"Data models and validation for NucliaDB, the AI-powered search database. Version 6.13.0.post6240 supports Python 3.10-3.12. Released as part of the nucliadb project, with frequent releases following nucliadb's release cadence.","status":"active","version":"6.13.0.post6240","language":"python","source_language":"en","source_url":"https://github.com/nuclia/nucliadb","tags":["nucliadb","models","pydantic","ai-search"],"install":[{"cmd":"pip install nucliadb-models","lang":"bash","label":"latest"}],"dependencies":[{"reason":"core dependency for data models","package":"pydantic","optional":false},{"reason":"used for serialization","package":"protobuf","optional":false}],"imports":[{"wrong":"from nucliadb_models.resource import Resource","symbol":"Resource","correct":"from nucliadb_models.resource import Resource"}],"quickstart":{"code":"from nucliadb_models.resource import Resource\nfrom nucliadb_models.text import TextField\n\nresource = Resource(\n    slug=\"example\",\n    texts={\"en\": TextField(body=\"Hello world\")}\n)\nprint(resource.model_dump_json(indent=2))","lang":"python","description":"Create a NucliaDB resource model and serialize to JSON."},"warnings":[{"fix":"Use `from nucliadb_models import ...` instead of `from nucliadb.models import ...`","message":"In v6.0.0, the package was renamed from nucliadb-models to nucliadb_models. All imports must use underscores.","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Replace `from nucliadb_models.field import Field` with specific field imports like `from nucliadb_models.text import TextField`","message":"The `Field` class from nucliadb_models.field is deprecated in favor of direct field classes like `TextField`, `FileField`.","severity":"deprecated","affected_versions":">=6.5.0"},{"fix":"Use `model_extra = 'allow'` in config if you need to allow extra fields.","message":"Model validation is strict: unknown fields raise a ValidationError by default. This differs from older pydantic v1 behavior.","severity":"gotcha","affected_versions":">=6.0.0"}],"env_vars":null,"search_vec":"'-3.12':21 '3.10':20 '6.13.0':16 'ai':11,41 'ai-pow':10 'ai-search':40 'cadenc':36 'data':3 'databas':14 'follow':32 'frequent':30 'model':2,4,38 'nucliadb':1,8,27,33,37 'part':24 'post6240':17 'power':12 'project':28 'pydant':39 'python':19 'releas':22,31,35 'search':13,42 'support':18 'valid':6 'version':15","created_at":"2026-05-09T05:53:10.714002+00:00","updated_at":"2026-05-09T05:53:10.714002+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmp5at27mlj/venv/lib/python3.12/site-packages/nucliadb_models/__init__.py\", line 27, in <module>\n    from .suggest import *  # noqa\n    ^^^^^^^^^^^^^^^^^^^^^^\n  File \"/tmp/tmp5at27mlj/venv/lib/python3.12/site-pack"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://nuclia.com","github":"https://github.com/nuclia/nucliadb","docs":null,"changelog":null,"pypi":"https://pypi.org/project/nucliadb-models/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","llm-agents","ai-ml","vector-search","serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}