diff options
| author | Dhravya <[email protected]> | 2024-06-23 17:54:05 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-06-23 17:54:05 -0500 |
| commit | 9f751ba89cc37516daa261bbae8723d5566a6602 (patch) | |
| tree | 3e7533aefbf7931c966c930349263ae248cc1135 /packages | |
| parent | added indexes and stuff (diff) | |
| download | supermemory-9f751ba89cc37516daa261bbae8723d5566a6602.tar.xz supermemory-9f751ba89cc37516daa261bbae8723d5566a6602.zip | |
feat: vector lookup and chat is twice as fast now
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/shared-types/index.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/shared-types/index.ts b/packages/shared-types/index.ts index 318684b7..9d5caa40 100644 --- a/packages/shared-types/index.ts +++ b/packages/shared-types/index.ts @@ -59,3 +59,11 @@ export function convertChatHistoryList( return convertedChats; } + +export const sourcesZod = z.object({ + ids: z.array(z.string()), + metadata: z.array(z.any()), + normalizedData: z.array(z.any()).optional(), +}); + +export type SourcesFromApi = z.infer<typeof sourcesZod>; |