Datasets:
project_id stringclasses 180
values | query stringlengths 1 141 | query_type stringclasses 3
values | positives listlengths 0 3 | candidates listlengths 4 13 |
|---|---|---|---|---|
p0000 | where does the process even start up and hook everything together? | natural | [
"p0000-f01"
] | [
{
"fact_id": "p0000-f01",
"text": "App.java is the entry point: it loads config/application.yaml, builds the click and telemetry consumers, and wires the shared DedupeStore, ParquetSink and DeadLetterProducer into them.",
"anchors": [
"src/main/java/io/streamlane/App.java"
],
"label": 1,
... |
p0000 | when I launch the service, which file kicks off the whole pipeline? | natural | [
"p0000-f01"
] | [
{
"fact_id": "p0000-f01",
"text": "App.java is the entry point: it loads config/application.yaml, builds the click and telemetry consumers, and wires the shared DedupeStore, ParquetSink and DeadLetterProducer into them.",
"anchors": [
"src/main/java/io/streamlane/App.java"
],
"label": 1,
... |
p0000 | where's the main startup code that connects the sinks to the readers? | natural | [
"p0000-f01"
] | [
{
"fact_id": "p0000-f01",
"text": "App.java is the entry point: it loads config/application.yaml, builds the click and telemetry consumers, and wires the shared DedupeStore, ParquetSink and DeadLetterProducer into them.",
"anchors": [
"src/main/java/io/streamlane/App.java"
],
"label": 1,
... |
p0000 | wheres the startup file that wires everything, cant find it lol | messy | [
"p0000-f01"
] | [
{
"fact_id": "p0000-f01",
"text": "App.java is the entry point: it loads config/application.yaml, builds the click and telemetry consumers, and wires the shared DedupeStore, ParquetSink and DeadLetterProducer into them.",
"anchors": [
"src/main/java/io/streamlane/App.java"
],
"label": 1,
... |
p0000 | how do I add support for a brand new stream of messages to ingest? | natural | [
"p0000-f02"
] | [
{
"fact_id": "p0000-f02",
"text": "Each topic has its own consumer class (ClickConsumer, TelemetryConsumer); a new topic means a new consumer class in the consumer package plus an Avro schema under src/main/avro.",
"anchors": [
"src/main/java/io/streamlane/consumer/ClickConsumer.java",
"src/... |
p0000 | I need to ingest a fresh kind of message, what files do I create? | natural | [
"p0000-f02"
] | [
{
"fact_id": "p0000-f02",
"text": "Each topic has its own consumer class (ClickConsumer, TelemetryConsumer); a new topic means a new consumer class in the consumer package plus an Avro schema under src/main/avro.",
"anchors": [
"src/main/java/io/streamlane/consumer/ClickConsumer.java",
"src/... |
p0000 | adding a new kafka feed, what pieces do I need to write? | natural | [
"p0000-f02"
] | [
{
"fact_id": "p0000-f02",
"text": "Each topic has its own consumer class (ClickConsumer, TelemetryConsumer); a new topic means a new consumer class in the consumer package plus an Avro schema under src/main/avro.",
"anchors": [
"src/main/java/io/streamlane/consumer/ClickConsumer.java",
"src/... |
p0000 | need to add another stream to ingest, what do i make, new file or what | messy | [
"p0000-f02"
] | [
{
"fact_id": "p0000-f02",
"text": "Each topic has its own consumer class (ClickConsumer, TelemetryConsumer); a new topic means a new consumer class in the consumer package plus an Avro schema under src/main/avro.",
"anchors": [
"src/main/java/io/streamlane/consumer/ClickConsumer.java",
"src/... |
p0000 | events vanish after the service crashes mid-batch, why? | natural | [
"p0000-f03"
] | [
{
"fact_id": "p0000-f03",
"text": "Offsets must only be committed after the ParquetSink write has succeeded or the record has been handed to the dead-letter topic; auto-commit has to stay disabled or a crash silently loses events.",
"anchors": [
"src/main/java/io/streamlane/consumer/ClickConsumer.... |
p0000 | after a crash some records never show up in the lake, what setting causes that? | natural | [
"p0000-f03"
] | [
{
"fact_id": "p0000-f03",
"text": "Offsets must only be committed after the ParquetSink write has succeeded or the record has been handed to the dead-letter topic; auto-commit has to stay disabled or a crash silently loses events.",
"anchors": [
"src/main/java/io/streamlane/consumer/ClickConsumer.... |
p0000 | why do we lose data when the process dies, the kafka position thing? | natural | [
"p0000-f03"
] | [
{
"fact_id": "p0000-f03",
"text": "Offsets must only be committed after the ParquetSink write has succeeded or the record has been handed to the dead-letter topic; auto-commit has to stay disabled or a crash silently loses events.",
"anchors": [
"src/main/java/io/streamlane/consumer/ClickConsumer.... |
p0000 | service died and some stuff just gone from the lake, wtf | messy | [
"p0000-f03"
] | [
{
"fact_id": "p0000-f03",
"text": "Offsets must only be committed after the ParquetSink write has succeeded or the record has been handed to the dead-letter topic; auto-commit has to stay disabled or a crash silently loses events.",
"anchors": [
"src/main/java/io/streamlane/consumer/ClickConsumer.... |
p0000 | I changed the avro definition but the code still has the old field names | natural | [
"p0000-f04"
] | [
{
"fact_id": "p0000-f04",
"text": "Avro classes are generated from the .avsc files at build time; editing generated sources does nothing, so change the schema and rebuild with Gradle.",
"anchors": [
"src/main/avro/click_event.avsc",
"build.gradle.kts"
],
"label": 1,
"source": "po... |
p0000 | my edits to the java model files get overwritten or ignored, why? | natural | [
"p0000-f04"
] | [
{
"fact_id": "p0000-f04",
"text": "Avro classes are generated from the .avsc files at build time; editing generated sources does nothing, so change the schema and rebuild with Gradle.",
"anchors": [
"src/main/avro/click_event.avsc",
"build.gradle.kts"
],
"label": 1,
"source": "po... |
p0000 | changed the avsc but java still old, do I need to regenerate? | natural | [
"p0000-f04"
] | [
{
"fact_id": "p0000-f04",
"text": "Avro classes are generated from the .avsc files at build time; editing generated sources does nothing, so change the schema and rebuild with Gradle.",
"anchors": [
"src/main/avro/click_event.avsc",
"build.gradle.kts"
],
"label": 1,
"source": "po... |
p0000 | i edited the java file for the event record and nothing changed lol | messy | [
"p0000-f04"
] | [
{
"fact_id": "p0000-f04",
"text": "Avro classes are generated from the .avsc files at build time; editing generated sources does nothing, so change the schema and rebuild with Gradle.",
"anchors": [
"src/main/avro/click_event.avsc",
"build.gradle.kts"
],
"label": 1,
"source": "po... |
p0000 | what happens if I add a new column to the click record, will old data still read? | natural | [
"p0000-f05"
] | [
{
"fact_id": "p0000-f05",
"text": "Schema changes to click_event.avsc must be backward compatible (new fields need defaults), because old events are still in the topic and replays are done with the new reader schema.",
"anchors": [
"src/main/avro/click_event.avsc"
],
"label": 1,
"sourc... |
p0000 | adding a property to the click payload, will older messages break when reprocessed? | natural | [
"p0000-f05"
] | [
{
"fact_id": "p0000-f05",
"text": "Schema changes to click_event.avsc must be backward compatible (new fields need defaults), because old events are still in the topic and replays are done with the new reader schema.",
"anchors": [
"src/main/avro/click_event.avsc"
],
"label": 1,
"sourc... |
p0000 | is it safe to add an attribute to the click record given old messages are still around? | natural | [
"p0000-f05"
] | [
{
"fact_id": "p0000-f05",
"text": "Schema changes to click_event.avsc must be backward compatible (new fields need defaults), because old events are still in the topic and replays are done with the new reader schema.",
"anchors": [
"src/main/avro/click_event.avsc"
],
"label": 1,
"sourc... |
p0000 | adding a new thing to click record, will old stuff in topic break?? | messy | [
"p0000-f05"
] | [
{
"fact_id": "p0000-f05",
"text": "Schema changes to click_event.avsc must be backward compatible (new fields need defaults), because old events are still in the topic and replays are done with the new reader schema.",
"anchors": [
"src/main/avro/click_event.avsc"
],
"label": 1,
"sourc... |
p0000 | older sensor boards start failing to parse after I added a property, why | natural | [
"p0000-f06"
] | [
{
"fact_id": "p0000-f06",
"text": "Telemetry schema fields added without a default will make deserialization fail for older device firmware that does not send them; give them a null-union default.",
"anchors": [
"src/main/avro/telemetry_event.avsc"
],
"label": 1,
"source": "positive"
... |
p0000 | new field in the device reading breaks parsing for old hardware, what do I do | natural | [
"p0000-f06"
] | [
{
"fact_id": "p0000-f06",
"text": "Telemetry schema fields added without a default will make deserialization fail for older device firmware that does not send them; give them a null-union default.",
"anchors": [
"src/main/avro/telemetry_event.avsc"
],
"label": 1,
"source": "positive"
... |
p0000 | adding a field to the telemetry payload made old units error out, how should I declare it? | natural | [
"p0000-f06"
] | [
{
"fact_id": "p0000-f06",
"text": "Telemetry schema fields added without a default will make deserialization fail for older device firmware that does not send them; give them a null-union default.",
"anchors": [
"src/main/avro/telemetry_event.avsc"
],
"label": 1,
"source": "positive"
... |
p0000 | new attr on the sensor msgs made old boards crash parsing, help | messy | [
"p0000-f06"
] | [
{
"fact_id": "p0000-f06",
"text": "Telemetry schema fields added without a default will make deserialization fail for older device firmware that does not send them; give them a null-union default.",
"anchors": [
"src/main/avro/telemetry_event.avsc"
],
"label": 1,
"source": "positive"
... |
p0000 | bad records keep hitting the queue again and again instead of being parked, why? | natural | [
"p0000-f07"
] | [
{
"fact_id": "p0000-f07",
"text": "Events that fail Avro validation are not retried; they are sent to the dead-letter topic with the original bytes and an error header so they can be replayed after a fix.",
"anchors": [
"src/main/java/io/streamlane/sink/DeadLetterProducer.java"
],
"label":... |
p0000 | a malformed message never gets set aside, it loops forever, what's going on? | natural | [
"p0000-f07"
] | [
{
"fact_id": "p0000-f07",
"text": "Events that fail Avro validation are not retried; they are sent to the dead-letter topic with the original bytes and an error header so they can be replayed after a fix.",
"anchors": [
"src/main/java/io/streamlane/sink/DeadLetterProducer.java"
],
"label":... |
p0000 | where do malformed messages go when they fail checks? | natural | [
"p0000-f07"
] | [
{
"fact_id": "p0000-f07",
"text": "Events that fail Avro validation are not retried; they are sent to the dead-letter topic with the original bytes and an error header so they can be replayed after a fix.",
"anchors": [
"src/main/java/io/streamlane/sink/DeadLetterProducer.java"
],
"label":... |
p0000 | bad msgs keep looping and never get parked, wth | messy | [
"p0000-f07"
] | [
{
"fact_id": "p0000-f07",
"text": "Events that fail Avro validation are not retried; they are sent to the dead-letter topic with the original bytes and an error header so they can be replayed after a fix.",
"anchors": [
"src/main/java/io/streamlane/sink/DeadLetterProducer.java"
],
"label":... |
p0000 | the bad messages in the error queue look different from what came in, why? | natural | [
"p0000-f08"
] | [
{
"fact_id": "p0000-f08",
"text": "DeadLetterProducer must publish the original raw payload bytes, not a re-serialized object; re-encoding hides the very corruption that caused the failure.",
"anchors": [
"src/main/java/io/streamlane/sink/DeadLetterProducer.java"
],
"label": 1,
"source... |
p0000 | when I inspect rejected records in the error queue, the bytes don't match what the producer sent | natural | [
"p0000-f08"
] | [
{
"fact_id": "p0000-f08",
"text": "DeadLetterProducer must publish the original raw payload bytes, not a re-serialized object; re-encoding hides the very corruption that caused the failure.",
"anchors": [
"src/main/java/io/streamlane/sink/DeadLetterProducer.java"
],
"label": 1,
"source... |
p0000 | is the error output altering the rejected records somehow? | natural | [
"p0000-f08"
] | [
{
"fact_id": "p0000-f08",
"text": "DeadLetterProducer must publish the original raw payload bytes, not a re-serialized object; re-encoding hides the very corruption that caused the failure.",
"anchors": [
"src/main/java/io/streamlane/sink/DeadLetterProducer.java"
],
"label": 1,
"source... |
p0000 | the dead letter stuff looks mangled compared to the original msg, y | messy | [
"p0000-f08"
] | [
{
"fact_id": "p0000-f08",
"text": "DeadLetterProducer must publish the original raw payload bytes, not a re-serialized object; re-encoding hides the very corruption that caused the failure.",
"anchors": [
"src/main/java/io/streamlane/sink/DeadLetterProducer.java"
],
"label": 1,
"source... |
p0000 | duplicate records still reach the lake even though I already ingested them | natural | [
"p0000-f09"
] | [
{
"fact_id": "p0000-f09",
"text": "Deduplication lives in DedupeStore, which keys on the event id and keeps entries for a bounded time window so state does not grow forever.",
"anchors": [
"src/main/java/io/streamlane/dedupe/DedupeStore.java"
],
"label": 1,
"source": "positive"
},
... |
p0000 | why does memory climb steadily over weeks of uptime? | natural | [
"p0000-f09"
] | [
{
"fact_id": "p0000-f09",
"text": "Deduplication lives in DedupeStore, which keys on the event id and keeps entries for a bounded time window so state does not grow forever.",
"anchors": [
"src/main/java/io/streamlane/dedupe/DedupeStore.java"
],
"label": 1,
"source": "positive"
},
... |
p0000 | how is the duplicate check cache cleaned up over time? | natural | [
"p0000-f09"
] | [
{
"fact_id": "p0000-f09",
"text": "Deduplication lives in DedupeStore, which keys on the event id and keeps entries for a bounded time window so state does not grow forever.",
"anchors": [
"src/main/java/io/streamlane/dedupe/DedupeStore.java"
],
"label": 1,
"source": "positive"
},
... |
p0000 | does the dupe checker remember stuff indefinitely?? | messy | [
"p0000-f09"
] | [
{
"fact_id": "p0000-f09",
"text": "Deduplication lives in DedupeStore, which keys on the event id and keeps entries for a bounded time window so state does not grow forever.",
"anchors": [
"src/main/java/io/streamlane/dedupe/DedupeStore.java"
],
"label": 1,
"source": "positive"
},
... |
p0000 | a message sent twice minutes apart still shows up twice downstream, why? | natural | [
"p0000-f10"
] | [
{
"fact_id": "p0000-f10",
"text": "The dedupe window must be longer than the maximum expected producer retry/redelivery delay; a shorter TTL lets late duplicates slip through into the lake.",
"anchors": [
"src/main/java/io/streamlane/dedupe/DedupeStore.java",
"config/application.yaml"
],... |
p0000 | late copies of the same record get through even though I already saw it | natural | [
"p0000-f10"
] | [
{
"fact_id": "p0000-f10",
"text": "The dedupe window must be longer than the maximum expected producer retry/redelivery delay; a shorter TTL lets late duplicates slip through into the lake.",
"anchors": [
"src/main/java/io/streamlane/dedupe/DedupeStore.java",
"config/application.yaml"
],... |
p0000 | what cache lifetime should I set so late resends don't double count? | natural | [
"p0000-f10"
] | [
{
"fact_id": "p0000-f10",
"text": "The dedupe window must be longer than the maximum expected producer retry/redelivery delay; a shorter TTL lets late duplicates slip through into the lake.",
"anchors": [
"src/main/java/io/streamlane/dedupe/DedupeStore.java",
"config/application.yaml"
],... |
p0000 | late dupes sneaking into lake, ttl prob too small? | messy | [
"p0000-f10"
] | [
{
"fact_id": "p0000-f10",
"text": "The dedupe window must be longer than the maximum expected producer retry/redelivery delay; a shorter TTL lets late duplicates slip through into the lake.",
"anchors": [
"src/main/java/io/streamlane/dedupe/DedupeStore.java",
"config/application.yaml"
],... |
p0000 | how do I run only the duplicate-check tests without starting anything else? | natural | [
"p0000-f11"
] | [
{
"fact_id": "p0000-f11",
"text": "Run the dedupe unit tests alone with `./gradlew test --tests '*DedupeStoreTest'`; they need no Kafka broker.",
"anchors": [
"src/test/java/io/streamlane/dedupe/DedupeStoreTest.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0000-f2... |
p0000 | what command runs just the tests for the dup checker, no infrastructure needed? | natural | [
"p0000-f11"
] | [
{
"fact_id": "p0000-f11",
"text": "Run the dedupe unit tests alone with `./gradlew test --tests '*DedupeStoreTest'`; they need no Kafka broker.",
"anchors": [
"src/test/java/io/streamlane/dedupe/DedupeStoreTest.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0000-f2... |
p0000 | run only the dedupe tests, which command? | natural | [
"p0000-f11"
] | [
{
"fact_id": "p0000-f11",
"text": "Run the dedupe unit tests alone with `./gradlew test --tests '*DedupeStoreTest'`; they need no Kafka broker.",
"anchors": [
"src/test/java/io/streamlane/dedupe/DedupeStoreTest.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0000-f2... |
p0000 | how to run just the dup check tests fast? gradle thing | messy | [
"p0000-f11"
] | [
{
"fact_id": "p0000-f11",
"text": "Run the dedupe unit tests alone with `./gradlew test --tests '*DedupeStoreTest'`; they need no Kafka broker.",
"anchors": [
"src/test/java/io/streamlane/dedupe/DedupeStoreTest.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0000-f2... |
p0000 | a test fails on the build server with a socket error, nothing is running there | natural | [
"p0000-f12"
] | [
{
"fact_id": "p0000-f12",
"text": "ParquetSinkIT is an integration test that needs Docker available for its containers, so it fails on machines or CI runners without a Docker daemon.",
"anchors": [
"src/test/java/io/streamlane/sink/ParquetSinkIT.java"
],
"label": 1,
"source": "positive... |
p0000 | why does the lake writer test crash only on the pipeline servers? | natural | [
"p0000-f12"
] | [
{
"fact_id": "p0000-f12",
"text": "ParquetSinkIT is an integration test that needs Docker available for its containers, so it fails on machines or CI runners without a Docker daemon.",
"anchors": [
"src/test/java/io/streamlane/sink/ParquetSinkIT.java"
],
"label": 1,
"source": "positive... |
p0000 | why does the parquet write test error out on the CI runner? | natural | [
"p0000-f12"
] | [
{
"fact_id": "p0000-f12",
"text": "ParquetSinkIT is an integration test that needs Docker available for its containers, so it fails on machines or CI runners without a Docker daemon.",
"anchors": [
"src/test/java/io/streamlane/sink/ParquetSinkIT.java"
],
"label": 1,
"source": "positive... |
p0000 | parquet test works locally but dies on github, some container thing? | messy | [
"p0000-f12"
] | [
{
"fact_id": "p0000-f12",
"text": "ParquetSinkIT is an integration test that needs Docker available for its containers, so it fails on machines or CI runners without a Docker daemon.",
"anchors": [
"src/test/java/io/streamlane/sink/ParquetSinkIT.java"
],
"label": 1,
"source": "positive... |
p0000 | why does the output land as new files every so often instead of one big file? | natural | [
"p0000-f13"
] | [
{
"fact_id": "p0000-f13",
"text": "ParquetSink batches records and writes Parquet files to the data lake, rolling files by size or time.",
"anchors": [
"src/main/java/io/streamlane/sink/ParquetSink.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0000-f04",
"text... |
p0000 | how often does a new output file get started during ingestion? | natural | [
"p0000-f13"
] | [
{
"fact_id": "p0000-f13",
"text": "ParquetSink batches records and writes Parquet files to the data lake, rolling files by size or time.",
"anchors": [
"src/main/java/io/streamlane/sink/ParquetSink.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0000-f04",
"text... |
p0000 | when does the writer close a file and start a new one? | natural | [
"p0000-f13"
] | [
{
"fact_id": "p0000-f13",
"text": "ParquetSink batches records and writes Parquet files to the data lake, rolling files by size or time.",
"anchors": [
"src/main/java/io/streamlane/sink/ParquetSink.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0000-f14",
"text... |
p0000 | when does it cut a new file, seems random | messy | [
"p0000-f13"
] | [
{
"fact_id": "p0000-f13",
"text": "ParquetSink batches records and writes Parquet files to the data lake, rolling files by size or time.",
"anchors": [
"src/main/java/io/streamlane/sink/ParquetSink.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0000-f04",
"text... |
p0000 | after a consumer group rebalance some output files won't open in query engines | natural | [
"p0000-f14"
] | [
{
"fact_id": "p0000-f14",
"text": "ParquetSink must flush and close its open file before a partition is revoked; otherwise the footer is never written and the file is unreadable.",
"anchors": [
"src/main/java/io/streamlane/sink/ParquetSink.java",
"src/main/java/io/streamlane/consumer/Rebalan... |
p0000 | files written during a worker shuffle are corrupt when read back, only sometimes | natural | [
"p0000-f14"
] | [
{
"fact_id": "p0000-f14",
"text": "ParquetSink must flush and close its open file before a partition is revoked; otherwise the footer is never written and the file is unreadable.",
"anchors": [
"src/main/java/io/streamlane/sink/ParquetSink.java",
"src/main/java/io/streamlane/consumer/Rebalan... |
p0000 | why are some output files corrupt after a group reshuffle? | natural | [
"p0000-f14"
] | [
{
"fact_id": "p0000-f14",
"text": "ParquetSink must flush and close its open file before a partition is revoked; otherwise the footer is never written and the file is unreadable.",
"anchors": [
"src/main/java/io/streamlane/sink/ParquetSink.java",
"src/main/java/io/streamlane/consumer/Rebalan... |
p0000 | after a rebal some parquet files wont open, corrupt?? | messy | [
"p0000-f14"
] | [
{
"fact_id": "p0000-f14",
"text": "ParquetSink must flush and close its open file before a partition is revoked; otherwise the footer is never written and the file is unreadable.",
"anchors": [
"src/main/java/io/streamlane/sink/ParquetSink.java",
"src/main/java/io/streamlane/consumer/Rebalan... |
p0000 | what happens to in-flight work when workers get reshuffled between machines? | natural | [
"p0000-f15"
] | [
{
"fact_id": "p0000-f15",
"text": "RebalanceListener handles partition revoke/assign events: it commits offsets and flushes sink state on revoke.",
"anchors": [
"src/main/java/io/streamlane/consumer/RebalanceListener.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0... |
p0000 | during a group reshuffle, does the app save its progress before letting go? | natural | [
"p0000-f15"
] | [
{
"fact_id": "p0000-f15",
"text": "RebalanceListener handles partition revoke/assign events: it commits offsets and flushes sink state on revoke.",
"anchors": [
"src/main/java/io/streamlane/consumer/RebalanceListener.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0... |
p0000 | what runs when the group reshuffles the workload? | natural | [
"p0000-f15"
] | [
{
"fact_id": "p0000-f15",
"text": "RebalanceListener handles partition revoke/assign events: it commits offsets and flushes sink state on revoke.",
"anchors": [
"src/main/java/io/streamlane/consumer/RebalanceListener.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0... |
p0000 | what happens when the group reshuffles, does it save stuff first | messy | [
"p0000-f15"
] | [
{
"fact_id": "p0000-f15",
"text": "RebalanceListener handles partition revoke/assign events: it commits offsets and flushes sink state on revoke.",
"anchors": [
"src/main/java/io/streamlane/consumer/RebalanceListener.java"
],
"label": 1,
"source": "positive"
},
{
"fact_id": "p0... |
p0000 | my workers keep getting dropped from the group and it loops with more reshuffles | natural | [
"p0000-f16"
] | [
{
"fact_id": "p0000-f16",
"text": "Work done inside the rebalance callbacks must be quick; anything slower than max.poll.interval.ms causes the consumer to be kicked from the group and triggers another rebalance.",
"anchors": [
"src/main/java/io/streamlane/consumer/RebalanceListener.java",
"... |
p0000 | why does the group keep kicking my workers out when I do heavy work on shuffle? | natural | [
"p0000-f16"
] | [
{
"fact_id": "p0000-f16",
"text": "Work done inside the rebalance callbacks must be quick; anything slower than max.poll.interval.ms causes the consumer to be kicked from the group and triggers another rebalance.",
"anchors": [
"src/main/java/io/streamlane/consumer/RebalanceListener.java",
"... |
amem memory queries
Training data for a reranker over coding-agent memory: given a developer's message and the facts a memory layer retrieved, which fact actually answers it?
It was built to train a small cross-encoder that rescores the top candidates from amem (agent memory, anchored to your code). amem stores short facts tied to the files they describe and retrieves them with SQLite FTS5/BM25, an in-process n-gram encoder and ranking signals. That works well when a question shares words with the fact; this dataset is weighted toward the questions where it doesn't.
What's inside
| Count | |
|---|---|
| Synthetic projects | 200 (40 domains, no e-commerce) |
| Facts | 6,963 (constraint, gotcha, decision, howto, structure), each anchored to 1–2 files |
| Queries | 27,957: 20,130 natural, 6,227 messy, 1,600 vague |
| Queries with two correct facts | 1,590 |
| Candidates per query | 10.8 on average: the positives, ~6.8 hard negatives, 3 random negatives |
Splits (by project, never by row)
| Split | Projects | Rows |
|---|---|---|
| train | 180 | 24,830 |
| validation | 10 | 1,550 |
| test | 10 | 1,577 |
Schema
Each row of train / validation / test:
{
"project_id": "p0041",
"query": "my new database column isn't showing up in my struct after I added it to the schema script",
"query_type": "natural",
"positives": ["p0041-f07"],
"candidates": [
{"fact_id": "p0041-f07", "text": "internal/store/models.go is sqlc output, so schema changes made only i...", "anchors": ["internal/store/models.go", "github/workflows/ci.yml"], "label": 1, "source": "positive"},
{"fact_id": "p0041-f25", "text": "Runtime settings (listen address, database URL, pool size) are loaded ...", "anchors": ["internal/config/config.go"], "label": 0, "source": "hard"},
{"fact_id": "p0041-f27", "text": "Entries reference accounts via foreign key, and each account has a fix...", "anchors": ["migrations/0002_create_entries.sql", "migrations/0001_create_accounts.sql"], "label": 0, "source": "random"}
]
}
query_type:natural(clean English, usually paraphrased or symptom-style),messy(typos, half sentences, vague references), orvague("ok go ahead", "lgtm do it"). Vague rows have no positives: the right answer is nothing.source:positive,hard(a wrong fact amem itself ranked high for this query), orrandom.factsconfig: every fact withfact_id,project_id,kind,text,anchors.projectsconfig: name, domain, stack, summary, file tree and split for each project.
How it was generated
- Projects (Claude Sonnet 5.5): 200 repositories across 40 domains (SaaS backends, mobile, data pipelines, CLIs, infra, ML training and serving, games, fintech, healthcare, embedded, and more), each with a stack and a 15–40 file tree. E-commerce and web shops were excluded so nothing overlaps the amem retrieval benchmark.
- Facts (Claude Sonnet 5.5): 30–40 per project in amem's fact format, anchored to paths from that project's tree. Near-duplicate facts were removed.
- Queries (Claude Haiku 5.5): four per fact. Two describe only the symptom or goal and were asked to avoid the fact's distinctive words (each fact came with an explicit avoid list), one may reuse at most one of them, and one is messy. Plus 6–10 queries per project that need two facts. Duplicates were removed.
- Vague prompts: 8 per project from a fixed list of 40 non-requests.
- Hard negatives: every project's facts were loaded into a throwaway amem store, every query ran through amem's real retrieval (
amem_context, top 20), and the highest-ranked wrong facts became hard negatives (up to 7). Three random wrong facts were added per query.
Generation used the Anthropic Batch API and cost about $4.64. The generator lives in the amem repo under tools/reranker-data/.
Quality checks
- Key-word overlap: 39.4% of natural queries share none of their correct fact's key words (generic developer words such as test, data, error, run are not counted).
- Leakage: every fact and query was compared with iamem/amem-retrieval-bench (exact match, or word Jaccard ≥ 0.6). 1 fact and 5 queries were dropped.
Baseline: amem today, on the test split
| Path | Right fact first | Right fact in top 3 | Vague prompts given nothing |
|---|---|---|---|
| Prompt hook (automatic) | 34.5% | 47.7% | 96.3% |
amem_context (agent asks) |
34.1% | 53.8% | n/a |
On the hand-written benchmark amem scores 88% / 97%; here it is far lower by design, because these queries were written to avoid the words keyword retrieval relies on. This is the gap a reranker should close, and these are the numbers it has to beat.
A model trained on this data
iamem/amem-reranker-minilm is MiniLM-L6 (22M parameters) fine-tuned on the train split. Rescoring amem's own top-20 on the test split:
| Right fact first | In top 3 | Vague prompts given nothing | |
|---|---|---|---|
| amem retrieval alone | 32.6% | 52.1% | 96.3% |
| Base MS MARCO MiniLM, not fine-tuned | 55.4% | 74.7% | 32.5% |
| Fine-tuned on this dataset | 68.8% | 82.3% | 98.8% |
Leakage policy
iamem/amem-retrieval-bench is a pure test set. It was never used to generate, filter or tune this data, except for the leakage check above, and it must not be used for training.
Known limitations
- Synthetic. Projects, facts and queries were written by language models. They read as realistic, but they are not logs from real agent sessions.
- English only.
- Some hard negatives may be partly relevant. A fact amem ranked high is sometimes related to the query without answering it, and occasionally answers part of it. Labels follow the fact the query was written for.
- Harder than everyday traffic. Symptom-style queries are over-represented on purpose; real prompts more often share words with the fact.
- Two-fact queries list both facts as positives; a single fact may answer them partly.
Links
- amem: https://github.com/sslugic/amem · https://getamem.com
- Reranker trained on this data: https://huggingface.co/iamem/amem-reranker-minilm
- Retrieval benchmark: https://huggingface.co/datasets/iamem/amem-retrieval-bench
- Try amem's search in the browser: https://huggingface.co/spaces/7bunnies/amem-demo
- Article: https://huggingface.co/blog/7bunnies/stop-paying-your-agent-to-relearn-your-codebase
License
CC BY 4.0.
- Downloads last month
- -