Skip to content

Commit a78e26e

Browse files
Update app/spicedb/tutorials/rag-motia-spicedb/page.mdx
Co-authored-by: Maria Ines Parnisari <maria.ines.parnisari@authzed.com>
1 parent aeb2078 commit a78e26e

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

  • app/spicedb/tutorials/rag-motia-spicedb

app/spicedb/tutorials/rag-motia-spicedb/page.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -446,15 +446,11 @@ export const handler: Handlers["ReceiveHarvestData"] = async (req, { emit, logge
446446
timestamp: new Date().toISOString(),
447447
});
448448

449-
// Emit event to process embeddings
450-
await emit({
451-
topic: "process-embeddings",
452-
data: { entryId, content, metadata },
453-
});
449+
// Emit events
454450
};
455-
```
456451

457-
The handler generates a unique entry ID, stores the data in Motia's state management, and emits an event to trigger embedding processing. If a query was provided, it also emits a `query-agent` event.
452+
453+
The handler generates a unique entry ID, stores the data in Motia's state management, and emits events as described below.
458454

459455
### Event Emission
460456

0 commit comments

Comments
 (0)