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 Summary
ConstructorsConstructorDescriptionRagInfrastructure(org.springframework.ai.vectorstore.VectorStore vectorStore, org.springframework.ai.embedding.EmbeddingModel embeddingModel, TurGenAiStoreProvider storeProvider, TurStoreInstance storeInstance, String storeCredential, String collectionName) Creates an instance of aRagInfrastructurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollectionNamerecord component.org.springframework.ai.embedding.EmbeddingModelReturns the value of theembeddingModelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestoreCredentialrecord component.Returns the value of thestoreInstancerecord component.Returns the value of thestoreProviderrecord component.final StringtoString()Returns a string representation of this record class.org.springframework.ai.vectorstore.VectorStoreReturns the value of thevectorStorerecord component.
-
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 aRagInfrastructurerecord class.- Parameters:
vectorStore- the value for thevectorStorerecord componentembeddingModel- the value for theembeddingModelrecord componentstoreProvider- the value for thestoreProviderrecord componentstoreInstance- the value for thestoreInstancerecord componentstoreCredential- the value for thestoreCredentialrecord componentcollectionName- the value for thecollectionNamerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
vectorStore
public org.springframework.ai.vectorstore.VectorStore vectorStore()Returns the value of thevectorStorerecord component.- Returns:
- the value of the
vectorStorerecord component
-
embeddingModel
public org.springframework.ai.embedding.EmbeddingModel embeddingModel()Returns the value of theembeddingModelrecord component.- Returns:
- the value of the
embeddingModelrecord component
-
storeProvider
Returns the value of thestoreProviderrecord component.- Returns:
- the value of the
storeProviderrecord component
-
storeInstance
Returns the value of thestoreInstancerecord component.- Returns:
- the value of the
storeInstancerecord component
-
storeCredential
Returns the value of thestoreCredentialrecord component.- Returns:
- the value of the
storeCredentialrecord component
-
collectionName
Returns the value of thecollectionNamerecord component.- Returns:
- the value of the
collectionNamerecord component
-