Browse to: http://localhost:50505. For details on using the Aspire Content Source Management page, please refer to Admin UI.
Step 2. Add a new Content Source.
For this step, please follow the step from the Configuration Tutorial of the connector of you your choice, please refer to to the Connector list
Step 3. Add
a
anAzure OpenAI Chat Completions application to the Workflow.
To add a an Azure OpenAI Chat Completions application, drag it from the Applicationsa Azure OpenAI Embedding rule from the Workflow Library and drop to the Workflow Tree where you want to add itsection to the desired Workflow event. This will automatically open the Azure OpenAI Embeddings window the Azure OpenAI Chat Completions configuration for the configuration of the application.
Image Added
Image Added
Step 3a. Specify
Application Information
Prompt Type.
In the Azure OpenAI Embeddings window“General” configuration section, specify the information required.
Example:
API Version: 2023-01-01
Model: text-search-ada-query-123
Input Field: segments
Once you've clicked on the Add button, it will take a moment for Aspire to download all of the necessary components (the Jar files) from the Maven repository and load them into Aspire. Once that's done, the application will appear in the Workflow Tree.
type of prompt to use. Currently, “User”, “System” and “Assistant” types are supported.
Image Added
Step 3b. Specify Prompt Text.
In the “General” configuration section, specify the text for your prompt. It can be plain text or a groovy script that must have text as its final output.
Image Added
Step 3c. Add more prompts (optional).
Optionally, in the “General” section, you can add as many prompts as desired. You must then, again, specify a prompt type and a prompt text for each of them.
Image Added
Step 3d. Configure the Endpoint.
In the “Endpoint Configuration” section, specify the API version and model to be used.
Image Added
Step 3e. Configure Model Parameters.
In the “Model Parameters” section, specify parameters to be used with the Model specified in the previous step.
After this, you can press the add button to finish the workflow.
Now the workflow application is ready to be used in your Aspire Seeds.
Image Added
Output example.
Here is an example of the output. The application will add a “chatCompletionsResponse” object to the document, which in turn will have:
the response content in a “content” field,
a “responseProperties” field with response properties, including usage statistics,
a “requestProperties” field, with the corresponding request properties and finally,
a “modelProperties” field with the properties with which the model was configured.
Image Added
Info
For details on using the Workflow section, please refer to to the Workflow introductionintroduction.