Liking cljdoc? Tell your friends :D

hyperphor.alzabo.datagen

Generate example data for Alzabo schemas

Generate example data for Alzabo schemas
raw docstring

*generation-context*clj

Context for data generation including generated entities and configuration

Context for data generation including generated entities and configuration
sourceraw docstring

add-entity!clj

(add-entity! kind entity)

Add a generated entity to the context

Add a generated entity to the context
sourceraw docstring

add-kindclj

(add-kind kind obs)
source

context-stringclj

(context-string object)
source

determine-generation-orderclj

(determine-generation-order schema)

Determine the order to generate entities based on field dependencies. Kinds that are referenced by others are generated first.

Determine the order to generate entities based on field dependencies.
Kinds that are referenced by others are generated first.
sourceraw docstring

generate-entitiesclj

(generate-entities kind
                   schema
                   &
                   {:keys [count context kind-modifier] :as params})

Ask LLM to generate entities based on schema. context is a related object (eg a Band for generating Songs) kind-modifier is text to add to kind/description (eg "fictional")

Ask LLM to generate entities based on schema.
context is a related object (eg a Band for generating Songs)
kind-modifier is text to add to kind/description (eg "fictional") 
sourceraw docstring

generate-sample-dataclj

(generate-sample-data schema
                      &
                      {:keys [entity-counts llm-enabled? seed]
                       :or {entity-counts {} llm-enabled? true seed 42}})

Generate sample data for an entire schema

Generate sample data for an entire schema
sourceraw docstring

get-entitiesclj

(get-entities kind)

Get all entities of a given kind

Get all entities of a given kind
sourceraw docstring

kind-dependenciesclj

(kind-dependencies schema kind-name)

Get the kinds that a given kind depends on (via field references)

Get the kinds that a given kind depends on (via field references)
sourceraw docstring

object-labelclj

(object-label obj)
source

regularizeclj

(regularize x)
source

reset-context!clj

(reset-context! config)

Reset the generation context

Reset the generation context
sourceraw docstring

topological-sortclj

(topological-sort schema)

Topological sort of kinds based on dependencies. Returns a sequence of kinds in dependency order (dependencies first). Handles cycles by breaking them arbitrarily.

Topological sort of kinds based on dependencies.
Returns a sequence of kinds in dependency order (dependencies first).
Handles cycles by breaking them arbitrarily.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close