forked from nohanaga/azure-search-openai-demo
-
Notifications
You must be signed in to change notification settings - Fork 125
/
REST.http
75 lines (64 loc) · 1.34 KB
/
REST.http
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
@backend = https://app-backend-xxx.azurewebsites.net
###
###
POST {{backend}}/chat HTTP/1.1
content-type: application/json
{
"history": [
{
"user": "水素ハイブリッド電車とはなんですか"
}
],
"approach": "rrr",
"overrides": {
"retrieval_mode": "hybrid",
"semantic_ranker": true,
"semantic_captions": false,
"top": 1,
"suggest_followup_questions": false
}
}
###
POST {{backend}}/ask HTTP/1.1
content-type: application/json
{
"question": "水素ハイブリッド電車とはなんですか",
"approach": "rtr",
"overrides": {
"retrieval_mode": "hybrid",
"semantic_ranker": true,
"semantic_captions": false,
"top": 1
}
}
###
API Managementの動作確認
###
@apimanagement = https://apim-xxx.azure-api.net
###
POST {{apimanagement}}/api/ask HTTP/1.1
Content-Type: application/json
{
"question": "水素ハイブリッド電車とはなんですか",
"approach": "rtr",
"overrides": {
"retrieval_mode": "hybrid",
"semantic_ranker": true,
"semantic_captions": false,
"top": 1
}
}
###
POST {{apimanagement}}/api/ask HTTP/1.1
Content-Type: application/json
Ocp-Apim-Subscription-Key: xxxxxxxxxxxxxxxx
{
"question": "水素ハイブリッド電車とはなんですか",
"approach": "rtr",
"overrides": {
"retrieval_mode": "hybrid",
"semantic_ranker": true,
"semantic_captions": false,
"top": 1
}
}