With a workflow, one needs to keep track of sequential calls for analysis. It would be nice to send a tag/identifier/metadata when invoking.
Something like:
chain.ainvoke(inputs, metadata={"question_id": 4})
Then the prompt_logs file would have this info in each json line.