This cl:
1- creates a Result class and integrates it to retriever. In all retrieval modes the retriever now returns a list[Result] rather than list[dict].
2- creates a helper 'ResultsWriter` class to take care of writing results to files.
Changing the reranker to read from this new result type will be submitted in a follow up cl.
TESTED=ran all demos of different retrieval modes.
This cl: 1- creates a
Result
class and integrates it to retriever. In all retrieval modes the retriever now returns a list[Result] rather than list[dict]. 2- creates a helper 'ResultsWriter` class to take care of writing results to files.Changing the reranker to read from this new result type will be submitted in a follow up cl.
TESTED=ran all demos of different retrieval modes.