-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.json
61 lines (61 loc) · 2.25 KB
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"id": "query_training_data",
"uuid": "16a65367-04c1-418d-a5c9-69d4faf3715e",
"userSettings": [
{
"name": "searchServiceName",
"label": "Search Service Name",
"description": "Find this in the \"Azure AI Services\" section in the Azure portal.",
"required": true
},
{
"name": "indexName",
"label": "Index Name",
"description": "Find this in \"Search managements\" → \"Indexes\" page in the Azure portal.",
"required": true
},
{
"name": "queryKey",
"type": "password",
"label": "Query Key",
"description": "Find this in \"Settings\" → \"Keys\" page in the Azure portal.",
"required": true
},
{
"name": "apiVersion",
"label": "API Version",
"required": true,
"description": "Find the latest API version here: https://learn.microsoft.com/en-us/rest/api/searchservice/search-service-api-versions",
"defaultValue": "2023-11-01"
}
],
"iconURL": "https://custom.typingmind.com/assets/models/azureopenai.png",
"title": "Azure AI Search",
"openaiSpec": {
"name": "query_training_data",
"parameters": {
"type": "object",
"required": ["query"],
"properties": {
"query": {
"type": "string",
"description": "The keywords or topics to search for the internal training data. Multiple keywords or topics are accepted (separated with commas)."
}
}
},
"description": "Search the internal training data for relevant information. When the user ask you something you don't know, you can use this function to search for relevant information in the internal training data. Don't use questions as search query, use keywords instead. The search query should contains the keywords or topics related to the conversation."
},
"httpAction": {
"id": "6a69b196-c5de-4550-9ad2-bf717f4808f2",
"url": "https://{searchServiceName}.search.windows.net/indexes/{indexName}/docs/search?api-version={apiVersion}",
"name": "",
"method": "POST",
"hasBody": true,
"hasHeaders": true,
"requestBody": "{\n \"search\": \"{query}\"\n}",
"requestHeaders": "{\n \"api-key\": \"{queryKey}\"\n}"
},
"implementationType": "http",
"system": true,
"outputType": "respond_to_ai"
}