Investigate the utility of Embedding Templates
We should experiment to see if for retrieval purposes it is beneficial to use Embedding Templates such as the following:
This article talks about {{doc.meta["company"]}}, it was published on {{doc.meta["publication_date"]}}. Here is the article's content: {{doc.content}}
(from https://github.com/deepset-ai/haystack/pull/5390#issuecomment-1662018204)
There are mixed opinions about them, which should be clarified by experimentation. A related discussion can be found in #5745, in particular in https://github.com/deepset-ai/haystack/pull/5745#pullrequestreview-1620249904.
I'm wondering if the new OutputAdapter in this PR https://github.com/deepset-ai/haystack/pull/6936 would be able to accomplish this? I'm not sure if it can handle the input type List[Document] and an output type of List[Document]. Do you happen to know @vblagoje ?