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;
6868The code below shows how to use the
6969[ ` all-mpnet-base-v2 ` ] ( https://huggingface.co/sentence-transformers/all-mpnet-base-v2 )
7070tokenizer 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
7272text. Here, the ` pipeline() ` call creates the ` $extractor ` function that
7373generates embeddings from text:
7474
@@ -204,7 +204,7 @@ search that sorts the results in order of vector distance from the query vector.
204204
205205The results are returned as an array with the number of results in the
206206first 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
208208the fields you requested (again as alternating key-value pairs).
209209
210210``` php
You can’t perform that action at this time.
0 commit comments