-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathvector-store-search.json
More file actions
94 lines (94 loc) · 3.12 KB
/
vector-store-search.json
File metadata and controls
94 lines (94 loc) · 3.12 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[
{
"id": "e1c9d8b0c0b7bcb1",
"type": "tab",
"label": "Vector Store Search Example",
"disabled": false,
"info": "Vector store search example.\n\nThis flow demonstrates the direct `searchVectorStore` method using file-attribute filters that match the official `ComparisonFilter` contract.\n\nThe example intentionally shows both `in` and `nin` so the request shape is easy to inspect in Node-RED.",
"env": []
},
{
"id": "8bcfdb2e77318d41",
"type": "inject",
"z": "e1c9d8b0c0b7bcb1",
"name": "Search Vector Store",
"props": [
{
"p": "ai.vector_store_id",
"v": "vs_replace_me",
"vt": "str"
},
{
"p": "ai.query",
"v": "release alignment notes",
"vt": "str"
},
{
"p": "ai.filters",
"v": "{\"type\":\"and\",\"filters\":[{\"type\":\"in\",\"key\":\"team\",\"value\":[\"platform\",\"integrations\"]},{\"type\":\"nin\",\"key\":\"status\",\"value\":[\"archived\",\"draft\"]}]}",
"vt": "json"
},
{
"p": "ai.max_num_results",
"v": "5",
"vt": "num"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 260,
"y": 220,
"wires": [
[
"2d67dbca96fc6b83"
]
]
},
{
"id": "7ef33840223909fc",
"type": "comment",
"z": "e1c9d8b0c0b7bcb1",
"name": "Configure the red-marked node, replace the placeholder vector store id, then send the inject node.",
"info": "Before running:\n- import the flow, then configure the red-marked `OpenAI API` node with your own `Service Host`\n- replace `vs_replace_me` with a real vector store id from your project\n- keep or change the query text to match your data\n\nWhat this flow sends:\n- one `query` string\n- one `filters` object using `ComparisonFilter` operators `in` and `nin`\n- one `max_num_results` limit\n\nExpected result:\n- the debug sidebar shows the vector-store search matches returned by the API",
"x": 470,
"y": 160,
"wires": []
},
{
"id": "2d67dbca96fc6b83",
"type": "OpenAI API",
"z": "e1c9d8b0c0b7bcb1",
"name": "Search Vector Store",
"property": "ai",
"propertyType": "msg",
"service": "",
"method": "searchVectorStore",
"x": 550,
"y": 220,
"wires": [
[
"2491454f462614c2"
]
]
},
{
"id": "2491454f462614c2",
"type": "debug",
"z": "e1c9d8b0c0b7bcb1",
"name": "Vector Store Search Results",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 810,
"y": 220,
"wires": []
}
]