Skip to content

eleanor.backend

Eleanor Framework Backend Module

This module provides layered backend components for the Eleanor Framework, including low-level external service access, ORM mappings, DAO implementations, backend service implementations, frontend APIs, and scheduled job implementations.

Connections managed by the backend include:

  • RDBMS
  • LLM Inferencing Endpoints
  • Vector Storage (Milvus)
  • Memgraph

Backend services can be started via the CLI using the following commands:

  • python -m eleanor backend api
  • python -m eleanor backend jobs

Functions

prefixed_uuid

prefixed_uuid(prefix: str) -> Callable[[str], str]

Generate a UUID with a given prefix.

Intended use case is to generate easier to read pkids.

Example
pkid: Mapped[str] = mapped_column(
    String(100),
    primary_key=True,
    default=prefixed_uuid(__tablename__),
    comment="",
)

Parameters:

  • prefix (str) –

    The prefix to be added to the UUID.

Returns:

  • str ( Callable[[str], str] ) –

    The generated UUID with the prefix.