Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Thompson Sampling Python Packages

Python packages with the GitHub topic thompson-sampling. Sorted by monthly downloads, with stars and forks.
kalibr-ai
kalibr

Stop overpaying to run your agents. Kalibr routes every request to lower-cost model and tool paths without degrading performance.

3K 34 3
Chetan0246
multi-agent-swarm

Cost-aware, fault-tolerant LLM multi-agent scheduler: Thompson-sampled batching, effort escalation, verification, circuit breaker, hedging, Batches API — with a cited 2026 state-of-the-art review

3K 0 0
PlaytikaOSS
pybandits

Python library for Multi-Armed Bandits

3K 55 6
sail-sg
oat-llm

🌾 OAT: A research-friendly framework for LLM online alignment, including reinforcement learning, preference learning, etc.

917 677 64
alison-carrera
mabalgs

Multi-armed bandit algorithms

755 136 26
PicadoLabs
model-router-cli

4k+ Downloads, High-performance, cost-aware LLM router and API gateway. Dynamically optimizes cost, latency, and quality across OpenAI, Anthropic, Gemini, and local models with Thompson sampling RL and instant fallback circuit breakers.

473 5 15
kalibr-ai
llm-cost-reduction

Stop overpaying to run your agents. Kalibr routes every request to lower-cost model and tool paths without degrading performance.

406 34 3
tygryso
hypotree

Memory that forgets: a persistent, self-revising belief-state MCP server and Python API for agentic R&D. Uses a hypothesis DAG to auto-prune dead ends and deduce truth without extra probes.

400 13 0
kalibr-ai
llm-cost-optimizer

Stop overpaying to run your agents. Kalibr routes every request to lower-cost model and tool paths without degrading performance.

399 34 3
alex-jb
orallexa-marketing-agent

AI marketing agent. Submit project once → auto-generate platform-native posts for 12 platforms (X, Reddit, HN, Dev.to, 小红书, ...). Bandit variant prediction. pip · MIT.

356 10 3
alison-carrera
onn

Online Deep Learning: Learning Deep Neural Networks on the Fly / Non-linear Contextual Bandit Algorithm (ONN_THS)

350 193 44
kaustav1996
marketing-agent-example

Autonomous prompt management with versioning, A/B experiments, metrics, and LLM-driven optimization. Built on agno.

329 1 0
kaustav1996
autoresearch-prompt-manager

Autonomous prompt management with versioning, A/B experiments, metrics, and LLM-driven optimization. Built on agno.

311 1 0
sulgik
orts

Odds-Ratio Thompson Sampling: bandits and A/B tests whose baseline keeps moving. Paper: arXiv 2609.19709

278 1 0
VahanArsenian
banditry

Contextual bandit agents (GP-UCB and Thompson sampling) with GP surrogates, evolutionary acquisition optimisation, and Langevin/NUTS posterior sampling.

263 6 1
kaustav1996
autoresearcher-shonku

Autonomous prompt management with versioning, A/B experiments, metrics, and LLM-driven optimization. Built on agno.

223 1 0
pras-ops
retrieval-reputation-layer

Reputation layer for any retriever: turns verified downstream outcomes into a ranking signal (Beta counters, Thompson sampling, staleness decay). LangChain and LlamaIndex adapters.

125 0 0
kaustav1996
shonku

Autonomous prompt management with versioning, A/B experiments, metrics, and LLM-driven optimization. Built on agno.

115 1 0
UQUH
tsroots

Optimizing Posterior Samples for Bayesian Optimization via Rootfinding

88 10 0
mohammadi-hadi
dynamic-pricing-lab

Dynamic pricing simulator: Thompson-sampling demand learning, forward-looking customers, and advertising

85 0 0
fonz-ai
kusp-dial

Online weight optimization via Thompson Sampling — learns optimal configurations from outcome feedback.

82 0 0
fonz-ai
fonz-dial

Online weight optimization via Thompson Sampling — learns optimal configurations from outcome feedback.

78 0 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology