From 6623520d50a045c541b1640e31e4113f0bd22384 Mon Sep 17 00:00:00 2001 From: Montana Low Date: Mon, 6 May 2024 17:16:01 -0700 Subject: [PATCH] update docs --- .../docs/api/sql-extension/pgml.decompose.md | 25 ++----------------- 1 file changed, 2 insertions(+), 23 deletions(-) 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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy