MCPcopy Create free account
hub / github.com/NanGePlus/LightRAGTest / is_float_regex

Function is_float_regex

LightRAG/lightrag/utils.py:181–182  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

179
180
181def is_float_regex(value):
182 return bool(re.match(r"^[-+]?[0-9]*\.?[0-9]+$", value))
183
184
185def truncate_list_by_token_size(list_data: list, key: callable, max_token_size: int):

Calls

no outgoing calls

Tested by

no test coverage detected