Skip to content

Commit d49fb64

Browse files
committed
basics of index
1 parent b5e52cf commit d49fb64

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

nbs/index.ipynb

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,57 @@
5757
"cell_type": "markdown",
5858
"metadata": {},
5959
"source": [
60-
"First lets init a `Project` from notion."
60+
"First do signup to [beta.app.ragas.io](https://beta.app.ragas.io/) and generate the App Token and put it in the as the env variable `RAGAS_APP_TOKEN`. "
61+
]
62+
},
63+
{
64+
"cell_type": "code",
65+
"execution_count": 1,
66+
"metadata": {},
67+
"outputs": [],
68+
"source": [
69+
"import os\n",
70+
"# ideally you load this from a .env file so as to not commit it to the repo\n",
71+
"os.environ[\"RAGAS_APP_TOKEN\"] = \"api-key\""
72+
]
73+
},
74+
{
75+
"cell_type": "markdown",
76+
"metadata": {},
77+
"source": [
78+
"Now lets init a `Project` in the App"
79+
]
80+
},
81+
{
82+
"cell_type": "code",
83+
"execution_count": null,
84+
"metadata": {},
85+
"outputs": [],
86+
"source": [
87+
"from ragas_experimental import Project\n",
88+
"\n",
89+
"project = Project.create(\"my-project\")\n",
90+
"project"
6191
]
6292
}
6393
],
6494
"metadata": {
6595
"kernelspec": {
66-
"display_name": "python3",
96+
"display_name": ".venv",
6797
"language": "python",
6898
"name": "python3"
99+
},
100+
"language_info": {
101+
"codemirror_mode": {
102+
"name": "ipython",
103+
"version": 3
104+
},
105+
"file_extension": ".py",
106+
"mimetype": "text/x-python",
107+
"name": "python",
108+
"nbconvert_exporter": "python",
109+
"pygments_lexer": "ipython3",
110+
"version": "3.12.8"
69111
}
70112
},
71113
"nbformat": 4,

0 commit comments

Comments
 (0)