Repository navigation
feat(live): instrument loaders + embeddings; full-framework demo - #900
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends SynapseKit Live to the last subsystems so a whole run streams end to end, and adds a one-command demo of everything.
load()/aload()are sync and share no base class, so the engine now wraps sync methods too.TextLoader,CSVLoader,JSONLoader, …) →loader.loadSynapsekitEmbeddings/ONNXEmbeddings.embed) →embeddings.embedexamples/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 ifANTHROPIC_API_KEYis set, else a local FakeLLM). Keeps the server alive so the browser tab stays connected.Verified headless — all seven subsystem families stream
[ok]:Refs #896 #898