Replies: 7 comments
|
Also is there a way to cache component outputs, for use cases like starting from earlier state if some component fails etc, would love to know. |
|
For starting from an earlier state we do have a pipeline breakpoints feature coming soon to Haystack. You can find an experimental implementation of it in our haystack-experimental repo. Here is the discussion on it and here is a google colab for it. |
|
Hey @SRJL |
|
@sky-2002 moved this to be a discussion since that feels more relevant than an issue currenty |
|
Awesome to see this thread — I've run into this exact pain point while building multi-hop RAG pipelines. Tracking usage is one thing... but making sense of which step derailed the semantic flow is a whole different beast, especially once dynamic retrieval + fallback reranking enters the picture. We’ve been testing a “semantic traceback” system (kind of a WFGY-style symbolic path debugger) — it lets you not only track LLM/token costs, but reconstruct where the logic flow diverged, even when caching kicks in or prompts vary subtly. If helpful, here’s how we do it: (esp. Problem #17, which covers caching misalignment + shadow trace fallback) Still early stage, but might be useful if you’re trying to debug RAG workflows with more than one failpoint. Happy to trade notes! |
|
Adding to @sjrl's recommendation for Langfuse — here's a complementary approach that goes beyond tracking into actual cost reduction: The tracking → reduction pipeline:
The biggest win isn't tracking costs — it's using the tracking data to route tasks to the right model. Track first, then optimize. |
Uh oh!
There was an error while loading. Please reload this page.
Hi haystack team,
I have been using haystack for my workflows and I have components that make LLM API calls.
I wanted to ask how do I add tracking for these components so that I can see usage for every run.
Please point me to any resources or docs if any.
All reactions