{#if knowledgeResults.length > 0 || query.startsWith('http')} {#each knowledgeResults as item, idx} {@const itemIdx = idx} {#if idx === 0 || item?.type !== knowledgeResults[idx - 1]?.type}
{#if item?.type === 'folder'} {$i18n.t('Folders')} {:else if item?.type === 'collection'} {$i18n.t('Collections')} {:else if item?.type === 'file'} {$i18n.t('Files')} {:else if item?.type === 'filesystem'} {$i18n.t('Filesystem')} {/if}
{/if} {/each} {/if} {#if filteredModels.length > 0}
{$i18n.t('Models')}
{#each filteredModels as model, modelIdx} {@const itemIdx = knowledgeResults.length + modelIdx} {/each} {/if}