Skip to content

Commit

Permalink
docs: fix qa_per_user.ipynb (#29290)
Browse files Browse the repository at this point in the history
# Description
The `config` option was not passed to `configurable_retriever.invoke()`.
Screenshot below. Fixed.
 
<img width="731" alt="Screenshot 2025-01-18 at 11 59 28 AM"
src="https://github.com/user-attachments/assets/21f30739-2abd-4150-b3ad-626ea9e3f96c"
/>
  • Loading branch information
thedamnedrhino authored Jan 18, 2025
1 parent 2fb6fd7 commit 8fad921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/how_to/qa_per_user.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
"# highlight-next-line\n",
"def retrieve(state: State, config: RunnableConfig):\n",
" # highlight-next-line\n",
" retrieved_docs = configurable_retriever.invoke(state[\"question\"])\n",
" retrieved_docs = configurable_retriever.invoke(state[\"question\"], config)\n",
" return {\"context\": retrieved_docs}\n",
"\n",
"\n",
Expand Down

0 comments on commit 8fad921

Please sign in to comment.