Skip to content

Commit

Permalink
Updated Document Index Notebook to use MultipleChunkRetrieverQa inste…
Browse files Browse the repository at this point in the history
…ad of RetrieverBasedQa (#835)

* Updated document_index notebook to use MultipleChunkRetrieverQa

---------

Co-authored-by: Ben Beinke <[email protected]>
  • Loading branch information
HelmholtzW and Ben Beinke authored May 15, 2024
1 parent b50a4cd commit 0d25e19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/documentation/document_index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
" LimitedConcurrencyClient,\n",
")\n",
"from intelligence_layer.core import InMemoryTracer\n",
"from intelligence_layer.examples import RetrieverBasedQa, RetrieverBasedQaInput\n",
"from intelligence_layer.examples import MultipleChunkRetrieverQa, RetrieverBasedQaInput\n",
"\n",
"load_dotenv()"
]
Expand Down Expand Up @@ -266,7 +266,7 @@
"\n",
"Finally, since we have a ready-to use 'Retriever', we can employ it to do something more complicated than just search; it can serve as the basis for a question-answering system.\n",
"\n",
"To do so, let's run a `RetrieverBasedQa` task:"
"To do so, let's run a `MultipleChunkRetrieverQa` task:"
]
},
{
Expand All @@ -276,7 +276,7 @@
"outputs": [],
"source": [
"client = LimitedConcurrencyClient.from_env()\n",
"retriever_qa = RetrieverBasedQa(document_index_retriever)\n",
"retriever_qa = MultipleChunkRetrieverQa(document_index_retriever, insert_chunk_number=3)\n",
"\n",
"\n",
"input = RetrieverBasedQaInput(\n",
Expand Down

0 comments on commit 0d25e19

Please sign in to comment.