Skip to content

Commit b5e52cf

Browse files
committed
removed old api_tokens
1 parent 6022423 commit b5e52cf

File tree

5 files changed

+15
-41
lines changed

5 files changed

+15
-41
lines changed

nbs/backends/ragas_api_client.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"metadata": {},
2525
"outputs": [],
2626
"source": [
27-
"RAGAS_APP_TOKEN = \"apt.47bd-c55e4a45b27c-02f8-8446-1441f09b-651a8\"\n",
27+
"RAGAS_APP_TOKEN = \"api_key\"\n",
2828
"RAGAS_API_ENDPOINT = \"https://api.dev.app.ragas.io\""
2929
]
3030
},

nbs/dataset.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
"metadata": {},
247247
"outputs": [],
248248
"source": [
249-
"RAGAS_APP_TOKEN = \"apt.47bd-c55e4a45b27c-02f8-8446-1441f09b-651a8\"\n",
249+
"RAGAS_APP_TOKEN = \"api_key\"\n",
250250
"RAGAS_API_BASE_URL = \"https://api.dev.app.ragas.io\"\n",
251251
"\n",
252252
"os.environ[\"RAGAS_APP_TOKEN\"] = RAGAS_APP_TOKEN\n",

nbs/project/core.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"metadata": {},
117117
"outputs": [],
118118
"source": [
119-
"RAGAS_APP_TOKEN = \"apt.47bd-c55e4a45b27c-02f8-8446-1441f09b-651a8\"\n",
119+
"RAGAS_APP_TOKEN = \"api-key\"\n",
120120
"RAGAS_API_BASE_URL = \"https://api.dev.app.ragas.io\"\n",
121121
"\n",
122122
"os.environ[\"RAGAS_APP_TOKEN\"] = RAGAS_APP_TOKEN\n",

nbs/project/experiments.ipynb

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
}
145145
],
146146
"source": [
147-
"RAGAS_APP_TOKEN = \"apt.4e81-99ed3e6efdfe-bb9c-88e3-f88438f5-5dfef\"\n",
147+
"RAGAS_APP_TOKEN = \"api-key\"\n",
148148
"RAGAS_API_BASE_URL = \"https://api.dev.app.ragas.io\"\n",
149149
"\n",
150150
"os.environ[\"RAGAS_APP_TOKEN\"] = RAGAS_APP_TOKEN\n",
@@ -458,32 +458,6 @@
458458
" return commit_hash"
459459
]
460460
},
461-
{
462-
"cell_type": "code",
463-
"execution_count": null,
464-
"metadata": {},
465-
"outputs": [
466-
{
467-
"name": "stdout",
468-
"output_type": "stream",
469-
"text": [
470-
"\u001b[31mSignature:\u001b[39m\n",
471-
"show_doc(\n",
472-
" sym,\n",
473-
" renderer=\u001b[38;5;28;01mNone\u001b[39;00m,\n",
474-
" name: \u001b[33m'str | None'\u001b[39m = \u001b[38;5;28;01mNone\u001b[39;00m,\n",
475-
" title_level: \u001b[33m'int'\u001b[39m = \u001b[32m3\u001b[39m,\n",
476-
")\n",
477-
"\u001b[31mDocstring:\u001b[39m Show signature and docstring for `sym`\n",
478-
"\u001b[31mFile:\u001b[39m ~/workspace/eglabs/ragas_annotator/.venv/lib/python3.12/site-packages/nbdev/showdoc.py\n",
479-
"\u001b[31mType:\u001b[39m function"
480-
]
481-
}
482-
],
483-
"source": [
484-
"show_doc?"
485-
]
486-
},
487461
{
488462
"cell_type": "code",
489463
"execution_count": null,
@@ -642,7 +616,7 @@
642616
"# | export\n",
643617
"@patch\n",
644618
"def experiment(\n",
645-
" self: Project, experiment_model, name_prefix: str = \"\", save_to_git: bool = True, stage_all: bool = False\n",
619+
" self: Project, experiment_model, name_prefix: str = \"\", save_to_git: bool = True, stage_all: bool = True\n",
646620
"):\n",
647621
" \"\"\"Decorator for creating experiment functions without Langfuse integration.\n",
648622
"\n",

ragas_experimental/project/experiments.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def version_experiment(
202202

203203
return commit_hash
204204

205-
# %% ../../nbs/project/experiments.ipynb 22
205+
# %% ../../nbs/project/experiments.ipynb 21
206206
def cleanup_experiment_branches(
207207
prefix: str = "ragas/",
208208
repo_path: t.Union[str, Path, None] = None,
@@ -281,26 +281,26 @@ def cleanup_experiment_branches(
281281

282282
return deleted_branches
283283

284-
# %% ../../nbs/project/experiments.ipynb 25
284+
# %% ../../nbs/project/experiments.ipynb 24
285285
@t.runtime_checkable
286286
class ExperimentProtocol(t.Protocol):
287287
async def __call__(self, *args, **kwargs): ...
288288
async def run_async(self, name: str, dataset: Dataset): ...
289289

290-
# %% ../../nbs/project/experiments.ipynb 26
290+
# %% ../../nbs/project/experiments.ipynb 25
291291
from .naming import MemorableNames
292292

293-
# %% ../../nbs/project/experiments.ipynb 27
293+
# %% ../../nbs/project/experiments.ipynb 26
294294
memorable_names = MemorableNames()
295295

296-
# %% ../../nbs/project/experiments.ipynb 28
296+
# %% ../../nbs/project/experiments.ipynb 27
297297
@patch
298298
def experiment(
299299
self: Project,
300300
experiment_model,
301301
name_prefix: str = "",
302302
save_to_git: bool = True,
303-
stage_all: bool = False,
303+
stage_all: bool = True,
304304
):
305305
"""Decorator for creating experiment functions without Langfuse integration.
306306
@@ -400,11 +400,11 @@ async def run_async(
400400

401401
return decorator
402402

403-
# %% ../../nbs/project/experiments.ipynb 32
403+
# %% ../../nbs/project/experiments.ipynb 31
404404
# this one we have to clean up
405405
from langfuse.decorators import observe
406406

407-
# %% ../../nbs/project/experiments.ipynb 33
407+
# %% ../../nbs/project/experiments.ipynb 32
408408
@patch
409409
def langfuse_experiment(self: Project, experiment_model, name_prefix: str = ""):
410410
"""Decorator for creating experiment functions with Langfuse integration.
@@ -436,7 +436,7 @@ async def langfuse_wrapped_func(*args, **kwargs):
436436

437437
return decorator
438438

439-
# %% ../../nbs/project/experiments.ipynb 40
439+
# %% ../../nbs/project/experiments.ipynb 39
440440
from mlflow import trace
441441

442442

@@ -481,7 +481,7 @@ async def run_async_with_mlflow(dataset: Dataset, name: t.Optional[str] = None):
481481

482482
return decorator
483483

484-
# %% ../../nbs/project/experiments.ipynb 41
484+
# %% ../../nbs/project/experiments.ipynb 40
485485
import logging
486486
from ..utils import plot_experiments_as_subplots
487487

0 commit comments

Comments
 (0)