LoongSuite GenAI Utils is a utility package for generative AI workloads within the LoongSuite ecosystem. Version 0.4.0 is the latest, released as part of the loongsuite-python-agent distribution. The package provides utilities such as the RetrievalDocument dataclass for typed retrieval document representation. Release cadence follows the loongsuite-python-agent releases (currently every few months).
pip install loongsuite-util-genai==0.4.0No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Import and use RetrievalDocument dataclass. Adjust logging via environment variable.
Update imports to: from loongsuite.util.genai import ...
Run: pip install loongsuite-distro && loongsuite-bootstrap -a install
Use keyword arguments for optional fields: RetrievalDocument(..., score=0.95, metadata={})