Follow a record through Spool.
One issue from Linear, from the moment it is read to the moment an assistant answers with it. Each scroll moves it one stop further.
It starts in Linear.
Two crawlers poll the Linear API on a schedule, one for issues and one for documents. Scroll to follow one issue, stop by stop.
The crawler captures the issue.
It wraps the issue in an envelope, keyed by a SHA-256 of its source and its content, and announces it on the event bus.
An unchanged issue is stored only once.
The inbox keeps one envelope per key. An issue that has not changed has the same key and is skipped, and an edited issue gets a new envelope.
Your rules check every record.
Validation rules are plain Java classes that Spool finds at runtime. These three are examples written for this pipeline.
- HasTitlepassed
- HasUrlpassed
- KnownTeambroken
Valid issues go to the data lake.
The ingester writes each valid record to a data lake partition of its own record class, and the envelope becomes persisted.
The mounter builds the knowledge base.
It reads the data lake partitions, splits each issue into chunks and asks an embedding model for the vector of every chunk.
The knowledge base is ready to search.
The chunks are stored in Qdrant, the gold layer of the data mart, with the source and the correlation identifier of the envelope they came from.
Each record becomes one trace.
Every event goes through the event bus instrumented with OpenTelemetry, and the trace identifier comes from the correlation identifier, so the whole journey of the issue arrives as a single trace.
The assistant answers with its sources.
Someone asks a question, and the assistant answers from the closest chunks in Qdrant. Every answer lists the issues it is based on, so anyone can check it.
- 01 Linear
It starts in Linear.
Two crawlers poll the Linear API on a schedule, one for issues and one for documents. Scroll to follow one issue, stop by stop.
Linear API - 02 crawler
The crawler captures the issue.
It wraps the issue in an envelope, keyed by a SHA-256 of its source and its content, and announces it on the event bus.
CAPTURED - 03 inbox
An unchanged issue is stored only once.
The inbox keeps one envelope per key. An issue that has not changed has the same key and is skipped, and an edited issue gets a new envelope.
same keyskippedEvery 5 seconds the janitor looks for envelopes that have waited more than 3 minutes and publishes them again. - 04 ingester
Your rules check every record.
Validation rules are plain Java classes that Spool finds at runtime. These three are examples written for this pipeline.
- HasTitlepassed
- HasUrlpassed
- KnownTeambroken
A record that breaks a rule goes to quarantine with the list of violations, and its envelope stays in the inbox. - 05 data lake
Valid issues go to the data lake.
The ingester writes each valid record to a data lake partition of its own record class, and the envelope becomes persisted.
PERSISTEDeventType=LinearIssue - 06 mounter
The mounter builds the knowledge base.
It reads the data lake partitions, splits each issue into chunks and asks an embedding model for the vector of every chunk.
PERSISTEDchunksembeddings - 07 data mart
The knowledge base is ready to search.
The chunks are stored in Qdrant, the gold layer of the data mart, with the source and the correlation identifier of the envelope they came from.
QdrantgoldThe watchdog receives a heartbeat from every module and reports the ones that are degraded. - 08 observability
Each record becomes one trace.
Every event goes through the event bus instrumented with OpenTelemetry, and the trace identifier comes from the correlation identifier, so the whole journey of the issue arrives as a single trace.
tracesmetricslogscrawler CAPTUREDingester validateingester PERSISTEDmounter chunks - 09 assistant
The assistant answers with its sources.
Someone asks a question, and the assistant answers from the closest chunks in Qdrant. Every answer lists the issues it is based on, so anyone can check it.
answerENG-128