Replies: 2 comments 4 replies
-
Hey @nicir interesting! As a side note. I am moving this to the Discussions section :) It will make it easier to refer to in the future. |
Beta Was this translation helpful? Give feedback.
-
Thank you @TuanaCelik, If someone queries a sentence (this could be a question or a definition of something) it would be likely that you would find a sentence that answers the question or gives extra information to the definition by using NSP. Example 1: Example 2: So yes, I am suggesting to use NSP as similarity function (altough I know it has practically nothing to do with similiarity itself). Do you think this would be worth a try and could be implemented with reasonable effort? |
Beta Was this translation helpful? Give feedback.
-
Hi there,
currently I am working with Haystack to train a Retriever for context retrieval in a custom domain. I am using the "DensePassageRetriever" that offers "dot_product" and "cosine" as similarity functions for training.
Important Note: I am not interested in a QA-System with a Generator like RAG. It's all about the retrieval.
--
I was wondering if it would be beneficial to use some kind of next sentence prediction as function for the retriver. An example to explain my thoughts:
Query:
Retrievals:
So the structure is always a definition of something as query and a second sentence that specifies the subject (in this case of 'house') and gives extra information. Something Next Sentence Prediction would be suitable.
--
Is anything like this planned @haystack (integrating custom metrics to retrieve documents)?
Is there a recommended way to implement this function on my own, e.g. by modifying the DPR-class at this point:
I would appreciate a second opinion or an assessment if my idea would be feasible with moderate effort and if it would be beneficial at all. Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions