Skip to content

Commit

Permalink
Add filter operators
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-btc committed Sep 19, 2023
1 parent a89e0e9 commit 1152a11
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
16 changes: 15 additions & 1 deletion lib/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polyfact",
"version": "0.1.70",
"version": "0.1.71",
"main": "index.js",
"types": "index.d.ts",
"author": "Lancelot Owczarczak <lancelot@owczarczak.fr>",
Expand Down
1 change: 1 addition & 0 deletions vectorizer.json
Original file line number Diff line number Diff line change
@@ -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"]}

0 comments on commit 1152a11

Please sign in to comment.