Buckets:

download
raw
692 Bytes
from __future__ import annotations
class GraphCheckVerifier:
def __init__(self, db_type: str = "mock") -> None:
self.db_type = db_type
async def verify_entities(self, content: str) -> dict[str, object]:
results: list[dict[str, str]] = []
lowered = content.lower()
for token in ["supply chain", "asia", "risk"]:
if token in lowered:
results.append({"entity": token, "status": "grounded"})
if not results:
results.append({"entity": "content", "status": "unknown"})
return {
"is_valid": any(item["status"] == "grounded" for item in results),
"results": results,
}

Xet Storage Details

Size:
692 Bytes
·
Xet hash:
caf72674e8145e035c4e64209e98f7228f51214e75754e449b8c08e7bff739cd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.