GenAI Commons

Content Type: Module
Categories: Connectors,Artificial Intelligence

Overview

The GenAI Commons module combines common GenAI patterns found in a variety of generative AI models on the market. Platform-supported GenAI-connectors use the underlying data structures and their operations, for example both the OpenAI or Amazon Bedrock connector depend on this module.

If two different connectors both adhere to the GenAI Commons module, they can be easily swapped, which reduces dependency on the model providers. In addition, the initial implementation of AI capabilities using the connectors becomes a drag and drop experience, so that developers can quickly get started. The module exposes useful operations which developers can use to build a request to a large language model (LLM), and to handle the response.

Developers who want to connect to another LLM provider or their own service are advised to use the GenAI Commons module as well. This speeds up development and ensures that common principles are considered. Lastly, other developers or consumers of the connector can adapt to it more quickly.

For more information, visit the official documentation.

Documentation

 

See official documentation

Dependencies

  • Community Commons module

Implementation examples

For implementation examples, see the GenAI showcase app.

Connector development examples

Do you want to build your own connector to an LLM with GenAI Commons? Check out the OpenAI or Amazon Bedrock connector for inspiration.

Releases

Version: 1.2.0
Framework Version: 9.24.2
Release Notes: We replaced the MediaType attribute with a new attribute FileExtension on the FileContent entity. The MediaType used to be a combination of FileType + FileExtension (e.g. “image/png”). Additionally, “document” was added as a new value for ENUM_FileType. Github: https://github.com/mendix/openai-connector/releases/tag/release-genaicommons-1.2.0
Version: 1.1.0
Framework Version: 9.24.2
Release Notes: We extended the common domain model to define a standard for image generation, embeddings and knowledge base interaction. We also provided a number of microflows for connector development that can be used while creating/handling the responses. Github: https://github.com/mendix/openai-connector/releases/tag/release-genaicommons-1.1.0
Version: 1.0.0
Framework Version: 9.24.2
Release Notes: Initial release. Github: https://github.com/mendix/openai-connector/releases/tag/release-genaicommons-1.0.0