Tech
Why the Outbox Pattern, Queue, and Embedding Worker?
The previous post covered why I chose pgvector for semantic search.
But there was another question:
When should a memory be embedded?
At first, it might seem simple:
Create memory
βΌ
Generate embedding
βΌ
Save embedding
But this makes memory creation dependent on the embedding process.
If the embedding provider is slow or unavailable, creating a memory could also fail or become slow.
I wanted to separate these two operations.
The architecture became:...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to