Skip to content

Commit 8ea389d

Browse files
committed
Search
1 parent b923375 commit 8ea389d

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

apps/dashboard/src/components/inbox-view.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function InboxView({
139139
search.execute({
140140
query: debouncedSearchTerm,
141141
type: "inbox",
142-
threshold: 0.8,
142+
threshold: 0.75,
143143
});
144144
}
145145
}, [debouncedSearchTerm]);

packages/supabase/functions/generate-inbox-embedding/index.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,10 @@ function getCommaSeparatedList(data) {
3030

3131
Deno.serve(async (req) => {
3232
const payload: WebhookPayload = await req.json();
33-
const { meta, id, status } = payload.record;
33+
const { meta, id } = payload.record;
3434

35-
// Check if meta data is saved, meta is saved with a async background job
36-
// That parses the document using Google Document AI
37-
// packages/jobs/src/inbox/document.ts
38-
if (status !== "processing" && meta) {
39-
return new Response("Not ready to generate embeddings");
35+
if (!meta) {
36+
return new Response("No data to generate embeddings from");
4037
}
4138

4239
const content = getCommaSeparatedList(meta);

0 commit comments

Comments
 (0)