SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.21365 · 2026

KSE-Web: An Analysis of Hybrid Retrieval and LLM-Assisted Query Expansion for Low-Resource Khmer Semantic Search

Nimol Thuon

arXiv · PDF · Open in the Atlas

Code that ran

13 of 17 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 11 failures of our instrument; 4 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/2608.21365.json · badge: /api/ran/2608.21365.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
back-kh/Khmer-Semantic-Search community
Papers with Code archive
13 ran · 4 no recorded run
FunctionStatusWhere it lives
BM25Index Ran
ran on a synthesized input · constructed an object; no result was computed
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("e0a2c08bc2b4b791")
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 an instance of its own class, BM25Index: the run constructed the object and did not call it, so no result was computed. 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 math
from collections import Counter, defaultdict
from dataclasses import dataclass
from typing import Dict, Iterable, List, Tuple
import numpy as np

# Create small sample data for BM25Index
doc_ids = ["doc1", "doc2", "doc3"]
tokenized_docs = [
    ["the", "quick", "brown", "fox"],
    ["the", "lazy", "dog"],
    ["quick", "brown", "fox", "jumps"]
]

ARGS = {
    "doc_ids": doc_ids,
    "tokenized_docs": tokenized_docs,
    "k1": 1.2,
    "b": 0.75,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BM25Index — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BM25Index output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
build_bm25 Ran
ran; our contract draft was wrong, not the code
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("866fba16ea7fde14")
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 BM25Index. 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 math
import re
from collections import Counter, defaultdict
from dataclasses import dataclass
from typing import Dict, Iterable, List, Tuple
import numpy as np

# Define small test data for build_bm25
doc_ids = ["doc1", "doc2", "doc3"]
doc_texts = [
    "ស្វាគមន៍ welcome",
    "ក្នុង inside text",
    "ការងារ work documents"
]

ARGS = {
    "doc_ids": doc_ids,
    "doc_texts": doc_texts,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BM25Index — a BM25Index output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BM25Index output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
char_ngrams Ran
ran; our contract draft was wrong, not the code
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("522090e2d514c116")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 re
from typing import Dict, Iterable, List, Tuple

def normalize_khmer_text(text: str) -> str:
    """Light normalization for character n-gram retrieval."""
    text = text.strip()
    text = re.sub('\\s+', '', text)
    return text

def char_ngrams(text: str, n_values: Tuple[int, ...]=(2, 3, 4)) -> List[str]:
    text = normalize_khmer_text(text)
    if not text:
        return []
    grams: List[str] = []
    length = len(text)
    for n in n_values:
        if length >= n:
            grams.extend((text[i:i + n] for i in range(length - n + 1)))
    return grams

ARGS = {
    "text": "សូស្វាគមន៍ក្នុងលោក",
    "n_values": (2, 3, 4)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
dcg_at_k Ran
ran; our contract draft was wrong, not the code
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("43bf686d2c6974d7")
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 float, ndim 0, dtype family float, shape () 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 math
from typing import Dict, Iterable, List, Tuple

def dcg_at_k(labels: List[int], k: int) -> float:
    labels = labels[:k]
    score = 0.0
    for i, rel in enumerate(labels, start=1):
        score += (2 ** rel - 1) / math.log2(i + 1)
    return score

ARGS = {
    "labels": [3, 2, 3, 0, 1, 2],
    "k": 4
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () 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
dense_encode Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("f41f2beff28b0d8b")
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 ndarray, ndim 2, dtype family float, shape (2, 8) 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 numpy as np

# Mock SentenceTransformer to avoid downloading models
class MockSentenceTransformer:
    def __init__(self, model_name: str):
        self.model_name = model_name
    
    def encode(self, texts, batch_size=None, convert_to_numpy=False, normalize_embeddings=False, show_progress_bar=False):
        # Return embeddings of shape (num_texts, embedding_dim)
        embeddings = np.random.randn(len(texts), 8).astype(np.float32)
        if normalize_embeddings:
            embeddings = embeddings / (np.linalg.norm(embeddings, axis=1, keepdims=True) + 1e-8)
        return embeddings

# Monkey-patch the import
import sys
from unittest.mock import MagicMock

mock_module = MagicMock()
mock_module.SentenceTransformer = MockSentenceTransformer
sys.modules['sentence_transformers'] = mock_module

ARGS = {
    'texts': ['Hello world', 'This is a test'],
    'model_name': 'all-MiniLM-L6-v2',
    'batch_size': 2,
    'prefix': 'search_query: '
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sentence_transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 8) — shape (2, 8) 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
evaluate_run Ran
ran; our contract draft was wrong, not the code
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("355a807679ab62e5")
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 dict. 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 math
from collections import Counter, defaultdict
from typing import Dict, Iterable, List, Tuple
import numpy as np

# Construct valid arguments for evaluate_run

# Create a run dict: maps query IDs to lists of (doc_id, score) tuples
run = {
    "q1": [
        ("doc1", 0.9),
        ("doc2", 0.8),
        ("doc3", 0.7),
        ("doc4", 0.6),
        ("doc5", 0.5),
        ("doc6", 0.4),
        ("doc7", 0.3),
        ("doc8", 0.2),
        ("doc9", 0.1),
        ("doc10", 0.05),
    ],
    "q2": [
        ("doc2", 0.95),
        ("doc4", 0.85),
        ("doc6", 0.75),
        ("doc8", 0.65),
        ("doc10", 0.55),
    ],
    "q3": [
        ("doc1", 0.88),
        ("doc3", 0.77),
        ("doc5", 0.66),
    ],
}

# Create qrels dict: maps query IDs to dicts of {doc_id: relevance_score}
# Relevance scores > 0 indicate relevant documents
qrels = {
    "q1": {
        "doc1": 2,
        "doc2": 1,
        "doc3": 0,
        "doc4": 2,
        "doc11": 1,
    },
    "q2": {
        "doc2": 2,
        "doc4": 1,
        "doc6": 2,
        "doc12": 1,
    },
    "q3": {
        "doc1": 1,
        "doc3": 1,
        "doc5": 1,
        "doc7": 2,
    },
}

# Define cutoffs as tuple
cutoffs = (5, 10)

ARGS = {
    "run": run,
    "qrels": qrels,
    "cutoffs": cutoffs,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
get_first Ran
ran; our contract draft was wrong, not the code
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("b1a087686a8476e2")
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 str. 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
import numpy as np
from typing import Dict, Iterable, List, Tuple

torch.manual_seed(0)

# Construct arguments for get_first function
row = {
    'name': 'Alice',
    'age': 30,
    'city': 'New York',
    'country': None,
}

keys = ['country', 'city', 'state']

default = 'unknown'

ARGS = {
    'row': row,
    'keys': keys,
    'default': default,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
load_documents Ran
ran; our contract draft was wrong, not the code
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("b9c3618d91912788")
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, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 json
import tempfile
import os

# Create a temporary JSONL file with test data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, 'test_documents.jsonl')

# Write test JSONL data
test_data = [
    {'doc_id': 'doc_001', 'title': 'First Document', 'text': 'This is the body of the first document.'},
    {'id': 'doc_002', 'doc_title': 'Second Document', 'body': 'This is the body of the second document.'},
    {'document_id': 'doc_003', 'title': 'Third Document', 'content': 'This is the content of the third document.'},
    {'title': 'Fourth Document', 'contents': 'This is the contents of the fourth document.'},
    {'cleaned_text': 'This is a document with only cleaned text.'},
]

with open(temp_file, 'w', encoding='utf-8') as f:
    for item in test_data:
        f.write(json.dumps(item) + '\n')

ARGS = {
    'path': temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
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
load_qrels Ran
ran; our contract draft was wrong, not the code
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("8772de2956a1a1a4")
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 dict. 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 csv
import tempfile
import os

# Create a temporary TSV file with qrels data
temp_dir = tempfile.mkdtemp()
qrels_path = os.path.join(temp_dir, "qrels.tsv")

# Write sample qrels data
qrels_content = """qid	did	rel
q1	doc1	1
q1	doc2	0
q2	doc1	2
q2	doc3	1
q3	doc2	1
"""

with open(qrels_path, 'w', encoding='utf-8') as f:
    f.write(qrels_content)

ARGS = {
    'path': qrels_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
minmax Ran
ran, violated the contract we drafted
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("0b8da80a15fb112a")
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 ndarray, ndim 1, dtype family float, shape (6,) 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 numpy as np

# Create a simple numpy array of scores
scores = np.array([0.1, 0.5, 0.3, 0.9, 0.2, 0.8], dtype=np.float32)

ARGS = {
    "scores": scores
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (6,) — shape (6,) 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
normalize_khmer_text Ran
ran; our contract draft was wrong, not the code
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("b5c9df74f54329f8")
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 str. 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 re

def normalize_khmer_text(text: str) -> str:
    """Light normalization for character n-gram retrieval."""
    text = text.strip()
    text = re.sub('\\s+', '', text)
    return text

ARGS = {
    "text": "សួស្តីអ្នក   ស្វាគមន៍   ក្នុងកម្ពុជា"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
read_jsonl Ran
ran; our contract draft was wrong, not the code
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("4fc027c853affddb")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 json
import tempfile
import os

# Create a temporary JSONL file with valid content
temp_dir = tempfile.mkdtemp()
jsonl_path = os.path.join(temp_dir, "test.jsonl")

with open(jsonl_path, 'w', encoding='utf-8') as f:
    f.write(json.dumps({"key1": "value1", "number": 42}) + "\n")
    f.write(json.dumps({"key2": "value2", "nested": {"inner": "data"}}) + "\n")
    f.write("\n")  # empty line to test skipping
    f.write(json.dumps({"key3": "value3"}) + "\n")

ARGS = {
    "path": jsonl_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
top_docs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("5d7210013125669d")
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 list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# Construct arguments for top_docs function
doc_ids = ["doc_1", "doc_2", "doc_3", "doc_4", "doc_5"]
scores = np.array([0.9, 0.7, 0.95, 0.6, 0.8])
top_k = 3

ARGS = {
    "doc_ids": doc_ids,
    "scores": scores,
    "top_k": top_k,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
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
load_queries Not yet run
unverified (harvested, no recorded run)
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("4a54feefd1f8167e")
How it ran

no invocation recorded.

main Not yet run
unverified (harvested, no recorded run)
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("b84f26eda680ba83")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("43aa639ab15c4862")
How it ran

no invocation recorded.

write_outputs Not yet run
unverified (harvested, no recorded run)
back-kh/Khmer-Semantic-Search/codes/evaluate_retrieval.py
code served (permissive licence) · get_code("074de82d829145f8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 17 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.

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

As a low-resource language, Khmer presents several retrieval challenges, including limited annotated data, ambiguous word boundaries, weak support in multilingual embedding models, and frequent mixed Khmer-English usage. This paper presents KSE-Web, an analysis of hybrid retrieval and LLM-assisted query expansion for Khmer semantic search. We construct the dataset from approximately 17K candidate Khmer titles and retain 3K cleaned full-text Khmer documents after filtering, normalization, deduplication, and document-length control. The dataset includes 300 manually reviewed user-style Khmer search queries and silver relevance labels with partial human verification. We evaluate character n-gram BM25, multilingual dense retrieval, hybrid BM25+dense retrieval, and LLM-assisted query expansion using Qwen2.5 models. Experimental results show that BM25 achieves the strongest overall performance, reaching 0.943 Recall@10 and 0.876 nDCG@10. Hybrid BM25+dense retrieval performs comparably, achieving 0.929 Recall@10 and 0.871 nDCG@10, while dense retrieval alone performs lower. LLM-assisted query expansion does not outperform non-expanded retrieval; however, Qwen2.5-3B produces substantially stronger expandedquery results than Qwen2.5-0.5B, suggesting that LLM size and expansion quality matter for low-resource Khmer retrieval. Our analysis further shows that direct LLM expansion can introduce topic drift, generic terms, and noisy reformulations, while simple filtering may remove useful semantic cues. These findings highlight both the potential and limitations of LLM-assisted retrieval for Khmer semantic search and provide a foundation for future Khmer retrieval datasets with stronger humanverified annotations and Khmer-aware retrieval models. The dataset and documentation will be made available at github.com/back-kh/Khmer-Semantic-Search.

For agents

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

get_harvested_code_for_paper("2608.21365")
get_code_for_paper("2608.21365")
have("2608.21365")

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

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

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

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

Connect an agent — have() is free.