Skip to content

Commit

Permalink
removed deleted condtion in history search
Browse files Browse the repository at this point in the history
  • Loading branch information
Amruth-Vamshi committed Nov 9, 2023
1 parent 2ebe00d commit c516356
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/prompt-history/prompt-history.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ export class PromptHistoryService {
FROM
prompt_history
WHERE
prompt_history."deletedAt" IS NULL -- Added this condition to filter out deleted records
AND 1 - (prompt_history.embedding <=> ${queryEmbedding}) > ${searchQueryDto.similarityThreshold}
1 - (prompt_history.embedding <=> ${queryEmbedding}) > ${searchQueryDto.similarityThreshold}
ORDER BY
prompt_history.embedding <=> ${queryEmbedding}
LIMIT ${searchQueryDto.matchCount};
Expand Down

0 comments on commit c516356

Please sign in to comment.