Package com.embabel.agent.rag.ingestion
Interface ContentElementRepository
-
- All Implemented Interfaces:
public interface ContentElementRepositoryImplemented by services that can retrieve Chunks and other ContentElements by id.
-
-
Method Summary
Modifier and Type Method Description abstract List<Chunk>findChunksById(List<String> chunkIds)abstract ContentElementfindById(String id)abstract ContentElementsave(ContentElement element)abstract Integercount()Return the total number of content elements in the repository abstract List<Chunk>findChunksForEntity(String entityId)-
-
Method Detail
-
findChunksById
abstract List<Chunk> findChunksById(List<String> chunkIds)
-
findById
abstract ContentElement findById(String id)
-
save
abstract ContentElement save(ContentElement element)
-
findChunksForEntity
abstract List<Chunk> findChunksForEntity(String entityId)
-
-
-
-