Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pooled embedder

Reference for AlgentaPooledEmbedder — a runtime-only embedder that resolves lazily from the closed native runtime and is absent in a runtime-free install.

AlgentaPooledEmbedder is named in telys.embedding.__all__ but is not implemented in the public SDK. The symbol is a lazy proxy: it resolves from the signed native runtime the first time you reference it. Without the runtime installed, that resolution raises ImportError.

For an embedder that works in a plain pip install telys environment, use AlgentaBigramEmbedder or AlgentaMultigramEmbedder (on-device lexical, native kernel), or CallableEmbedder (bring your own dense model).

Availability

Confirm the runtime before you reach for it:

telys runtime status     # exit 0 = ready, 1 = not installed
telys runtime verify

Import behavior

The name is exported so from telys.embedding import AlgentaPooledEmbedder matches __all__, but the class body is supplied by the signed runtime at resolution time:

from telys.embedding import AlgentaPooledEmbedder

# Without the native runtime installed:
emb = AlgentaPooledEmbedder()
# Traceback (most recent call last):
#   ...
# ImportError: the native runtime is not installed

With the verified runtime present, the symbol resolves to the runtime's implementation and constructs normally.

Interface (when the runtime is present)

Like every Telys embedder, the resolved class implements the EmbeddingProvider protocol:

Member
Returns
Notes

profile

EmbeddingProfile

The frozen space descriptor for this pooled space.

embed_documents(texts)

ndarray[N, D] float32

Embeds documents for ingestion.

embed_queries(texts)

ndarray[N, D] float32

Embeds queries; defaults to embed_documents.

The concrete model_id, dimension, pooling, and other profile fields are defined by the runtime build, not the SDK. Read them from the constructed instance rather than assuming values:

Because the profile is runtime-defined, always create collections with dim=emb.profile.dimension. As with the other Algenta embedders, space identity comes from the profile — the constructor takes no space_id or model_id argument. See EmbeddingProfile & space compatibility.

Portability note

A collection built on the pooled space can only be reopened where the same runtime build is available, since the space identity is defined by the runtime. For a space that works in any environment — including runtime-free SDK installs — prefer a CallableEmbedder, whose profile and function you control end to end.

See also

Last updated

Was this helpful?