Commit 8ea389d 1 parent b923375 commit 8ea389d Copy full SHA for 8ea389d
File tree 2 files changed +4
-7
lines changed
apps/dashboard/src/components
packages/supabase/functions/generate-inbox-embedding
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ export function InboxView({
139
139
search . execute ( {
140
140
query : debouncedSearchTerm ,
141
141
type : "inbox" ,
142
- threshold : 0.8 ,
142
+ threshold : 0.75 ,
143
143
} ) ;
144
144
}
145
145
} , [ debouncedSearchTerm ] ) ;
Original file line number Diff line number Diff line change @@ -30,13 +30,10 @@ function getCommaSeparatedList(data) {
30
30
31
31
Deno . serve ( async ( req ) => {
32
32
const payload : WebhookPayload = await req . json ( ) ;
33
- const { meta, id, status } = payload . record ;
33
+ const { meta, id } = payload . record ;
34
34
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" ) ;
40
37
}
41
38
42
39
const content = getCommaSeparatedList ( meta ) ;
You can’t perform that action at this time.
0 commit comments