Record Class TurRagContextBuilder.RagInfrastructure

java.lang.Object
java.lang.Record
com.viglet.turing.genai.TurRagContextBuilder.RagInfrastructure
Enclosing class:
TurRagContextBuilder

public static record TurRagContextBuilder.RagInfrastructure(org.springframework.ai.vectorstore.VectorStore vectorStore, org.springframework.ai.embedding.EmbeddingModel embeddingModel, TurGenAiStoreProvider storeProvider, TurStoreInstance storeInstance, String storeCredential, String collectionName) extends Record
Result of building RAG infrastructure. Contains the VectorStore for indexing/querying, plus the store provider and credentials needed for metadata operations (deindex, clear, etc.).
Since:
2026.1.14
Author:
Alexandre Oliveira
  • Constructor Details

    • RagInfrastructure

      public RagInfrastructure(org.springframework.ai.vectorstore.VectorStore vectorStore, org.springframework.ai.embedding.EmbeddingModel embeddingModel, TurGenAiStoreProvider storeProvider, TurStoreInstance storeInstance, String storeCredential, String collectionName)
      Creates an instance of a RagInfrastructure record class.
      Parameters:
      vectorStore - the value for the vectorStore record component
      embeddingModel - the value for the embeddingModel record component
      storeProvider - the value for the storeProvider record component
      storeInstance - the value for the storeInstance record component
      storeCredential - the value for the storeCredential record component
      collectionName - the value for the collectionName record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • vectorStore

      public org.springframework.ai.vectorstore.VectorStore vectorStore()
      Returns the value of the vectorStore record component.
      Returns:
      the value of the vectorStore record component
    • embeddingModel

      public org.springframework.ai.embedding.EmbeddingModel embeddingModel()
      Returns the value of the embeddingModel record component.
      Returns:
      the value of the embeddingModel record component
    • storeProvider

      public TurGenAiStoreProvider storeProvider()
      Returns the value of the storeProvider record component.
      Returns:
      the value of the storeProvider record component
    • storeInstance

      public TurStoreInstance storeInstance()
      Returns the value of the storeInstance record component.
      Returns:
      the value of the storeInstance record component
    • storeCredential

      public String storeCredential()
      Returns the value of the storeCredential record component.
      Returns:
      the value of the storeCredential record component
    • collectionName

      public String collectionName()
      Returns the value of the collectionName record component.
      Returns:
      the value of the collectionName record component