You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-functions/jobassistai-http-trigger-openai/README.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,19 @@
2
2
3
3
## Overview
4
4
5
-
This Azure Function integrates with **Azure OpenAI** to generate responses based on a predefined **system prompt** and a **user prompt**. It is designed to be reusable for various OpenAI-powered requests and is currently used for task breakdown in JobAssistAI application.
5
+
This Azure Function integrates with **Azure OpenAI** to generate responses based on a predefined **system prompt** and a **user prompt**. It supports two main HTTP-triggered endpoints for different use cases:
6
+
7
+
1.**Basic OpenAI Integration**: Standard function to process user prompts with a system prompt.
8
+
2.**OpenAI with Azure Search Integration**: Extended function that queries Azure Search data sources and provides citations in the response.
6
9
7
10
## Features
8
11
9
12
-**HTTP Triggered**: Invoked via HTTP request.
10
-
-**Dynamic Prompting**: Uses `system_prompt_mapping.json` to retrieve the appropriate system prompt based on the provided system role.
13
+
-**Dynamic Prompting**: Retrieves system prompt based on the system role from `system_prompt_mapping.json`.
11
14
-**Azure OpenAI Integration**: Calls Azure OpenAI API to generate structured responses.
15
+
-**Azure Search Integration**: The second endpoint integrates with Azure Search to include citations in the response.
12
16
-**JSON-based Input & Output**: Accepts input in JSON format and returns structured AI-generated responses.
13
-
-**Modular Design**: Organized into reusable modules for configuration, clients and system prompt mapping.
14
-
-**Reusability**: Enable reusability by adding a new system role in `system_prompt_mapping.json` and sending HTTP requests with this system role and user prompt.
17
+
-**Modular Design**: Organized into reusable modules for configuration, clients, and system prompt mapping.
0 commit comments