filter matches equality on content fields.
await knowledge.find({
collection: "transactions",
filter: {
customer_id: "CUS-1022",
status: "failed",
},
});Maps to POST /memory/v1/find.
Search#
Single-app (all collections when none given):
await knowledge.search({
query: "failed payment made by James",
collections: ["transactions", "support_tickets"],
limit: 10,
});Cross-app by slug:
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#
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.