From 1152a11249c3584ffe2d13f234860f84c720d074 Mon Sep 17 00:00:00 2001 From: kgricour Date: Tue, 19 Sep 2023 13:38:37 +0200 Subject: [PATCH] Add filter operators --- lib/prompt.ts | 16 +++++++++++++++- package.json | 2 +- vectorizer.json | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 vectorizer.json diff --git a/lib/prompt.ts b/lib/prompt.ts index cdf3950..1317445 100644 --- a/lib/prompt.ts +++ b/lib/prompt.ts @@ -2,7 +2,21 @@ import axios, { AxiosError } from "axios"; import { defaultOptions, InputClientOptions } from "./clientOpts"; import { ApiError, ErrorData } from "./helpers/error"; -export type FilterOperation = "eq" | "neq" | "gt" | "lt" | "gte" | "lte" | "like" | "ilike" | "cs"; +export type FilterOperation = + | "eq" + | "neq" + | "gt" + | "lt" + | "gte" + | "lte" + | "like" + | "ilike" + | "cs" + | "is" + | "in" + | "fts" + | "plfts" + | "phfts"; export type Filter = { column: string; diff --git a/package.json b/package.json index f4d6087..2481294 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polyfact", - "version": "0.1.70", + "version": "0.1.71", "main": "index.js", "types": "index.d.ts", "author": "Lancelot Owczarczak ", diff --git a/vectorizer.json b/vectorizer.json new file mode 100644 index 0000000..13f47ac --- /dev/null +++ b/vectorizer.json @@ -0,0 +1 @@ +{"memoryId":"84273942-5410-4273-bad4-0dc5c30d75e4","files":["/Users/kev/Projects/polyfact-sdk/lib/chats/index.ts","/Users/kev/Projects/polyfact-sdk/lib/client.ts","/Users/kev/Projects/polyfact-sdk/lib/clientOpts.ts","/Users/kev/Projects/polyfact-sdk/lib/dataloader/index.ts","/Users/kev/Projects/polyfact-sdk/lib/generate.ts","/Users/kev/Projects/polyfact-sdk/lib/helpers/error.ts","/Users/kev/Projects/polyfact-sdk/lib/helpers/models.ts","/Users/kev/Projects/polyfact-sdk/lib/helpers/uuid.ts","/Users/kev/Projects/polyfact-sdk/lib/hooks/index.ts","/Users/kev/Projects/polyfact-sdk/lib/hooks/useAgent.ts","/Users/kev/Projects/polyfact-sdk/lib/hooks/useChat.ts","/Users/kev/Projects/polyfact-sdk/lib/hooks/usePolyfact.ts","/Users/kev/Projects/polyfact-sdk/lib/image.ts","/Users/kev/Projects/polyfact-sdk/lib/index.ts","/Users/kev/Projects/polyfact-sdk/lib/kv.ts","/Users/kev/Projects/polyfact-sdk/lib/memory.ts","/Users/kev/Projects/polyfact-sdk/lib/probabilistic_helpers/generateWithType.ts","/Users/kev/Projects/polyfact-sdk/lib/prompt.ts","/Users/kev/Projects/polyfact-sdk/lib/split.ts","/Users/kev/Projects/polyfact-sdk/lib/transcribe.ts","/Users/kev/Projects/polyfact-sdk/lib/user.ts","/Users/kev/Projects/polyfact-sdk/lib/utils.ts"]} \ No newline at end of file