Skip to content

Commit de323c8

Browse files
committed
outline
1 parent 8b5c00d commit de323c8

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

pgml-cms/docs/SUMMARY.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,55 @@
5151
* [Semantic Search](api/client-sdk/tutorials/semantic-search.md)
5252
* [Semantic Search Using Instructor Model](api/client-sdk/tutorials/semantic-search-1.md)
5353

54+
## Guides
55+
56+
* [Embeddings](guides/embeddings/README.md)
57+
* [In-database Generation]()
58+
* [Dimensionality Reduction]()
59+
* [Re-ranking nearest neighbors]()
60+
* [Indexing w/ IVFFLat vs HNSW]()
61+
* [Aggregation]()
62+
* [Personalization]()
63+
* [Search]()
64+
* [Keyword Search]()
65+
* [Vector Search]()
66+
* [Hybrid Search]()
67+
* [Ranking]()
68+
* [Transformers & LLMs]()
69+
* [Text Generation]()
70+
* [Prompt Engineering]()
71+
* [Unified RAG]()
72+
* [Personalization]()
73+
* [Recommendations]()
74+
* [Forecasting]()
75+
* [Time series]()
76+
* [Events]()
77+
* [Fraud Detection]()
78+
* [Incentive Optimization]()
79+
* [Sentiment Analysis]()
80+
* [Summarization]()
81+
82+
## Reference
83+
84+
* [SQL]()
85+
* [Explain plans]()
86+
* [Composition]()
87+
* [Machine Learning]()
88+
* [Feature Engineering]()
89+
* [Regression]()
90+
* [Classification]()
91+
* [Clustering]()
92+
* [Matrix Decomposition]()
93+
* [Natural Language Processing]()
94+
* [Tokenization]()
95+
* [Chunking]()
96+
* [Text Generation]()
97+
* [LLMs]()
98+
* [LLama]()
99+
* [GPT]()
100+
* [Facon]()
101+
* [Glossary]()
102+
54103
## Product
55104

56105
* [Cloud database](product/cloud-database/README.md)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
description: Embeddings are a key building block with many applications in modern AI/ML systems. They are particularly valuable for handling various types of unstructured data like text, images, and more, providing a pathway to richer insights and improved performance. A common use case for embeddings is to provide semantic search capabilities that go beyond traditional keyword matching to the underlying meaning in the data.
3+
---
4+
5+
# Embeddings
6+
7+
As the demand for sophisticated data analysis and machine learning capabilities within databases grows, so does the need for efficient and scalable solutions. PostgresML offers a powerful platform for integrating machine learning directly into PostgreSQL, enabling you to perform complex computations and predictive analytics without ever leaving your database.
8+
9+
Embeddings are a key building block with many applications in modern AI/ML systems. They are particularly valuable for handling various types of unstructured data like text, images, and more, providing a pathway to richer insights and improved performance. A common use case for embeddings is to provide semantic search capabilities that go beyond traditional keyword matching to the underlying meaning in the data.
10+
11+
This guide will introduce you to the fundamentals of embeddings within PostgresML. Whether you are looking to enhance text processing capabilities, improve image recognition functions, or simply incorporate more advanced machine learning models into your database, embeddings can play a pivotal role. By integrating these capabilities directly within PostgreSQL, you benefit from streamlined operations, reduced data movement, and the ability to leverage the full power of SQL alongside advanced machine learning techniques.
12+
13+
Throughout this guide, we will cover:
14+
15+
* [In-database Generation]()
16+
* [Dimensionality Reduction]()
17+
* [Re-ranking nearest neighbors]()
18+
* [Indexing w/ IVFFLat vs HNSW]()
19+
* [Aggregation]()
20+
* [Personalization]()
21+
22+
# Embeddings are Vectors
23+
24+
Embeddings are represented mathematically as a vector, and can be stored in the native Postgres [`ARRAY[]`](https://www.postgresql.org/docs/current/arrays.html) datatype which is compatible with many application programming languages' native datatype. Modern CPUs and GPUs offer hardware acceleration for common array operations, which can give substantial performance benefits when operating at scale, but which are typically unused in a Postgres database. This is referred to as "vectorization" to enable these instruction sets. You'll need to ensure you're compiling your full stack with support for your hardware to get the most bang for your buck, or you can get full acceleration in a PostgresML cloud database.
25+
26+
!!! warning
27+
28+
Other cloud providers claim to offer embeddings "inside the database", but if you benchmark their calls you'll see that their implementations are 10-100x slower than PostgresML. The reason is they aren't actually running inside the database. They are thin wrapper functions that making network calls to other datacenters to compute the embeddings. PostgresML is the only cloud that puts GPU hardware in the database for full acceleration, and it shows.
29+
30+
!!!

0 commit comments

Comments
 (0)