diff --git a/pgml-cms/docs/api/sql-extension/pgml.decompose.md b/pgml-cms/docs/api/sql-extension/pgml.decompose.md index a322b4c99..9e1f37484 100644 --- a/pgml-cms/docs/api/sql-extension/pgml.decompose.md +++ b/pgml-cms/docs/api/sql-extension/pgml.decompose.md @@ -4,8 +4,7 @@ description: Decompose an input vector into it's principal components # pgml.decompose() - -Chunks are pieces of documents split using some specified splitter. This is typically done before embedding. +Matrix decomposition reduces the number of dimensions in a vector, to improve relevance and reduce computation required. ## API @@ -21,30 +20,10 @@ pgml.decompose( | Parameter | Example | Description | |----------------|---------------------------------|----------------------------------------------------------| | `project_name` | `'My First PostgresML Project'` | The project name used to train models in `pgml.train()`. | -| `vector` | `ARRAY[0.1, 0.45, 1.0]` | The feature vector that needs decomposition. | +| `vector` | `ARRAY[0.1, 0.45, 1.0]` | The feature vector to transform. | ## Example ```sql SELECT pgml.decompose('My PCA', ARRAY[0.1, 2.0, 5.0]); ``` - -!!! example - -```sql -SELECT *, - pgml.decompose( - 'Buy it Again', - ARRAY[ - user.location_id, - NOW() - user.created_at, - user.total_purchases_in_dollars - ] - ) AS buying_score -FROM users -WHERE tenant_id = 5 -ORDER BY buying_score -LIMIT 25; -``` - -!!! \ No newline at end of file
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: