Skip to content

feat(live): instrument loaders + embeddings; full-framework demo - #900

Merged
AmitoVrito merged 3 commits into
mainfrom
feat/live-loaders-embeddings-allfeatures
Aug 1, 2026
Merged

AmitoVrito merged 3 commits into
mainfrom
feat/live-loaders-embeddings-allfeatures

Conversation

@AmitoVrito

Copy link
Copy Markdown
Collaborator

Extends SynapseKit Live to the last subsystems so a whole run streams end to end, and adds a one-command demo of everything.

  • Sync-method wrapping — loaders' load()/aload() are sync and share no base class, so the engine now wraps sync methods too.
  • Loaders (TextLoader, CSVLoader, JSONLoader, …) → loader.load
  • Embeddings (SynapsekitEmbeddings/ONNXEmbeddings.embed) → embeddings.embed
  • Dashboard icons + Story summaries for loader/embeddings.
  • examples/live_all_features.py — opens the dashboard and loops through loader, embeddings, vector search, tool, MCP tool, memory/DB, knowledge graph, and an LLM (real Claude if ANTHROPIC_API_KEY is set, else a local FakeLLM). Keeps the server alive so the browser tab stays connected.

Verified headless — all seven subsystem families stream [ok]:

📄 loader · 🧬 embeddings · 🔍 vector search · 🔧 tool · 🔧 mcp tool · 🗃 memory r/w · 🕸 graph ingest+query · 🧠 llm

Refs #896 #898

Extend Live auto-instrumentation to the remaining subsystems so a whole
run streams to the dashboard:
  - sync-method wrapping (loaders' load()/aload() are sync, share no base)
  - data loaders (TextLoader, CSVLoader, JSONLoader, ...) → loader.load
  - embeddings (SynapsekitEmbeddings/ONNXEmbeddings.embed) → embeddings.embed
  - dashboard icons + Story summaries for loader/embeddings

examples/live_all_features.py exercises every subsystem in one loop —
loader, embeddings, vector search, tool, MCP tool, memory/DB, knowledge
graph, LLM (real Claude if ANTHROPIC_API_KEY is set, else a local FakeLLM)
— and keeps the server alive so the browser tab stays connected.

Refs #896 #898
The bus replays bounded history to late-joining subscribers (intended, so a
browser opening mid-run sees the run so far). In the full suite, events from
a prior test were replayed first, so assert by membership after clearing
history rather than by position.
- examples/live_rag_claude.py: real end-to-end RAG answered by Claude
  (reads ANTHROPIC_API_KEY from env, hashing bag-of-words retrieval →
  grounded prompt → real Claude), streamed to the dashboard.
- examples/live_all_features.py: now exercises every subsystem AND a real
  Claude RAG capstone (loader → embeddings → vector search → tool → MCP
  tool → memory/DB → knowledge graph → grounded Claude answer). Falls back
  to a local FakeLLM when no key is set. Fixes dict-hit text extraction.
@AmitoVrito
AmitoVrito merged commit 80fe767 into main Aug 1, 2026
12 checks passed
@AmitoVrito
AmitoVrito deleted the feat/live-loaders-embeddings-allfeatures branch August 1, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant