Model Arena is a web-based tool designed to help you compare and interact with fine-tuned Large Language Models (LLMs) hosted on Azure AI Foundry. With a clean interface and powerful features, Model Arena simplifies the process of testing and evaluating AI models side-by-side.
- Select and compare two different LLMs.
- Send prompts to both models and analyze their responses in parallel.
- Configure a system prompt to guide the behavior of the AI models globally.
- Easily update the system prompt through an intuitive modal dialog.
- Global Messaging: Send a single prompt to both models simultaneously.
- Individual Messaging: Interact with each model independently using dedicated input fields.
- View the conversation history for each model in real-time.
- Supports Markdown for enhanced readability, including syntax highlighting for code snippets.
- Easily connect your app settings file to Azure AI Foundry models.
- Securely store model connection details, including endpoint URLs and API keys.
- Populate the
appsettings.jsonfile with your Azure AI Foundry model details in the following format:
{
"AzureAIModels": [
{
"Name": "Model_1",
"Endpoint": "<Model_1_Endpoint>",
"ApiKey": "<Model_1_ApiKey>"
},
{
"Name": "Model_2",
"Endpoint": "<Model_2_Endpoint>",
"ApiKey": "<Model_2_ApiKey>"
}
]
}- Replace
<Model_1_Endpoint>,<Model_1_ApiKey>,<Model_2_Endpoint>, and<Model_2_ApiKey>with your actual model details.
- Start the application and open it in your browser.
- Use the dropdown menus to select the models you want to compare.
- Enter a prompt in the input field.
- Click the Compare button to send the prompt to both models.
- View the responses in the respective panels.
- Open the Set System Prompt dialog from the menu.
- Modify the prompt and apply it globally to both models.
- Blazor: For building the interactive web interface.
- Azure AI Foundry: To host and manage the LLMs.
- JavaScript Interop: For seamless client-side interactions.
- Markdown Rendering: Powered by Markdig for advanced formatting.
-
Clone the repository:
git clone https://github.com/yourusername/model-arena.git
-
Navigate to the project directory:
cd model-arena -
Configure your Azure AI Foundry model details in
appsettings.json. -
Build and run the application:
dotnet run
-
Open the application in your browser at
http://localhost:5000.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please submit issues or pull requests to help improve Model Arena.
For questions or support, feel free to reach out to the project maintainer:
- Name: Alon Fliess
- LinkedIn: Alon Fliess
