Repository navigation
Releases
Releases · vmontagh/go-llm-pipeline
v0.5.0: stable analyzer and llmvcr APIs
Highlights
- API freeze (#40):
pkg/analyzer,pkg/llmvcr,pkg/providerandpkg/policyare now stable. CI runsapidiffon every PR and fails breaking changes unless they are labelledbreaking-change(see README, "API stability"). All other packages remain experimental. - Provider features: typed multi-turn messages (#109), streaming for Ollama, OpenAI and Gemini (#110, #111), typed tool calling with a bounded loop (#112, #113), adaptive concurrency and circuit breaker
provider.Guard(#106). - New packages: offline evaluation
pkg/eval(#108), cost estimationpkg/cost(#104), SQLite vector storepkg/vectorstore/sqlitestore(#68), versioned prompt overlays inpkg/promptregistry(#103). - Pipeline: resumable checkpointed batches and DLQ attempts (#105).
- Docs: runnable GoDoc examples and concurrency patterns (#115).
Breaking changes and migration
pkg/analyzer (#116)
- Configure templates only through
analyzer.NewBuilder(p, parser).With...().Build(). Removed:NewTemplate,NewTextTemplate(useNewTextBuilder(p)),TemplateConfigurator, theWithTemplate*options (use the matchingBuilder.With*, e.g.WithScrubFunc) andBuilder.MustBuild(handle the error fromBuild). - Retry and error-taxonomy aliases moved to their home packages:
Tier*,ErrorTier,Code,WithCode,TierCode,TierPolicy,RetryPolicy,DefaultRetryPolicy,DefaultCodeToTier,IsRetryable,IsLongRetryable→pkg/policy; provider sentinels (ErrQuotaExceeded,ErrRateLimitExceeded,ErrMissingAPIKey,ErrAllKeysCoolingDown, …) →pkg/provider. - Removed internals:
ExecuteWithRetries,RetryConfig,ExtractAllJSON,Preflighter/RunPreflight,Event/EventLLMRetrying, the JSON-schema keyword constants (Prop*,Type*,StringEncodedBytes) and the photo-specificDefaultLeniencyPercent/DefaultMinTagsRequired.
pkg/llmvcr (#117)
pkg/vcrpatch,pkg/vcrpatch/pretty,pkg/scrubandpkg/llmtestare merged intopkg/llmvcr: replacescrub.X,vcrpatch.X,pretty.Xandllmtest.Xwithllmvcr.X.- Renamed:
vcrpatch.Matcher→llmvcr.InteractionMatcher,llmtest.UpdateEnv→llmvcr.GoldenUpdateEnv; the golden update variable is nowLLMVCR_UPDATE(wasLLMTEST_UPDATE). - The photo/judge response fixtures moved to an internal package;
OllamaMalformedJSONis removed.
Other
pkg/provider/geminicalls the REST API overnet/httpinstead of the deprecated SDK (#100).pkg/strategy: the judge prompt builder returns an error (#84).
Full changelog: v0.4.0...v0.5.0
v0.4.0
Immutable
release. Only release title and notes can be modified.
What's Changed
- feat(ollama): add local embeddings adapter for pkg/vectorstore by @vmontagh in #54
- test: replace real clocks in strategy and httputil tests with a logical clock by @vmontagh in #56
- docs(go-idioms): make the no-repeated-t.Run rule explicit in §3.2 by @vmontagh in #61
- test: reusable VCR cassette record/replay harness for provider adapters by @vmontagh in #59
- refactor(ollama): extract shared JSON-POST helper by @vmontagh in #60
- feat(vectorstore): metric-generic single-linkage clustering (ClusterByDistance) by @vmontagh in #62
- test: godog BDD integration harness with @fake/@live-local lanes by @vmontagh in #63
- feat(promptregistry): add versioned, testable prompt registry by @vmontagh in #64
- feat(semcache): semantic response cache backed by pkg/vectorstore by @vmontagh in #65
- feat(vectorstore): export scoring and validation helpers by @vmontagh in #66
- test(vectorstore): add reusable Store conformance harness by @vmontagh in #67
- docs: add §3.0 test authoring structure & simplicity standard by @vmontagh in #73
- feat(ollama): add WithThink option to toggle model thinking mode by @vmontagh in #74
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Immutable
release. Only release title and notes can be modified.
v0.2.0
Additive, backward-compatible additions to pkg/pipeline.
Feature A — PauseGate.Draining()
func (g *PauseGate) Draining() <-chan struct{} returns a broadcast channel closed exactly once by Stop(), so callers can select on a graceful drain instead of polling IsStopping(). Works on the zero-value gate; repeated Stop() never double-closes.
Feature B — per-stage Consume drain policy
DrainModeenum:DrainComplete(default, iota) andDrainDiscard.WithDrainMode(m DrainMode) ConsumeOptionWithDrainHandler[T any](fn func(T)) ConsumeOption
Under DrainDiscard, not-yet-started items are routed to the drain handler instead of being processed; the loop drains the channel until it closes and never cancels ctx. Default behavior is identical to v0.1.0.
Validated with go test -race ./... (green) and golangci-lint run ./... (0 issues).
v0.1.0
First tagged release of pkg/pipeline.
Highlights (closes #19)
- Graceful-stop / drain primitive.
PauseGate.Stop()transitions the gate into a terminal draining state and unblocks all waiters with the newErrDrainingsentinel — distinct fromcontext.Canceled, so in-flight LLM/HTTP calls finish on a live context instead of aborting mid-write. AddsPauseGate.IsStopping(). - Drain-aware
Consume. On stop, workers stop blocking on the pause, drain queued/in-flight items to completion on the live ctx, and return once the input channel closes. The context is never cancelled. - Waiter observability.
PauseGate.Waiters()reports parked callers, enabling deterministic, sleep-free pause/resume tests. - Lifecycle godoc documenting the Running / Paused / Draining / Cancelled states.
Consume
go get github.com/vmontagh/go-llm-pipeline@v0.1.0