MCPcopy Create free account
hub / github.com/cocoindex-io/cocoindex-code / EmbeddingCheckResult

Class EmbeddingCheckResult

src/cocoindex_code/shared.py:48–58  ·  view source on GitHub ↗

Outcome of a single embed-test call. See `check_embedding`. On success ``error is None`` and ``dim`` holds the embedding dimension. On failure ``error`` holds a one-line summary and ``traceback`` the full formatted traceback (for surfacing daemon-side stack traces in `ccc doctor`).

Source from the content-addressed store, hash-verified

46
47
48class EmbeddingCheckResult(NamedTuple):
49 """Outcome of a single embed-test call. See `check_embedding`.
50
51 On success ``error is None`` and ``dim`` holds the embedding dimension. On
52 failure ``error`` holds a one-line summary and ``traceback`` the full
53 formatted traceback (for surfacing daemon-side stack traces in `ccc doctor`).
54 """
55
56 dim: int | None
57 error: str | None
58 traceback: str | None = None
59
60
61async def check_embedding(

Callers 1

check_embeddingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected