AlaFalaki commited on
Commit
a092539
β€’
1 Parent(s): 78b53f2

Created using Colaboratory

Browse files
Files changed (1) hide show
  1. notebooks/10-Adding_Reranking.ipynb +21 -3
notebooks/10-Adding_Reranking.ipynb CHANGED
@@ -4,7 +4,7 @@
4
  "metadata": {
5
  "colab": {
6
  "provenance": [],
7
- "authorship_tag": "ABX9TyPaTngDRH7QvNA12q2tWsuc",
8
  "include_colab_link": true
9
  },
10
  "kernelspec": {
@@ -787,8 +787,8 @@
787
  "import os\n",
788
  "\n",
789
  "# Set the \"OPENAI_API_KEY\" in the Python environment. Will be used by OpenAI client later.\n",
790
- "os.environ[\"OPENAI_API_KEY\"] = \"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\"\n",
791
- "os.environ[\"COHERE_API_KEY\"] = \"58jTN5t85VlCwmg8R9wYHnqRhZCrPK5ZRGFWskDi\""
792
  ],
793
  "metadata": {
794
  "id": "riuXwpSPcvWC"
@@ -1500,6 +1500,24 @@
1500
  ]
1501
  }
1502
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1503
  }
1504
  ]
1505
  }
 
4
  "metadata": {
5
  "colab": {
6
  "provenance": [],
7
+ "authorship_tag": "ABX9TyOVGFOEWH7ahVCWcb5evYf6",
8
  "include_colab_link": true
9
  },
10
  "kernelspec": {
 
787
  "import os\n",
788
  "\n",
789
  "# Set the \"OPENAI_API_KEY\" in the Python environment. Will be used by OpenAI client later.\n",
790
+ "os.environ[\"OPENAI_API_KEY\"] = \"<YOUR_OPENAI_KEY>\"\n",
791
+ "os.environ[\"COHERE_API_KEY\"] = \"<YOUR_COHERE_KEY>\""
792
  ],
793
  "metadata": {
794
  "id": "riuXwpSPcvWC"
 
1500
  ]
1501
  }
1502
  ]
1503
+ },
1504
+ {
1505
+ "cell_type": "markdown",
1506
+ "source": [
1507
+ "It's important to keep in mind that all the results above are based on only two samples even when the retriever fetch 10 items from the vector store. So, it means that instead of passing 10 chunks of data which translates into more API usage and higher cost, we will get the same quality by passing 2 chunk of data."
1508
+ ],
1509
+ "metadata": {
1510
+ "id": "ikMYkBATFY3l"
1511
+ }
1512
+ },
1513
+ {
1514
+ "cell_type": "code",
1515
+ "source": [],
1516
+ "metadata": {
1517
+ "id": "-DMSFJI8F6jl"
1518
+ },
1519
+ "execution_count": null,
1520
+ "outputs": []
1521
  }
1522
  ]
1523
  }