UmweltDocs
Reference/Queries/embedding.listSpaces
embedding.listSpacesquerysince 0.1

Every embedding space of a project.

Request
umwelt call story.umw embedding.listSpaces '{
  "projectId": "ball"
}'
Request
const result = await client.embeddingListSpaces({ projectId: 'ball' });
Request
var result = engine.EmbeddingListSpaces(new ProjectId { ProjectIdValue = "ball" });
Response
[
  { "id": "demo", "dimensions": 3, "model": "example-3d" }
]

Payload

FieldTypeDescription
projectIdrequiredstringThe project to read.

Result

A list of EmbeddingSpace, each with:

FieldTypeDescription
idalwaysstringThe space’s id.
dimensionsalwaysintegerThe length of every vector in it, from 1 to 4096.
modelalwaysstringThe model that makes its vectors. The engine never reads it.

Errors

VALIDATION_FAILEDThe payload is malformed.
NOT_FOUNDThe project does not exist.
HANDSHAKE_REQUIREDOver the protocol, hello was not sent first.

Every code is listed in Errors.

See also

Was this page helpful?