GenAI Showcase App

Content Type: Sample
Categories: Starter Apps,AWS,Artificial Intelligence

Overview

GenAI Showcase App

Showcase application that shows how to use the OpenAI Connector, Amazon Bedrock ConnectorPgVector Knowledge Base, GenAI Commons and Conversational UI which can be used to integrate generative AI - the technology powering ChatGPT - into a Mendix app.

This project contains a variety of example use cases:

  • Interactive chatbot with history
  • Product description generation
  • Text complexity reduction
  • Text to JSON transformation
  • Demo data creation
  • Postcard (image) generation
  • Embedding vector generation
  • Retrieval Augmented Generation in a chatbot scenario
  • Clustering of unstructured text data
  • Semantic search (books, single-column)
  • Semantic search (tickets, single-column, multi-column and multi-language)
  • Function calling with chat completions
  • Vision with chat completions
  • Amazon Bedrock document chat
  • RAG with Amazon Bedrock knowledge bases

Most examples are supported by both the OpenAI and Amazon Bedrock connector.

How to get started

  1. (Amazon Bedrock only): configure the credential constants in Studio Pro (AccessKey and SecretAccessKey from AWS Authentication module)
  2. Download the app package (.mpk file) from this page
  3. Open the app in Studio Pro (double-click the MPK to import it)
  4. Run the app & view it
  5. Log in
  6. Configure the connection with API credentials from an OpenAI account*, Azure account or AWS.
  7. Try out the example use cases!

 

You can find technical documentation about the OpenAI Connector, Amazon Bedrock ConnectorPgVector Knowledge Base, GenAI Commons and Conversational UI on MxDocs.

 

* If you have signed up for an OpenAI account and are using free trial credits, note that these are only valid for three months after the account has been created (not after the API key has been created). For more details, see the OpenAI API reference.

Documentation

Use this app as an example of what you can do with GenAI in your own project.

 

The majority of the showcase examples in this app follow the principles from the GenAI Commons module. This means that these example use cases are automatically compatible with other GenAI connectors that follow these principles. In this app you can see how you can build vendor-agnostic GenAI use cases that integrate with operations from (for example) the OpenAI Connector as well as the Amazon Bedrock Connector at the same time.

 

You can find technical documentation about the OpenAI ConnectorPgVector Knowledge Base, GenAI Commons and Conversational UI on MxDocs.

Releases

Version: 5.2.0
Framework Version: 9.24.2
Release Notes: We made small changes to improve the overall developer experience. This includes pre-filling of configuration dropdowns used in the examples, restructuring of pages, and enhanced prompt engineering. Lastly, we have updated the marketplace modules to the following versions: Amazon Bedrock Connector (5.3.0) AWS Authentication Module (3.2.0) Community Commons (10.0.7) ConversationalUI (1.5.1) GenAI Commons (1.5.0) OpenAI Connector (3.4.1) PgVector Knowledge Base (2.2.0)
Version: 5.1.0
Framework Version: 9.24.2
Release Notes: A page has been added for usage monitoring. You can now see how to use the page, snippets and logic from the Conversational UI module to get insights into how much tokens were used up during successful GenAI operations in the specified time period. Currently, the token monitor is only supported by the OpenAI Connector.
Version: 5.0.0
Framework Version: 9.24.2
Release Notes: The OpenAI Showcase App has been renamed to GenAI Showcase App.
Version: 3.3.0
Framework Version: 9.24.2
Release Notes: We added two Amazon Bedrock-specific examples. The first “RAG with Amazon Bedrock Knowledge Bases” shows how to setup a knowledge base in Amazon Bedrock and interact with it via a Mendix app. In the second example “Document Chat”, users can upload up to five documents and chat about them using the interface from Conversational UI. Lastly, we have updated the GenAI-related marketplace modules to the following versions: - AWS Authentication Connector 3.1.2 - AWS Bedrock Connector 5.2.0 - Conversational UI 1.3.0 - GenAI Commons 1.2.0 - OpenAI Connector 3.2.0 - PgVector Knowledge base 2.1.0
Version: 3.2.0
Framework Version: 9.24.2
Release Notes: We improved the UX in the Vision and Function Calling examples and updated the Amazon Bedrock Connector, OpenAI Connector and Conversational UI to the latest version.
Version: 3.1.0
Framework Version: 9.24.2
Release Notes: We have updated the genAI-related marketplace modules to the following versions - GenAI Commons 1.1.0 - OpenAI Connector 3.1.0 - AWS Authentication Connector 3.1.1 - AWS Bedrock Connector 4.0.0 - Conversational UI 1.2.0 - PgVector Knowledge base 2.0.0 The embeddings and image generation showcases are now compatible with GenAI Commons. As a result both OpenAI and AWS Bedrock models can be selected for the model interactions.
Version: 3.0.0
Framework Version: 9.24.2
Release Notes: - The OpenAI Connector has been updated to version 3.0.0 so that all chat showcase examples are based on the GenAI Commons module. - The Amazon Bedrock Connector has been imported and all chat completion examples can now be used with Anthropic Claude and Amazon Titan models. - All chat examples are now based on the Conversational UI module. - We have improved the UX of the homepage and some existing examples.
Version: 2.7.0
Framework Version: 9.24.0
Release Notes: The Showcase app has been updated to include the OpenAI Connector v2.7.0 and the PgVector KnowledgeBase v1.2.0. We added a data manipulation page to the semantic search ticket example. This illustrates how changes to Mendix objects influence their corresponding records in a knowledge base. The underlying microflows makes use of operations from the PgVector Knowledge Base. Furthermore, we created a new example demonstration chat completions with vision where users can either take a picture with their webcam or upload an image from their drive and ask questions about it. Lastly, we removed outdated OpenAI models from the models enumeration.
Version: 2.6.0
Framework Version: 9.24.0
Release Notes: The Showcase app has been updated to include the OpenAI Connector v2.6.0 and the PgVector KnowledgeBase v1.1.0. We've added an example to illustrate the new OpenAI Connector function calling capabilities, which enable the LLM to intelligently decide when to call a predefined function microflow to gather additional information to include in the assistant response. In this example, users can ask questions about tickets in the application database. Additionally, we have replaced parts of the implementations of the two similarity search examples by the new operations from the PgVector Knowledge Base. The association between the chunk objects and the Mendix objects for which the chunks were created is now set automatically when the chunks are retrieved.
Version: 2.5.0
Framework Version: 9.24.0
Release Notes: We have replaced all vector database interaction logic regarding storing and retrieval of knowledge base chunks by operations of the new PgVectorKnowledgeBase module. This means that no custom query coding is required anymore by developers. As a result the example queries have been removed from the pages. Also it is possible now to store connection details for multiple vector databases in the same Mendix app.