{#if loaded}
{$i18n.t('Leaderboard')}
{rankedModels.length}
{ loadEmbeddingModel(); }} />
{#if loadingLeaderboard}
{/if} {#if (rankedModels ?? []).length === 0}
{$i18n.t('No models found')}
{:else}
{$i18n.t('RK')}
{$i18n.t('Model')}
{$i18n.t('Rating')}
{$i18n.t('Won')}
{$i18n.t('Lost')}
{#each rankedModels as model, modelIdx (model.id)}
{model?.rating !== '-' ? modelIdx + 1 : '-'}
{model.name}
{model.rating}
{#if model.stats.won === '-'} - {:else}
{((model.stats.won / model.stats.count) * 100).toFixed(1)}%
{model.stats.won}
{/if}
{#if model.stats.lost === '-'} - {:else}
{((model.stats.lost / model.stats.count) * 100).toFixed(1)}%
{model.stats.lost}
{/if}
{/each}
{/if}
ⓘ {$i18n.t( 'The evaluation leaderboard is based on the Elo rating system and is updated in real-time.' )}
{$i18n.t( 'The leaderboard is currently in beta, and we may adjust the rating calculations as we refine the algorithm.' )}
{$i18n.t('Feedback History')}
{feedbacks.length}
{ exportHandler(); }} >
{#if (feedbacks ?? []).length === 0}
{$i18n.t('No feedbacks found')}
{:else}
{$i18n.t('User')}
{$i18n.t('Models')}
{$i18n.t('Result')}
{$i18n.t('Updated At')}
{#each paginatedFeedbacks as feedback (feedback.id)}
{#if feedback.data?.sibling_model_ids}
{feedback.data?.model_id}
{#if feedback.data.sibling_model_ids.length > 2} {feedback.data.sibling_model_ids.slice(0, 2).join(', ')}, {$i18n.t( 'and {{COUNT}} more', { COUNT: feedback.data.sibling_model_ids.length - 2 } )} {:else} {feedback.data.sibling_model_ids.join(', ')} {/if}
{:else}
{feedback.data?.model_id}
{/if}
{#if feedback.data.rating.toString() === '1'}
{:else if feedback.data.rating.toString() === '0'}
{:else if feedback.data.rating.toString() === '-1'}
{/if}
{dayjs(feedback.updated_at * 1000).fromNow()}
{ deleteFeedbackHandler(feedback.id); }} >
{/each}
{/if}
{#if feedbacks.length > 0}
{$i18n.t('Help us create the best community leaderboard by sharing your feedback history!')}
{ shareHandler(); }} >
{$i18n.t('Share to OpenWebUI Community')}
{/if} {#if feedbacks.length > 10}
{/if}
{/if}