Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions guides/databases/cap-level-dbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,19 @@ SELECT firstName || ' ' || lastName as fullName from Authors;
- `seconds_between(x,y)` -> number


### Vector Functions

- `cosine_similarity(x,y)` -> number
- `l2distance(x,y)` -> number
- `l2normalize(x)` -> Vector
- `vector_embedding(field, kind?, model?)` -> Vector

For `vector_embedding`, `kind` defaults to `'DOCUMENT'` and `model` to `'SAP_GXY.20250407'`; use the `vectorEmbeddingDefaultModel` and `vectorEmbeddingHanaDefaultRemoteSource` compiler options to change these defaults.

> [!warning] HANA and PostgreSQL only
> Vector functions require SAP HANA Cloud or PostgreSQL with [pgvector](https://github.com/pgvector/pgvector).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think for Java it works on HANA, PG, SQLite and H2 and on PG vector_embedding will not work.



### Aggregate Functions

- `avg(x)`, `average(x)`
Expand Down
Loading