🌐 AI搜索 & 代理 主页
Skip to content

Commit 7573cbf

Browse files
authored
Add migration and bump extension version (#1459)
1 parent f10607a commit 7573cbf

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pgml-extension/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgml"
3-
version = "2.8.4"
3+
version = "2.8.5"
44
edition = "2021"
55

66
[lib]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- pgml::api::embed
2+
CREATE OR REPLACE FUNCTION pgml."embed"(
3+
"transformer" TEXT, /* &str */
4+
"inputs" TEXT[], /* alloc::vec::Vec<&str> */
5+
"kwargs" jsonb DEFAULT '{}' /* pgrx::datum::json::JsonB */
6+
) RETURNS SETOF real[] /* alloc::vec::Vec<f32> */
7+
IMMUTABLE STRICT PARALLEL SAFE
8+
LANGUAGE c /* Rust */
9+
AS 'MODULE_PATHNAME', 'embed_batch_wrapper';

0 commit comments

Comments
 (0)