Interface WritableContentElementRepository

  • All Implemented Interfaces:
    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 interface WritableContentElementRepository
     implements WritableStore, ContentElementRepository
                        

    WritableRagService that also allows us to load and save ContentElements.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • 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
      Unit provision() Provision this rag service if necessary
      abstract Unit onNewRetrievables(List<Retrievable> retrievables) The Retrievables have been saved to the store, but Retrievables are special, and we probably want to embed them
      • Methods inherited from class com.embabel.agent.rag.WritableStore

        writeContent
      • Methods inherited from class java.util.function.Consumer

        accept, andThen
      • Methods inherited from class org.springframework.ai.document.DocumentWriter

        write
      • Methods inherited from class com.embabel.agent.rag.ingestion.ContentElementRepository

        count, findById, findChunksById, findChunksForEntity, save
      • Methods inherited from class com.embabel.common.core.types.Named

        getName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • provision

         Unit provision()

        Provision this rag service if necessary

      • onNewRetrievables

         abstract Unit onNewRetrievables(List<Retrievable> retrievables)

        The Retrievables have been saved to the store, but Retrievables are special, and we probably want to embed them