-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
route messages for addt'l transformer types (#25)
* move gucs * separate pg bgw as worker * fix imports * add upgrade script * remove dead code * rename job table * sqlx-cli 0.7.2 * rename job table * redundant model * estimate token count * pull batch size from config * bump toml
- Loading branch information
Showing
18 changed files
with
440 additions
and
452 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...feafb8464aebced1ee62dc5e2b0042f0ab9c.json → ...154ff0295f078171f59b904e97fdd2933989.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
DROP function vectorize."table"; | ||
|
||
-- vectorize::api::table | ||
CREATE FUNCTION vectorize."table"( | ||
"table" TEXT, /* &str */ | ||
"columns" TEXT[], /* alloc::vec::Vec<alloc::string::String> */ | ||
"job_name" TEXT, /* alloc::string::String */ | ||
"primary_key" TEXT, /* alloc::string::String */ | ||
"args" json DEFAULT '{}', /* pgrx::datum::json::Json */ | ||
"schema" TEXT DEFAULT 'public', /* alloc::string::String */ | ||
"update_col" TEXT DEFAULT 'last_updated_at', /* alloc::string::String */ | ||
"transformer" vectorize.Transformer DEFAULT 'openai', /* vectorize::types::Transformer */ | ||
"search_alg" vectorize.SimilarityAlg DEFAULT 'pgv_cosine_similarity', /* vectorize::types::SimilarityAlg */ | ||
"table_method" vectorize.TableMethod DEFAULT 'append', /* vectorize::init::TableMethod */ | ||
"schedule" TEXT DEFAULT '* * * * *' /* alloc::string::String */ | ||
) RETURNS TEXT /* core::result::Result<alloc::string::String, anyhow::Error> */ | ||
STRICT | ||
LANGUAGE c /* Rust */ | ||
AS 'MODULE_PATHNAME', 'table_wrapper'; | ||
|
||
ALTER TABLE vectorize.vectorize_meta RENAME TO vectorize.job; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.