feat: add compare, trends routes, embedder service, and phase5 tests
This commit is contained in:
@@ -117,5 +117,35 @@
|
||||
<p class="abstract-en">{{ paper.abstract }}</p>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
{# Phase 5: 图片画廊 #}
|
||||
{% if paper_images %}
|
||||
<section class="image-gallery">
|
||||
<h2>论文图片</h2>
|
||||
<div class="gallery-grid">
|
||||
{% for img in paper_images %}
|
||||
<div class="gallery-item">
|
||||
<img src="{{ img.url }}" alt="{{ img.name }}" loading="lazy">
|
||||
<div class="gallery-caption">{{ img.name }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
{% endif %}
|
||||
|
||||
{# Phase 5: 相似论文推荐 #}
|
||||
{% if similar_papers %}
|
||||
<section class="similar-papers">
|
||||
<h2>相似论文推荐</h2>
|
||||
{% for sp in similar_papers %}
|
||||
<div class="similar-paper-item">
|
||||
<span class="similar-paper-title">
|
||||
<a href="/paper/{{ sp.arxiv_id }}">{{ sp.title_zh }}</a>
|
||||
</span>
|
||||
<span class="similar-paper-dist">🎯 {{ "%.3f"|format(sp.distance) }}</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user