Skip to content

Commit

Permalink
fix Vectorize output sample (#17190)
Browse files Browse the repository at this point in the history
  • Loading branch information
codenoid authored Oct 3, 2024
1 parent 50059f3 commit b47bcbc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
38 changes: 17 additions & 21 deletions src/content/docs/vectorize/best-practices/query-vectors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@ This would return a set of matches resembling the following, based on the distan

```json
{
"matches": {
"count": 5,
"matches": [
{ "score": 0.999909486, "id": "5" },
{ "score": 0.789848214, "id": "4" },
{ "score": 0.720476967, "id": "4444" },
{ "score": 0.463884663, "id": "6" },
{ "score": 0.378282232, "id": "1" }
]
}
"count": 5,
"matches": [
{ "score": 0.999909486, "id": "5" },
{ "score": 0.789848214, "id": "4" },
{ "score": 0.720476967, "id": "4444" },
{ "score": 0.463884663, "id": "6" },
{ "score": 0.378282232, "id": "1" }
]
}
```

Expand All @@ -55,17 +53,15 @@ This would return a set of matches resembling the following, based on the distan

```json
{
"matches": {
"count": 1,
"matches": [
{
"score": 0.999909486,
"id": "5",
"values": [58.79999923706055, 6.699999809265137, 3.4000000953674316, ...],
"metadata": { "url": "/products/sku/55519183" }
}
]
}
"count": 1,
"matches": [
{
"score": 0.999909486,
"id": "5",
"values": [58.79999923706055, 6.699999809265137, 3.4000000953674316, ...],
"metadata": { "url": "/products/sku/55519183" }
}
]
}
```

Expand Down
2 changes: 2 additions & 0 deletions src/content/docs/vectorize/reference/metadata-filtering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ Results without metadata filtering:

```json
{
"count": 3,
"matches": [
{
"id": "5",
Expand Down Expand Up @@ -200,6 +201,7 @@ Results with metadata filtering:

```json
{
"count": 2,
"matches": [
{
"id": "4",
Expand Down

0 comments on commit b47bcbc

Please sign in to comment.