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
Copy file name to clipboardExpand all lines: README.md
+25-20Lines changed: 25 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,31 +42,34 @@ After installation, the following commands are available (prefix with `uv run` i
42
42
43
43
### Configuring ORION
44
44
45
-
ORION uses three directories for its data, configured via environment variables:
45
+
ORION is configured via environment variables, which can be set directly or through an `.env` file.
46
46
47
-
| Variable | Purpose |
48
-
|---|--------------------------------------|
49
-
|`ORION_STORAGE`| Data ingest pipeline storage |
50
-
|`ORION_GRAPHS`| Knowledge graph outputs |
51
-
|`ORION_LOGS`| Log files |
52
-
53
-
You can set these up manually or use the provided script:
47
+
In most cases, you can simply use this provided script to set up a local environment. It will create directories for ORION outputs next to where ORION was installed and set env vars pointing to them.
54
48
55
49
```bash
56
-
source ./set_up_test_env.sh
50
+
source ./set_up_dev_env.sh
57
51
```
58
52
59
-
#### Graph Spec
53
+
For more customization and settings, use an .env file. Copy or rename the `.env.example` file to `.env`.
60
54
61
-
A Graph Spec yaml file defines which sources to include in a knowledge graph. Set one of the following environment variables (not both):
55
+
Then uncommment and edit `.env` as desired to set values for your environment.
62
56
63
-
```bash
64
-
# Option 1: Name of a file in the graph_specs/ directory
Configuration is managed by [pydantic-settings](https://docs.pydantic.dev/latest/concepts/pydantic_settings/) — environment variables override `.env` file values, and sensible defaults are provided where possible. See `orion/config.py` for the full list of settings.
66
+
67
+
#### Graph Spec
68
+
69
+
A Graph Spec yaml file defines which sources to include in a knowledge graph. Set one of the following (not both):
70
+
71
+
-`ORION_GRAPH_SPEC` - name of a file in the `graph_specs/` directory
72
+
-`ORION_GRAPH_SPEC_URL` - URL pointing to a Graph Spec yaml file
70
73
71
74
Here is a simple Graph Spec example:
72
75
@@ -100,6 +103,8 @@ See the `graph_specs/` directory for more examples.
100
103
101
104
### Running with Docker
102
105
106
+
Make sure environment variables are set or an `.env` file is configured with at least `ORION_STORAGE`, and `ORION_GRAPHS` pointing to valid host directories. The compose file reads these env vars and mounts those directories as volumes in the container.
107
+
103
108
Build the image:
104
109
105
110
```bash
@@ -115,19 +120,19 @@ docker compose up
115
120
Build a specific graph:
116
121
117
122
```bash
118
-
docker compose run --rm orion orion-build Example_Graph
123
+
docker compose run orion orion-build Example_Graph
119
124
```
120
125
121
126
Run the ingest pipeline for a single data source:
122
127
123
128
```bash
124
-
docker compose run --rm orion orion-ingest DrugCentral
0 commit comments