Shivam Agarwal commited on
Commit
5a9500d
1 Parent(s): cc27622

removed secrets

Browse files
task5_model_evaluation/Can_policy_ensemble_query_with_evaluation (1).ipynb CHANGED
@@ -132,7 +132,7 @@
132
  "\n",
133
  "## Note: Please replace API keys with your own API keys here.\n",
134
  "\n",
135
- "Settings.llm = Groq(model=\"llama-3.1-8b-instant\", api_key=\"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\")\n",
136
  "Settings.chunk_size = 1024\n",
137
  "embed_model = HuggingFaceEmbedding(model_name=\"thenlper/gte-large\")\n",
138
  "Settings.embed_model = embed_model\n",
@@ -459,7 +459,7 @@
459
  "import nest_asyncio\n",
460
  "nest_asyncio.apply()\n",
461
  "# create llm\n",
462
- "os.environ[\"GOOGLE_API_KEY\"] = \"AIzaSyC_UnbyMmhvklBRyjLvdEWXuhXim_BX0fk\"\n",
463
  "Settings.llm = Gemini(model=\"models/gemini-pro\", temperature=0)\n",
464
  "def question_dataset_generator(document):\n",
465
  " dataset_generator = RagDatasetGenerator.from_documents(\n",
@@ -533,7 +533,7 @@
533
  "import os\n",
534
  "from llama_index.llms.gemini import Gemini\n",
535
  "\n",
536
- "os.environ[\"GOOGLE_API_KEY\"] = \"AIzaSyClIR8gLfV7DhuF8idI8BG6PuGLdEo2tIM\"\n",
537
  "llm = Gemini(model=\"models/gemini-pro\", temperature=0)\n",
538
  "relevancy_evaluator = RelevancyEvaluator(llm=llm)\n",
539
  "faithfulness_evaluator = FaithfulnessEvaluator(llm=llm)\n",
 
132
  "\n",
133
  "## Note: Please replace API keys with your own API keys here.\n",
134
  "\n",
135
+ "Settings.llm = Groq(model=\"llama-3.1-8b-instant\", api_key=\"your key\")\n",
136
  "Settings.chunk_size = 1024\n",
137
  "embed_model = HuggingFaceEmbedding(model_name=\"thenlper/gte-large\")\n",
138
  "Settings.embed_model = embed_model\n",
 
459
  "import nest_asyncio\n",
460
  "nest_asyncio.apply()\n",
461
  "# create llm\n",
462
+ "os.environ[\"GOOGLE_API_KEY\"] = \"your key\"\n",
463
  "Settings.llm = Gemini(model=\"models/gemini-pro\", temperature=0)\n",
464
  "def question_dataset_generator(document):\n",
465
  " dataset_generator = RagDatasetGenerator.from_documents(\n",
 
533
  "import os\n",
534
  "from llama_index.llms.gemini import Gemini\n",
535
  "\n",
536
+ "os.environ[\"GOOGLE_API_KEY\"] = \"your key\"\n",
537
  "llm = Gemini(model=\"models/gemini-pro\", temperature=0)\n",
538
  "relevancy_evaluator = RelevancyEvaluator(llm=llm)\n",
539
  "faithfulness_evaluator = FaithfulnessEvaluator(llm=llm)\n",
task5_model_evaluation/evaluation.ipynb CHANGED
@@ -45,7 +45,6 @@
45
  "import nest_asyncio\n",
46
  "nest_asyncio.apply()\n",
47
  "# create llm\n",
48
- "os.environ[\"GOOGLE_API_KEY\"] = \"AIzaSyC_UnbyMmhvklBRyjLvdEWXuhXim_BX0fk\"\n",
49
  "llm = Gemini(model=\"models/gemini-pro\", temperature=0)\n",
50
  "\n",
51
  "def question_dataset_generator(document):\n",
 
45
  "import nest_asyncio\n",
46
  "nest_asyncio.apply()\n",
47
  "# create llm\n",
 
48
  "llm = Gemini(model=\"models/gemini-pro\", temperature=0)\n",
49
  "\n",
50
  "def question_dataset_generator(document):\n",