Class VectorStoreDataSourceResolver

java.lang.Object
sk.iway.iwcm.rag.vectorstore.VectorStoreDataSourceResolver

public final class VectorStoreDataSourceResolver extends Object
Resolves the datasource and database backend used by the RAG vector store.
  • Field Details

  • Method Details

    • resolve

      Resolves the effective RAG datasource. An explicitly configured rag_jpa datasource 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

      public static String getRagDataSourceName()
      Returns the name of a supported RAG datasource.
      Returns:
      datasource name or null when its backend is unsupported
    • isRagAvailable

      public static boolean isRagAvailable()
      Checks whether semantic search is enabled and a supported vector backend is available.
      Returns:
      true when the RAG vector store may be used