Skip to content

Commit 5352ed5

Browse files
authored
Merge pull request #640 from Kiln-AI/scosman/extractors_in_model_lib
Add doc extractors to model library
2 parents feb15b1 + f272f22 commit 5352ed5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

app/web_ui/src/routes/(app)/models/+page.svelte

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"Uncensored model which will produce any outputs (biased, malicious). Useful for adversarial evals.",
3131
reasoning_capable:
3232
"Best suited for tasks that require multi-step reasoning or complex decision-making.",
33+
supports_doc_extraction:
34+
"Supports document extraction, used for RAG (Retrieval-Augmented Generation).",
3335
}
3436
3537
interface Provider {
@@ -43,6 +45,7 @@
4345
suggested_for_data_gen: boolean
4446
suggested_for_evals: boolean
4547
suggested_for_uncensored_data_gen: boolean
48+
supports_doc_extraction: boolean
4649
uncensored: boolean
4750
untested_model: boolean
4851
structured_output_mode: string
@@ -83,6 +86,7 @@
8386
{ value: "tools", label: "Tools" },
8487
{ value: "uncensored", label: "Uncensored" },
8588
{ value: "finetune", label: "Finetune" },
89+
{ value: "doc_extraction", label: "Doc Extraction (RAG)" },
8690
{ value: "reasoning_capable", label: "Reasoning" },
8791
{ value: "suggested_for_evals", label: "Suggested for Evals" },
8892
]
@@ -211,6 +215,8 @@
211215
return p.supports_logprobs
212216
case "tools":
213217
return p.supports_function_calling
218+
case "doc_extraction":
219+
return p.supports_doc_extraction
214220
case "uncensored":
215221
return p.uncensored
216222
case "finetune":
@@ -364,6 +370,13 @@
364370
tooltip: CAPABILITY_TOOLTIP_MESSAGES.supports_logprobs,
365371
})
366372
}
373+
if (providers.some((p) => p.supports_doc_extraction)) {
374+
trailing_badges.push({
375+
text: "Doc Extraction",
376+
color: "bg-amber-100 text-amber-800",
377+
tooltip: CAPABILITY_TOOLTIP_MESSAGES.supports_doc_extraction,
378+
})
379+
}
367380
368381
return [...leading_badges, ...trailing_badges]
369382
}
@@ -805,6 +818,12 @@
805818
data-tip={CAPABILITY_TOOLTIP_MESSAGES.supports_function_calling}
806819
></span>
807820
{/if}
821+
{#if provider.supports_doc_extraction}
822+
<span
823+
class="w-2 h-2 bg-amber-400 rounded-full tooltip tooltip-top before:z-50 before:whitespace-normal"
824+
data-tip={CAPABILITY_TOOLTIP_MESSAGES.supports_doc_extraction}
825+
></span>
826+
{/if}
808827
{#if provider.supports_logprobs}
809828
<span
810829
class="w-2 h-2 bg-orange-400 rounded-full tooltip tooltip-top before:z-50 before:whitespace-normal"

0 commit comments

Comments
 (0)