Spaces:
Sleeping
Sleeping
Created using Colaboratory
Browse files
notebooks/10-Adding_Reranking.ipynb
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
"metadata": {
|
5 |
"colab": {
|
6 |
"provenance": [],
|
7 |
-
"authorship_tag": "
|
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\"] = \"
|
791 |
-
"os.environ[\"COHERE_API_KEY\"] = \"
|
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 |
}
|