haystack icon indicating copy to clipboard operation
haystack copied to clipboard

Investigate the utility of Embedding Templates

Open anakin87 opened this issue 2 years ago • 1 comments

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.

anakin87 avatar Sep 13 '23 09:09 anakin87

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 ?

sjrl avatar Feb 16 '24 09:02 sjrl