How prasanth866/learning_sandbox works
This repository is a sandbox of three independent prototypes, not one end-to-end product. The async backend accepts task commands over WebSockets, queues and runs them, then streams lifecycle and output events; the Bayesian project builds student-performance networks and compares exact and approximate inference. The LangChain directory documents an ecosystem exploration, but its implementation is not present in the sampled source. Edges reflect shown calls or README claims; unsampled subsystems are included without inferred wiring.
Main entry points: main.py WebSocket API · manager.py Connection manager · worker.py Worker pool and reaper · network.py Bayesian network model
Components 17
Async command backend
- WebSocket API
01-async-flow/main.py - Task and client state
01-async-flow/models.py - Connection manager
01-async-flow/manager.py - Job queue
01-async-flow/worker.py - Worker pool and reaper
01-async-flow/worker.py - Streaming command runner
01-async-flow/runner.py - Command process
LangChain exploration
- LCEL, vector stores, agents, observability
02-langchain-ecosystem
Bayesian inference
- Data acquisition
03-student-performance-bayes/download_data.py - Bayesian network model
03-student-performance-bayes/network.py - Probability factors
03-student-performance-bayes/factor.py - Network construction and sampling
03-student-performance-bayes/synthetic.py - Exact inference
03-student-performance-bayes/exact.py - Approximate inference
03-student-performance-bayes/sampling.py - Inference comparison
03-student-performance-bayes/compare.py - Plotting
03-student-performance-bayes/plots.py
Other components
- WebSocket client
Connections 21
- WebSocket client → WebSocket API: sends commands
01-async-flow/main.py - WebSocket API → Connection manager: connects and sends
01-async-flow/main.py - WebSocket API → Task and client state: validates messages
01-async-flow/main.py - WebSocket API → Job queue: enqueues tasks
01-async-flow/main.py - WebSocket API → Worker pool and reaper: starts workers
01-async-flow/main.py - WebSocket API → Connection manager: disconnects clients
01-async-flow/main.py - Connection manager → Task and client state: creates client state
01-async-flow/manager.py - Worker pool and reaper → Job queue: consumes tasks
01-async-flow/worker.py - Worker pool and reaper → Connection manager: checks client state
01-async-flow/worker.py - Worker pool and reaper → Streaming command runner: runs task
01-async-flow/worker.py - Streaming command runner → Connection manager: emits events
01-async-flow/runner.py - Streaming command runner → Command process: launches and streams
01-async-flow/runner.py - WebSocket client → LCEL, vector stores, agents, observability: explores capabilities
README.md - Network construction and sampling → Bayesian network model: constructs networks
03-student-performance-bayes/synthetic.py - Bayesian network model → Probability factors: stores CPT factors
03-student-performance-bayes/network.py - Exact inference → Bayesian network model: queries network
03-student-performance-bayes/exact.py - Exact inference → Probability factors: reduces and combines
03-student-performance-bayes/exact.py - Approximate inference → Bayesian network model: samples network
03-student-performance-bayes/sampling.py - Inference comparison → Network construction and sampling: builds test networks
03-student-performance-bayes/compare.py - Inference comparison → Exact inference: computes benchmarks
03-student-performance-bayes/compare.py - Inference comparison → Approximate inference: compares estimates
03-student-performance-bayes/compare.py