Skip to content
Back to skills

Document Modeling

ASecurity

"Model multimodal data with DocArray BaseDoc schemas, predefined

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolspythonbashfastapiapidatabasebackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill document-modeling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Document Modeling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Document Modeling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-document-modeling/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-document-modeling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: document-modeling
description: "Model multimodal data with DocArray BaseDoc schemas, predefined
  documents, DocList, DocVec, nested fields, and typed tensors."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# DocArray document modeling

Use this sub-skill when a task needs to define, validate, or batch multimodal DocArray data models.

## Route here for

- Designing `BaseDoc` schemas for text, image, audio, video, embeddings, metadata, and nested multimodal payloads.
- Choosing predefined document classes such as `TextDoc` and `ImageDoc` versus custom `BaseDoc` subclasses.
- Creating dynamic document classes with `create_doc()` or `create_doc_from_dict()`.
- Choosing `DocList` versus `DocVec` for streaming, reranking, shuffling, or contiguous ML batch processing.
- Modeling nested documents, nested `DocList` fields, optional fields, and shape-checked `NdArray` tensor fields.
- Handling optional Torch, TensorFlow, or JAX tensor type boundaries without claiming those optional backends are verified.

## Route elsewhere

- Serialization protocols, protobuf/JSON/bytes/CSV/DataFrame round-trips, file stores, S3, or FastAPI response payloads: use sibling [`serialization-storage`](../serialization-storage/).
- Vector indexes, nearest-neighbor search, document indexes, or external vector database backends: use sibling [`vector-indexing`](../vector-indexing/).

## Read these bundled references

1. Start with [API reference](references/api-reference.md) for verified imports, constructor signatures, core class behavior, and the modeling decision table.
2. Use [Workflows](references/workflows.md) for task recipes and copyable examples.
3. Use [Troubleshooting](references/troubleshooting.md) when validation, Pydantic config, `DocList`, `DocVec`, NumPy, or optional tensor backends fail.

## Safe bundled helper

Run [schema_smoke.py](scripts/schema_smoke.py) in an environment where DocArray is installed to confirm the main schema, dynamic document, `DocList`, typed tensor, and optional `DocVec` paths:

Run these commands from this sub-skill root (the directory containing this `SKILL.md`):

```bash
python scripts/schema_smoke.py --help
python scripts/schema_smoke.py
python scripts/schema_smoke.py --skip-docvec
```

The verified minimum scope is CPU with DocArray base plus proto, pandas, and web extras. Optional services and tensor frameworks are documented as boundaries, not verified defaults.

Files in this skill

  • SKILL.md2.4 KB
  • references/api-reference.md11.2 KB
  • references/troubleshooting.md7.8 KB
  • references/workflows.md8.3 KB
  • scripts/schema_smoke.py6.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.