Recall — find and search

Recall knowledge with content filters, single-app search, and cross-app search.

filter matches equality on content fields.

TypeScript
await knowledge.find({
  collection: "transactions",
  filter: {
    customer_id: "CUS-1022",
    status: "failed",
  },
});

Maps to POST /memory/v1/find.

Single-app (all collections when none given):

TypeScript
await knowledge.search({
  query: "failed payment made by James",
  collections: ["transactions", "support_tickets"],
  limit: 10,
});

Cross-app by slug:

TypeScript
await knowledge.search({
  apps: ["customer-knowledge", "finance-knowledge", "support-knowledge"],
  query: "Why did James stop paying?",
});

Omit collections / collection to search every collection in the selected app(s).

Maps to POST /memory/v1/search (delegates to cross-app when apps / group is set).

MemoryClient alias#

TypeScript
import { MemoryClient } from "cliodot";

const client = new MemoryClient({ /* same config */ });
await client.searchCross({
  apps: ["customer-knowledge", "finance-knowledge"],
  query: "refund policy",
});

searchCross requires apps[] or group; otherwise use search.