Open liyin2015 opened 2 months ago
We can diagnose and trace all generator calls end to end as follows:
It can track two generators used in the retriever which is saved in ComponentList
but as each file trace each call separately, we might want a single file that will have better visualization, especially fit it back to a graph.
Show data id (from the dataset) in the graph, and show the score for each traces in the demo paramter.
Design choice: (1) support cycle, we treat it as a component where its prompt has to be adapted to multiple sets of inputs and outputs, in practical this make sense (2) user not creating a cycle, they treating each repeating as a new copy node and has its own parameter.
For (2) its easy, everything works out of box, users just need to know that they are doing this intentional for (1) we have to carefully design how the gradient works, and how the demo works (demo should aggregate both parts)
Multi-hop retriever
Multi-hop RAG (works by simplify replace the retriever if we simplify follow the retriever api)