MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / chunk_list

Method chunk_list

src/hyperagent/tools/nav_tools.py:357–358  ·  view source on GitHub ↗
(lst, chunk_size)

Source from the content-addressed store, hash-verified

355 cos_sim = lambda a,b: (a @ b.T) / (norm(a)*norm(b))
356
357 def chunk_list(lst, chunk_size):
358 return [lst[i:i + chunk_size] for i in range(0, len(lst), chunk_size)]
359
360 if semantic_query != "":
361 embeddings = self.modle.encode(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected