Package com.embabel.agent.rag.ingestion
Class MaterializedDocument
-
- All Implemented Interfaces:
-
com.embabel.agent.rag.ContainerSection,com.embabel.agent.rag.ContentElement,com.embabel.agent.rag.ContentRoot,com.embabel.agent.rag.Datum,com.embabel.agent.rag.HierarchicalContentElement,com.embabel.agent.rag.MaterializedSection,com.embabel.agent.rag.Section,com.embabel.agent.rag.ingestion.MaterializedContainerSection
public final class MaterializedDocument implements MaterializedContainerSection, ContentRoot
MaterializedDocument is the in-memory representation of a document with sections.
-
-
Constructor Summary
Constructors Constructor Description MaterializedDocument(String id, String uri, String title, List<MaterializedSection> children, Map<String, Object> metadata)
-
Method Summary
Modifier and Type Method Description StringgetId()Embabel id. StringgetUri()URI for the content. StringgetTitle()List<MaterializedSection>getChildren()Direct children of this section (not all descendants). Map<String, Object>getMetadata()Set<String>labels()Labels of the entity. -
Methods inherited from class com.embabel.agent.rag.HierarchicalContentElement
getParentId -
Methods inherited from class com.embabel.agent.rag.ingestion.MaterializedContainerSection
descendants, leaves -
Methods inherited from class com.embabel.agent.rag.Section
propertiesToPersist -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getUri
String getUri()
URI for the content. May be a URL. Not generated by Embabel, but from the source.
-
getChildren
List<MaterializedSection> getChildren()
Direct children of this section (not all descendants).
-
getMetadata
Map<String, Object> getMetadata()
-
-
-
-