Package com.embabel.agent.rag.ingestion
Class MultiIngester
-
- All Implemented Interfaces:
-
com.embabel.agent.rag.ingestion.Ingester,com.embabel.common.core.types.HasInfoString,java.util.function.Consumer,org.springframework.ai.document.DocumentWriter
public final class MultiIngester implements Ingester
Write to all RAG services that implement com.embabel.agent.rag.WritableStore. Users can override the org.springframework.ai.transformer.splitter.TextSplitter to control how text is split into documents.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<WritableStore>stores
-
Constructor Summary
Constructors Constructor Description MultiIngester(List<WritableStore> stores, Function0<TextSplitter> splitterProvider)
-
Method Summary
Modifier and Type Method Description List<WritableStore>getStores()Booleanactive()Is this ingester presently active? IngestionResultingest(String resourcePath)Ingest the resource at the given path. Unitaccept(List<Document> documents)StringinfoString(Boolean verbose, Integer indent)-
-
Constructor Detail
-
MultiIngester
MultiIngester(List<WritableStore> stores, Function0<TextSplitter> splitterProvider)
-
-
Method Detail
-
getStores
List<WritableStore> getStores()
-
ingest
IngestionResult ingest(String resourcePath)
Ingest the resource at the given path. Use Spring Resource conventions
-
infoString
String infoString(Boolean verbose, Integer indent)
-
-
-
-