Skip to content

Commit

Permalink
Merge pull request #242 from tigergraph/xuanleilin-patch-1
Browse files Browse the repository at this point in the history
Update VectorSearch.md
  • Loading branch information
mingxiw authored Dec 23, 2024
2 parents 2578ca8 + 01e1980 commit e327b7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/guru_scripts/docker/tutorial/4.x/VectorSearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ 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
curl -X POST "http://127.0.0.1:14240/restpp/query/financialGraph/q1" -d '{"query_vector":[-0.017733968794345856, -0.01019224338233471, -0.016571875661611557]}' | jq
```

Do a top-k vector search on a a set of vertex types' vector attributes.
Expand Down Expand Up @@ -261,7 +261,7 @@ run query q3([-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/q3" -d "{\"query_vector\":[-0.017733968794345856, -0.01019224338233471, -0.016571875661611557], \"k\": 2}" | jq
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)
Expand Down

0 comments on commit e327b7c

Please sign in to comment.