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
Sets custom entity and edge types for your graph. This wrapper method
1224
-
provides a clean interface for defining your graph schema with custom
1225
-
entity and edge types.
1226
-
1227
-
See the [full documentation](/customizing-graph-structure#setting-entity-and-edge-types) for details.
1228
-
</dd>
1229
-
</dl>
1230
-
</dd>
1231
-
</dl>
1232
-
1233
-
#### 🔌 Usage
1234
-
1235
-
<dl>
1236
-
<dd>
1237
-
1238
-
<dl>
1239
-
<dd>
1240
-
1241
-
```python
1242
-
from zep_cloud import Zep
1243
-
1244
-
client = Zep(
1245
-
api_key="YOUR_API_KEY",
1246
-
)
1247
-
client.graph.set_ontology()
1248
-
1249
-
```
1250
-
</dd>
1251
-
</dl>
1252
-
</dd>
1253
-
</dl>
1254
-
1255
-
#### ⚙️ Parameters
1256
-
1257
-
<dl>
1258
-
<dd>
1259
-
1260
-
<dl>
1261
-
<dd>
1262
-
1263
-
**entities:**`typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` — Dictionary mapping entity type names to their definitions
1264
-
1265
-
</dd>
1266
-
</dl>
1267
-
1268
-
<dl>
1269
-
<dd>
1270
-
1271
-
**edges:**`typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]` — Dictionary mapping edge type names to their definitions with source/target constraints
1272
-
1273
-
</dd>
1274
-
</dl>
1275
-
1276
-
<dl>
1277
-
<dd>
1278
-
1279
-
**user_ids:**`typing.Optional[typing.Sequence[str]]` — Optional list of user IDs to apply ontology to
1280
-
1281
-
</dd>
1282
-
</dl>
1283
-
1284
-
<dl>
1285
-
<dd>
1286
-
1287
-
**graph_ids:**`typing.Optional[typing.Sequence[str]]` — Optional list of graph IDs to apply ontology to
0 commit comments