Package com.embabel.agent.rag.support
Class FacetedRagService
-
- All Implemented Interfaces:
-
com.embabel.agent.rag.RagService,com.embabel.common.core.types.Described,com.embabel.common.core.types.HasInfoString
public final class FacetedRagService implements RagService
Rag service that combines multiple RagFacets and returns the best results
-
-
Field Summary
Fields Modifier and Type Field Description private final List<RagFacet<out Retrievable>>ragFacetsprivate final Stringnameprivate final Stringdescription
-
Constructor Summary
Constructors Constructor Description FacetedRagService(String name, String description, List<RagFacet<out Retrievable>> facets, List<RagFacetProvider> facetProviders)
-
Method Summary
Modifier and Type Method Description final List<RagFacet<out Retrievable>>getRagFacets()StringgetName()Name of the RAG service. StringgetDescription()RagResponsesearch(RagRequest ragRequest)Make a RAG request StringinfoString(Boolean verbose, Integer indent)-
-
Constructor Detail
-
FacetedRagService
FacetedRagService(String name, String description, List<RagFacet<out Retrievable>> facets, List<RagFacetProvider> facetProviders)
-
-
Method Detail
-
getRagFacets
final List<RagFacet<out Retrievable>> getRagFacets()
-
getName
String getName()
Name of the RAG service. Should be unique per application instance. User code may use this to select a RAG service.
-
getDescription
String getDescription()
-
search
RagResponse search(RagRequest ragRequest)
Make a RAG request
-
infoString
String infoString(Boolean verbose, Integer indent)
-
-
-
-