Package com.embabel.agent.rag
Interface Chunk
-
- All Implemented Interfaces:
-
com.embabel.agent.rag.ContentElement,com.embabel.agent.rag.Datum,com.embabel.agent.rag.Embeddable,com.embabel.agent.rag.HierarchicalContentElement,com.embabel.agent.rag.Retrievable,com.embabel.agent.rag.Source,com.embabel.common.core.types.HasInfoString
public interface Chunk implements Source, HierarchicalContentElement
Traditional RAG. Text chunk
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classChunk.Companion
-
Method Summary
Modifier and Type Method Description StringembeddableValue()Embedding value of this retrievable object. Map<String, Object>propertiesToPersist()Properties to persist Subclasses can add their own properties but must call super to include these. Set<String>labels()Labels of the entity. Chunktransform(String transformed)StringinfoString(Boolean verbose, Integer indent)abstract StringgetText()Text content StringgetUri()URI for the content. -
Methods inherited from class com.embabel.agent.rag.Retrievable
getNeighbors -
Methods inherited from class com.embabel.agent.rag.Datum
getId, getMetadata -
Methods inherited from class com.embabel.agent.rag.HierarchicalContentElement
getParentId -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
embeddableValue
String embeddableValue()
Embedding value of this retrievable object.
-
propertiesToPersist
Map<String, Object> propertiesToPersist()
Properties to persist Subclasses can add their own properties but must call super to include these.
-
labels
Set<String> labels()
Labels of the entity. In Neo, this might include multiple labels. In a relational database, this might be a single table name.
-
infoString
String infoString(Boolean verbose, Integer indent)
-
-
-
-