Skip to content

Commit 3cdad7c

Browse files
Apply suggestions from code review
Co-authored-by: David Dougherty <david.dougherty@redis.com>
1 parent 5fead5b commit 3cdad7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/develop/clients/php/vecsearch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ use Predis\Command\Argument\Search\SchemaFields\VectorField;
6868
The code below shows how to use the
6969
[`all-mpnet-base-v2`](https://huggingface.co/sentence-transformers/all-mpnet-base-v2)
7070
tokenizer to generate the embeddings. The vectors that represent the
71-
embeddings have 384 components, regardless of the length of the input
71+
embeddings have 384 dimensions, regardless of the length of the input
7272
text. Here, the `pipeline()` call creates the `$extractor` function that
7373
generates embeddings from text:
7474

@@ -204,7 +204,7 @@ search that sorts the results in order of vector distance from the query vector.
204204

205205
The results are returned as an array with the number of results in the
206206
first element. The remaining elements are alternating pairs with the
207-
key of the returned document (eg, `doc:0`) first, followed by an array containing
207+
key of the returned document (for example, `doc:0`) first, followed by an array containing
208208
the fields you requested (again as alternating key-value pairs).
209209

210210
```php

0 commit comments

Comments
 (0)