Package sk.iway.iwcm.rag.vectorstore
Class VectorStoreDataSourceResolver
java.lang.Object
sk.iway.iwcm.rag.vectorstore.VectorStoreDataSourceResolver
Resolves the datasource and database backend used by the RAG vector store.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult of selecting and inspecting the effective RAG datasource. -
Field Summary
Fields -
Method Summary
-
Field Details
-
RAG_DATASOURCE_NAME
- See Also:
-
PRIMARY_DATASOURCE_NAME
- See Also:
-
-
Method Details
-
resolve
Resolves the effective RAG datasource. An explicitly configuredrag_jpadatasource is authoritative and is never replaced by the primary datasource when it is unavailable or unsupported.- Returns:
- datasource resolution including backend and diagnostic details
-
getRagDataSourceName
Returns the name of a supported RAG datasource.- Returns:
- datasource name or
nullwhen its backend is unsupported
-
isRagAvailable
public static boolean isRagAvailable()Checks whether semantic search is enabled and a supported vector backend is available.- Returns:
truewhen the RAG vector store may be used
-