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 class Chunk.Companion
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String embeddableValue() 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.
      Chunk transform(String transformed)
      String infoString(Boolean verbose, Integer indent)
      abstract String getText() Text content
      String getUri() 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