Skip to content

Commit

Permalink
Merge pull request #156 from vinaybagade/main
Browse files Browse the repository at this point in the history
  • Loading branch information
rmkraus authored Jul 31, 2024
2 parents d498fcf + 02e7944 commit 1a33175
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions notebooks/agentic_rag_with_nemo_retriever_nims.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,12 @@
" \"\"\"\n",
" print(\"---RETRIEVE---\")\n",
" sub_questions = state[\"sub_questions\"]\n",
" question = state[\"question\"]\n",
"\n",
" # Retrieval\n",
" documents = []\n",
" for question in sub_questions:\n",
" docs = hybrid_retriever.get_relevant_documents(question)\n",
" for sub_question in sub_questions:\n",
" docs = hybrid_retriever.get_relevant_documents(sub_question)\n",
" documents.extend(docs)\n",
" return {\"documents\": documents, \"question\": question}\n",
"\n",
Expand Down

0 comments on commit 1a33175

Please sign in to comment.