MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / first_chunks

Function first_chunks

scripts/extract_evidence.py:277–287  ·  view source on GitHub ↗
(chunks: list[dict], limit: int)

Source from the content-addressed store, hash-verified

275
276
277def first_chunks(chunks: list[dict], limit: int) -> list[dict]:
278 return [
279 {
280 "claim": normalize_whitespace(str(item.get("text", ""))),
281 "evidence": normalize_whitespace(str(item.get("text", ""))),
282 "source_section": normalize_whitespace(str(item.get("source_section", ""))),
283 "page_hint": normalize_whitespace(str(item.get("page_hint", ""))),
284 }
285 for item in chunks[:limit]
286 if normalize_whitespace(str(item.get("text", "")))
287 ]
288
289
290def keyword_chunks(

Callers

nothing calls this directly

Calls 1

normalize_whitespaceFunction · 0.90

Tested by

no test coverage detected