|
30 | 30 | "Uncensored model which will produce any outputs (biased, malicious). Useful for adversarial evals.", |
31 | 31 | reasoning_capable: |
32 | 32 | "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).", |
33 | 35 | } |
34 | 36 |
|
35 | 37 | interface Provider { |
|
43 | 45 | suggested_for_data_gen: boolean |
44 | 46 | suggested_for_evals: boolean |
45 | 47 | suggested_for_uncensored_data_gen: boolean |
| 48 | + supports_doc_extraction: boolean |
46 | 49 | uncensored: boolean |
47 | 50 | untested_model: boolean |
48 | 51 | structured_output_mode: string |
|
83 | 86 | { value: "tools", label: "Tools" }, |
84 | 87 | { value: "uncensored", label: "Uncensored" }, |
85 | 88 | { value: "finetune", label: "Finetune" }, |
| 89 | + { value: "doc_extraction", label: "Doc Extraction (RAG)" }, |
86 | 90 | { value: "reasoning_capable", label: "Reasoning" }, |
87 | 91 | { value: "suggested_for_evals", label: "Suggested for Evals" }, |
88 | 92 | ] |
|
211 | 215 | return p.supports_logprobs |
212 | 216 | case "tools": |
213 | 217 | return p.supports_function_calling |
| 218 | + case "doc_extraction": |
| 219 | + return p.supports_doc_extraction |
214 | 220 | case "uncensored": |
215 | 221 | return p.uncensored |
216 | 222 | case "finetune": |
|
364 | 370 | tooltip: CAPABILITY_TOOLTIP_MESSAGES.supports_logprobs, |
365 | 371 | }) |
366 | 372 | } |
| 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 | + } |
367 | 380 |
|
368 | 381 | return [...leading_badges, ...trailing_badges] |
369 | 382 | } |
|
805 | 818 | data-tip={CAPABILITY_TOOLTIP_MESSAGES.supports_function_calling} |
806 | 819 | ></span> |
807 | 820 | {/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} |
808 | 827 | {#if provider.supports_logprobs} |
809 | 828 | <span |
810 | 829 | class="w-2 h-2 bg-orange-400 rounded-full tooltip tooltip-top before:z-50 before:whitespace-normal" |
|
0 commit comments