File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/develop/clients/php Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ use Predis\Command\Argument\Search\SchemaFields\VectorField;
68
68
The code below shows how to use the
69
69
[ ` all-mpnet-base-v2 ` ] ( https://huggingface.co/sentence-transformers/all-mpnet-base-v2 )
70
70
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
72
72
text. Here, the ` pipeline() ` call creates the ` $extractor ` function that
73
73
generates embeddings from text:
74
74
@@ -204,7 +204,7 @@ search that sorts the results in order of vector distance from the query vector.
204
204
205
205
The results are returned as an array with the number of results in the
206
206
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
208
208
the fields you requested (again as alternating key-value pairs).
209
209
210
210
``` php
You can’t perform that action at this time.
0 commit comments