DiceStoreProperties

data class DiceStoreProperties(var type: String = "in-memory", var decay: DiceStoreProperties.Decay = Decay(), var vectorIndex: DiceStoreProperties.VectorIndex = VectorIndex())

Configuration for the Dice proposition store.

embabel.dice.store.type selects the backend: graph (Drivine/Neo4j) or in-memory (default).

Constructors

Link copied to clipboard
constructor(type: String = "in-memory", decay: DiceStoreProperties.Decay = Decay(), vectorIndex: DiceStoreProperties.VectorIndex = VectorIndex())

Types

Link copied to clipboard
data class Decay(var enabled: Boolean = true, var intervalMs: Long, var k: Double = 2.0, var pruneStale: Boolean = false)

The scheduled decay tick (materialise cached confidence, then apply lifecycle transitions).

Link copied to clipboard
data class VectorIndex(var enabled: Boolean = true)

The proposition embedding vector index (graph backend). Only enabled is configurable: its label, property, name, and similarity are fixed by the @VectorIndex annotation on PropositionNode.embedding and live as constants on DrivinePropositionRepository.

Properties

Link copied to clipboard
Link copied to clipboard

Backend kind: graph or in-memory.