Skip to main content

SemanticEntry

//ellmental/com.theagilemonkeys.ellmental.core.schema/SemanticEntry

SemanticEntry

@Serializable

data class SemanticEntry(val id: Id = generateId(), val content: String, val embedding: Embedding, val metadata: Map<String, String>? = null, val clusterId: Id? = null)

Semantic Entry

A Semantic Entry is a representation of a semantic concept, useful to perform semantic searches, and interacting with a vector embedding database.

Parameters

jvm

idthe id of the entry - if not provided, a random id will be generated
embeddingthe vector embedding of the entry
metadataa map of metadata associated with the entry - optional
clusterIdthe id of the cluster that the entry belongs to - optional

Constructors

SemanticEntry[jvm]
constructor(id: Id = generateId(), content: String, embedding: Embedding, metadata: Map<String, String>? = null, clusterId: Id? = null)

Types

NameSummary
Companion[jvm]
object Companion

Properties

NameSummary
clusterId[jvm]
val clusterId: Id? = null
content[jvm]
val content: String
embedding[jvm]
val embedding: Embedding
id[jvm]
val id: Id
metadata[jvm]
val metadata: Map<String, String>? = null