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
id | the id of the entry - if not provided, a random id will be generated |
embedding | the vector embedding of the entry |
metadata | a map of metadata associated with the entry - optional |
clusterId | the 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
Name | Summary |
---|---|
Companion | [jvm] object Companion |
Properties
Name | Summary |
---|---|
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 |