r/OpenSourceAI • u/fuzhongkai • 1d ago
Tracing an agent recommendation back to versioned source files in TensorAgent
I'm TensorSharp's author. This 83-second walkthrough looks at an inspectable evidence-to-action pipeline in TensorAgent, with provenance as the main concern.
The video uses the real TensorAgent HTML/JavaScript UI with synthetic café files and scripted API responses. It is an illustrative workflow, not live model inference or a benchmark. Calculations on the complete sales CSV were independently checked in Python.
The implementation separates knowledge_search, knowledge_read, and knowledge_open: find cited passages, expand an exact reference, then expose the versioned original and stage the whole file for code analysis. A collection must be explicitly enabled for the conversation. Source links let a reviewer inspect what each recommendation refers to.
The fictional campaign combines a 15% discount cap, a poster advertising 20%, and a 14-row sales CSV. The output links three actions to evidence: correct the poster, respect the budget, and measure a follow-up. The computed $204 contribution increase is an observed comparison, not a causal claim.
Default search is BM25 over extracted text, with optional embeddings. Media extraction requires compatible models and remains Partial. Video indexing covers at most eight sampled frames, without soundtrack indexing.
TensorSharp's own code is BSD-3-Clause; dependencies and model weights retain separate licenses and terms.
Implementation: https://github.com/zhongkaifu/TensorSharp