Skip to content

Commit

Permalink
Update VectorSearch.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxiw authored Dec 21, 2024
1 parent b820cfb commit ee632bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions demos/guru_scripts/docker/tutorial/4.x/VectorSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ install query q1
run query q1([-0.017733968794345856, -0.01019224338233471, -0.016571875661611557])
```
You can also use POST method to call REST api to invoke the installed query. By default, the query will be located at URL "restpp/query/{graphName}/{queryName}".
On the payload, you specify the parameter using "key:value" by escaping the quotes of the parameter name.
```python
curl -X POST "http://127.0.0.1:14240/restpp/query/financialGraph/q1" -d "{\"query_vector\":[-0.017733968794345856, -0.01019224338233471, -0.016571875661611557]}" | jq
```
Expand Down Expand Up @@ -257,6 +258,11 @@ install query q3
#run the query
run query q3([-0.017733968794345856, -0.01019224338233471, -0.016571875661611557], 2)
```
You can also use POST method to call REST api to invoke the installed query. By default, the query will be located at URL "restpp/query/{graphName}/{queryName}".
On the payload, you specify the parameter using "key:value" by escaping the quotes of the parameter name.
```python
curl -X POST "http://127.0.0.1:14240/restpp/query/financialGraph/q3" -d "{\"query_vector\":[-0.017733968794345856, -0.01019224338233471, -0.016571875661611557], \"k\": 2}" | jq
```

[Go back to top](#top)
## Vector Search on Graph Patterns
Expand Down

0 comments on commit ee632bc

Please sign in to comment.