Skip to content

Extend embeddings docs - #2788

Open
vkozyura wants to merge 8 commits into
mainfrom
extend-embeddings-page
Open

Extend embeddings docs#2788
vkozyura wants to merge 8 commits into
mainfrom
extend-embeddings-page

Conversation

@vkozyura

Copy link
Copy Markdown
Contributor

@vkozyura
vkozyura requested review from danjoa and smahati as code owners July 30, 2026 15:13
@vkozyura
vkozyura marked this pull request as draft July 30, 2026 15:13
@vkozyura
vkozyura removed the request for review from danjoa July 30, 2026 15:14
@vkozyura vkozyura changed the title Extend embeddings docs [DRAFT] Extend embeddings docs Jul 30, 2026
@vkozyura
vkozyura marked this pull request as ready for review July 31, 2026 11:57
@vkozyura vkozyura changed the title [DRAFT] Extend embeddings docs Extend embeddings docs Jul 31, 2026
@vkozyura
vkozyura requested review from BobdenOs and PDT42 August 4, 2026 07:40
Comment thread guides/databases/vector-embeddings.md Outdated
Comment thread guides/databases/vector-embeddings.md Outdated
Comment thread guides/databases/vector-embeddings.md Outdated
Comment thread guides/databases/vector-embeddings.md Outdated
Comment thread guides/databases/vector-embeddings.md Outdated
Comment thread guides/databases/vector-embeddings.md Outdated
Comment thread guides/databases/vector-embeddings.md Outdated
Comment thread guides/databases/vector-embeddings.md Outdated
Comment thread guides/databases/vector-embeddings.md Outdated
Comment thread guides/databases/vector-embeddings.md
Comment thread guides/databases/vector-embeddings.md Outdated
CREATE EXTENSION IF NOT EXISTS vector;
```
- Vectors stored in native `vector` type
- `vector_embedding()` SQL function uses hash-based algorithm for testing. Override the SQL function to use real embedding services in production.

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.

This still says "uses hash based".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment thread guides/databases/vector-embeddings.md Outdated
```
- Vectors stored in native `vector` type
- `vector_embedding()` SQL function uses hash-based algorithm for testing. Override the SQL function to use real embedding services in production.
- For Node.js, the `pgvector` npm package is only required when you need to read vector columns from query results. If you only pass vectors as parameters (for example, in WHERE clauses or function arguments), the package is not needed: `npm install 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.

This example is not fully accurate and should be double checked. If the vector embedding function is used to create the ending on the fly inside the database the plug-in is not required, but if the client is sending the embedding through a placeholder then the plug-in is still required. The current way it is written is the second example which does require the plug-in.

@vkozyura vkozyura Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed. hope it is correct now

vkozyura and others added 4 commits August 12, 2026 16:56
- Restore H2 reference in local testing info box
- Remove HANA mention from testing section, clarify PostgreSQL requires custom vector_embedding function
- Link vector functions directly to individual HANA documentation pages to avoid duplication
- Clarify l2normalize description with accessible language
- Fix PostgreSQL implementation status - no default hash function provided
- Remove SQLite section from Database-Specific Considerations (testing-only, internal details)
- Add pgvector installation prerequisite for PostgreSQL
- Clarify when pgvector npm package is needed (only for reading vector columns)
- Remove specific HANA model details to avoid maintenance burden
…iderations

Remove incorrect statement about hash-based algorithm. PostgreSQL has no default implementation - developers must define their own function.
Correct the explanation: package IS required when passing vectors as parameters from client or reading vector columns. Only not needed when vectors are generated entirely within the database.
@vkozyura

Copy link
Copy Markdown
Contributor Author

Hi @smahati, from a content perspective, the docs have been reviewed and are ready. Please review them from your side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants