Skip to content

Commit

Permalink
Updated docs for the BM25 preprocessing function and reformatted for …
Browse files Browse the repository at this point in the history
…the lint checks
  • Loading branch information
kiril-buga committed Nov 14, 2024
1 parent 47ea9dd commit cbfffb9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/docs/integrations/retrievers/bm25.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
"cell_type": "code",
"source": [
"import nltk\n",
"nltk.download('punkt_tab')"
"nltk.download(\"punkt_tab\")"
],
"id": "c8b25a524d11f7ab",
"outputs": [
Expand Down Expand Up @@ -229,7 +229,10 @@
" Document(page_content=\"world\"),\n",
" Document(page_content=\"hello\"),\n",
" Document(page_content=\"foo bar\"),\n",
" ], k=2, preprocess_func=word_tokenize)\n",
" ], \n",
" k=2, \n",
" preprocess_func=word_tokenize,\n",
")\n",
"\n",
"result = retriever.invoke(\"bar\")\n",
"result"
Expand Down

0 comments on commit cbfffb9

Please sign in to comment.