text: 
  
  TITLE
  RAG : Adding end to end training for the retriever (both question encoder and doc encoder) 
  
  COMMENTS
  12
  
  REACTIONS
  +1: 0
  -1: 0
  laugh: 0
  hooray: 0
  heart: 0
  rocket: 0
  eyes: 0
  
  BODY
  # 🚀 Feature request
  
  As mentioned in this recent paper [End-to-End Training of Neural Retrievers for Open-Domain Question Answering](https://arxiv.org/abs/2101.00408), we can get better results for QA tasks if we fine-tune the retriever section in an end-to-end manner. 
  
  
  ## Paper's method
  
  Fine-tune both doc-encoder and question encoder and update the pre computed index embedding in every 500 steps.   
  