Package com.embabel.agent.rag
Class AbstractWritableContentElementRepository
-
- All Implemented Interfaces:
-
com.embabel.agent.rag.WritableContentElementRepository,com.embabel.agent.rag.WritableStore,com.embabel.agent.rag.ingestion.ContentElementRepository,com.embabel.common.core.types.Named,java.util.function.Consumer,org.springframework.ai.document.DocumentWriter
public abstract class AbstractWritableContentElementRepository implements WritableContentElementRepository
Convenience base class for WritableRagService implementations.
-
-
Constructor Summary
Constructors Constructor Description AbstractWritableContentElementRepository(ContentChunker.Config chunkerConfig)
-
Method Summary
Modifier and Type Method Description final List<String>writeContent(MaterializedDocument root)Will call save on the root and all descendants. -
Methods inherited from class com.embabel.common.core.types.Named
getName -
Methods inherited from class com.embabel.agent.rag.WritableContentElementRepository
onNewRetrievables, provision -
Methods inherited from class com.embabel.agent.rag.ingestion.ContentElementRepository
count, findById, findChunksById, findChunksForEntity, save -
Methods inherited from class java.util.function.Consumer
accept, andThen -
Methods inherited from class org.springframework.ai.document.DocumentWriter
write -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AbstractWritableContentElementRepository
AbstractWritableContentElementRepository(ContentChunker.Config chunkerConfig)
-
-
Method Detail
-
writeContent
final List<String> writeContent(MaterializedDocument root)
Will call save on the root and all descendants. The database only needs to store each descendant and link by id, rather than otherwise consider the entire structure.
-
-
-
-