You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition, you can configure Opik using the `opik configure` command which will prompt you for the correct local server address or if you are using the Cloud platfrom your API key:
@@ -80,6 +80,19 @@ with open('./data/paul_graham/paul_graham_essay.txt', 'wb') as f:
80
80
```
81
81
82
82
**Third step:**
83
+
84
+
Configure the OpenAI API key:
85
+
86
+
```python
87
+
import os
88
+
import getpass
89
+
90
+
if"OPENAI_API_KEY"notin os.environ:
91
+
os.environ["OPENAI_API_KEY"] = getpass.getpass("Enter your OpenAI API key: ")
92
+
```
93
+
94
+
**Fourth step:**
95
+
83
96
We can now load the data, create an index and query engine:
0 commit comments