Streamlining vector support and PostgreSQL extension documentation #58899
Unanswered
WoutervdBrink
asked this question in
General
Replies: 1 comment
-
|
MySQL supports vector columns in 8.4 LTS version and of course 9.7 LTS. First-party support for such columns in MySQL is really what I would expect from a framework: lots of historical projects are running that DB engine, it feels frustrating that the framework basically says that you would either have to migrate to Postgre, or simply forget about vector columns. The need to go with RAW statements in eloquent hurts for something which is essential to AI and which seems to be the current trend with the launch of the Laravel AI SDK. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just created a PR that adds information about requiring the
pgvectorextension to be loaded throughSchema::ensureVectorExtensionExists()when using PostgreSQL.So far, the
Schema::ensureVectorExtensionExists()method is currently mentioned in the AI SDK docs (here) and the vector search docs (here. The underlying, but perhaps quite usefulSchema::ensureExtensionExists(string $name, ?string $schema = null)method is not documented.Furthermore, the documentation currently states that only PostgreSQL supports vector search. While this is indeed currently the case (see here), MySQL 9.3 added support for vector types and vector functions, so support could be added there as well.
I think it would be useful to add information about the
ensureVectorExtensionExists()and/orensureExtensionExistsmethods. I would suggest a separate first-level heading inmigrations.md, between 'Indexes' and 'Events', but I'm not too sure about that, which is why I'm opening this discussion rather than immediately submitting a PR.Furthermore, I would like to know whether it would be considered useful to add vector support for MySQL servers (through the new column type and functions). Such a change would impact the documentation, as it adds a choice between MySQL and PostgreSQL rather than a requirement for PostgreSQL+pgvector.
Beta Was this translation helpful? Give feedback.
All reactions