ValidateObject is a plugin introduced for the SK Hackathon #1, hosted by Microsoft. Learn more about the hackathon.
ValidateObject is an essential component designed to work seamlessly with ChatGPT and Semantic Kernel. Its primary function is to bridge the gap between the LLM model and conventional programming. It achieves this by validating the format of an object. As we know from Schillace Laws, ensuring the intersection between the model and conventional code is error-free can be quite challenging.
plugin.mp4
Our blog post, Schillace Laws: Part 3, delves deeper into this topic, highlighting the importance of validation in building robust systems.
ValidateObject addresses the following critical aspects:
-
Format Validation: Ensure the correctness of the object format, whether it's XML or JSON.
-
Schema Validation: Verify that the object not only conforms to the correct format but also aligns with the provided schema (XML or JSON).
-
Structure Alignment: Check whether the object's structure (XML or JSON) is consistent with the format of the example object (XML or JSON).
Using large language models (LLMs) involves striking a balance between leverage and precision. To mitigate the risks of building a brittle system, it's essential to have a diverse toolbox at your disposal. ValidateObject provides you with an additional tool to confidently address these challenges.