You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -35,6 +37,8 @@ export class RetrieverContainer {
35
37
rrf?: RRFRetriever
36
38
/** A retriever that reranks the top documents based on a reranking model using the InferenceAPI */
37
39
text_similarity_reranker?: TextSimilarityReranker
40
+
/** A retriever that replaces the functionality of a rule query. */
41
+
rule?: RuleRetriever
38
42
}
39
43
40
44
exportclassRetrieverBase{
@@ -93,3 +97,14 @@ export class TextSimilarityReranker extends RetrieverBase {
93
97
/** The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_text */
94
98
field?: string
95
99
}
100
+
101
+
exportclassRuleRetrieverextendsRetrieverBase{
102
+
/** The ruleset IDs containing the rules this retriever is evaluating against. */
103
+
ruleset_ids: Id[]
104
+
/** The match criteria that will determine if a rule in the provided rulesets should be applied. */
105
+
match_criteria: UserDefinedValue
106
+
/** The retriever whose results rules should be applied to. */
107
+
retriever: RetrieverContainer
108
+
/** This value determines the size of the individual result set. */
0 commit comments