AlaFalaki commited on
Commit
b7919d3
Β·
1 Parent(s): 4a073d6

Created using Colaboratory

Browse files
notebooks/09-Better_Embedding_Model.ipynb CHANGED
@@ -4,7 +4,7 @@
4
  "metadata": {
5
  "colab": {
6
  "provenance": [],
7
- "authorship_tag": "ABX9TyPOc0CzdBgKoadyg4eV8JWo",
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[\"CO_API_KEY\"] = \"844npZDOg4G9mRqCiIBeJZCrvMuXHdS4lTBYrqoY\""
792
  ],
793
  "metadata": {
794
  "id": "riuXwpSPcvWC"
@@ -1274,7 +1274,7 @@
1274
  {
1275
  "cell_type": "code",
1276
  "source": [
1277
- "# Create your index\n",
1278
  "db = chromadb.PersistentClient(path=\"./mini-llama-articles\")\n",
1279
  "chroma_collection = db.get_or_create_collection(\"mini-llama-articles\")\n",
1280
  "vector_store = ChromaVectorStore(chroma_collection=chroma_collection)"
 
4
  "metadata": {
5
  "colab": {
6
  "provenance": [],
7
+ "authorship_tag": "ABX9TyMx3DkzJEgLiO/6oTdKzS6v",
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"
 
1274
  {
1275
  "cell_type": "code",
1276
  "source": [
1277
+ "# Load the vector store from the local storage.\n",
1278
  "db = chromadb.PersistentClient(path=\"./mini-llama-articles\")\n",
1279
  "chroma_collection = db.get_or_create_collection(\"mini-llama-articles\")\n",
1280
  "vector_store = ChromaVectorStore(chroma_collection=chroma_collection)"