SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.21274 · 2026

A Comparative Evaluation of Embeddings and LLMs in a Greek Book Publisher Setting -The CUP Dataset

Theodore Patkos, Dimitris Plexousakis, Panagiotis Papadakos, Katerina Papantoniou, Dimitris Garefalakis, Nikos Vardakis

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2607.21274.json · badge: /api/ran/2607.21274.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
beir-cellar/beir canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
cos_sim Ran
ran, honoured the contract we drafted
beir-cellar/beir/beir/util.py
code served (permissive licence) · get_code("8ca90d5388372be5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create two small tensors with distinct dimensions
# a: batch_size=2, embedding_dim=4
a = torch.randn(2, 4)

# b: batch_size=3, embedding_dim=4 (distinct first dim to probe shapes)
b = torch.randn(3, 4)

ARGS = {
    "a": a,
    "b": b,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dot_score Ran
ran, honoured the contract we drafted
beir-cellar/beir/beir/util.py
code served (permissive licence) · get_code("afa18317f44e63ad")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create two small tensors for the dot_score function
# a: shape (2, 4) - 2 vectors of dimension 4
# b: shape (3, 4) - 3 vectors of dimension 4
# This will produce a (2, 3) output matrix of dot products

a = torch.randn(2, 4)
b = torch.randn(3, 4)

ARGS = {
    "a": a,
    "b": b,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
greedy_decode Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
beir-cellar/beir/beir/reranking/models/mono_t5.py
code served (permissive licence) · get_code("d85aa8152436724b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch import nn
from typing import Optional

torch.manual_seed(0)

class MockConfig:
    def __init__(self):
        self.decoder_start_token_id = 2
        self.vocab_size = 100
        self.hidden_size = 64
        self.num_attention_heads = 2
        self.intermediate_size = 128

class MockEncoder(nn.Module):
    def __init__(self, hidden_size=64):
        super().__init__()
        self.hidden_size = hidden_size
        self.linear = nn.Linear(hidden_size, hidden_size)
    
    def forward(self, input_ids, attention_mask=None):
        batch_size = input_ids.size(0)
        return torch.randn(batch_size, input_ids.size(1), self.hidden_size)

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.config = MockConfig()
        self.encoder = MockEncoder(self.config.hidden_size)
        self.decoder = nn.Linear(self.config.hidden_size, self.config.vocab_size)
    
    def get_encoder(self):
        return self.encoder
    
    def prepare_inputs_for_generation(self, input_ids, encoder_outputs=None, past=None, attention_mask=None, use_cache=False):
        batch_size, seq_length = input_ids.size()
        return {
            'input_ids': input_ids,
            'encoder_outputs': encoder_outputs,
            'past': past,
            'attention_mask': attention_mask,
            'use_cache': use_cache
        }
    
    def __call__(self, input_ids=None, encoder_outputs=None, past=None, attention_mask=None, use_cache=False, **kwargs):
        if encoder_outputs is not None:
            hidden_states = encoder_outputs
        else:
            hidden_states = torch.randn(input_ids.size(0), input_ids.size(1), self.config.hidden_size)
        
        logits = self.decoder(hidden_states)
        return (logits,)

model = MockModel()
input_ids = torch.randint(0, 100, (2, 5), dtype=torch.long)
length = 3
attention_mask = torch.ones(2, 5, dtype=torch.long)
return_last_logits = True

ARGS = {
    'model': model,
    'input_ids': input_ids,
    'length': length,
    'attention_mask': attention_mask,
    'return_last_logits': return_last_logits
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
download_and_unzip Not yet run
unverified (harvested, no recorded run)
beir-cellar/beir/beir/util.py
code served (permissive licence) · get_code("20abda593481b27d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 0 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
cos_sim 7 other papers
7 dated earlier
1907.11692 (2019-07)
RoBERTa: A Robustly Optimized BERT Pretraining Approach
2104.08663 (2021-04)
BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models
2310.20501 (2023-10)
Neural Retrievers are Biased Towards LLM-Generated Content
and 4 more not named here
dot_score 6 other papers
6 dated earlier
1907.11692 (2019-07)
RoBERTa: A Robustly Optimized BERT Pretraining Approach
2104.08663 (2021-04)
BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models
2310.20501 (2023-10)
Neural Retrievers are Biased Towards LLM-Generated Content
and 3 more not named here
download_and_unzip 1 other paper
1 dated earlier
2104.08663 (2021-04)
BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models
greedy_decode 1 other paper
1 dated earlier
2104.08663 (2021-04)
BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

We present CUP, a Greek book retrieval benchmark consisting of 868 catalog records and 104 expert-annotated queries with graded relevance judgments. We evaluate sparse (BM25), dense (sentencetransformers), hybrid, and LLM-assisted retrieval methods in this book-search setting. Multilingual embeddings outperform Greekspecific models, while hybrid retrieval performs best overall. A query-level analysis shows that BM25 excels at named-entity queries, while dense and hybrid methods improve natural-language, noisy, cross-lingual, and concept queries. Field-aware prompting has modelspecific effects, while LLM TOC summarization improves TOConly retrieval and LLM post-filtering improves early-stage retrieval at a high cost. Overall, CUP enables real-world evaluation of Greek retrieval across lexical, semantic, noisy, and cross-lingual queries.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2607.21274")
get_code_for_paper("2607.21274")
have("2607.21274")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2607.21274.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2607.21274.svg)](https://syntology.ai/paper/2607.21274)

Connect an agent — have() is free.