We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ac115 commit 52f5a2bCopy full SHA for 52f5a2b
apps/roam/src/utils/hyde.ts
@@ -5,7 +5,7 @@ import findDiscourseNode from "./findDiscourseNode";
5
import { nextApiRoot } from "@repo/utils/execContext";
6
import { DiscourseNode } from "./getDiscourseNodes";
7
import getExtensionAPI from "roamjs-components/util/extensionApiContext";
8
-import { getAllNodes } from "@repo/database/lib/queries";
+import { getNodesByType } from "@repo/database/lib/queries";
9
10
type ApiEmbeddingResponse = {
11
data: Array<{
@@ -463,7 +463,7 @@ export const performHydeSearch = async ({
463
if (!supabase) return [];
464
465
candidateNodesForHyde = (
466
- await getAllNodes({
+ await getNodesByType({
467
supabase,
468
spaceId,
469
fields: { content: ["source_local_id", "text"] },
0 commit comments