MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / is_float_regex

Function is_float_regex

GraphExtraction/_utils.py:44–45  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

42 source_id=entity_source_id,
43 )
44def is_float_regex(value):
45 return bool(re.match(r"^[-+]?[0-9]*\.?[0-9]+$", value))
46async def _handle_single_relationship_extraction(
47 record_attributes: list[str],
48 chunk_key: str,

Calls

no outgoing calls

Tested by

no test coverage detected