MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / load_jsonl

Function load_jsonl

bench/embedding_experiment.py:24–31  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

22
23
24def load_jsonl(path: str) -> list[dict]:
25 cases = []
26 with open(path, "r", encoding="utf-8") as f:
27 for line in f:
28 line = line.strip()
29 if line:
30 cases.append(json.loads(line))
31 return cases
32
33
34def extract_handcrafted_features(prompt: str, system_prompt: str | None = None) -> np.ndarray:

Callers 1

run_experimentFunction · 0.70

Calls 2

openFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected