Skip to content

Commit 4f9a1e9

Browse files
authored
feat(oculus): Implement initial end-to-end pipeline for oculus. (#4740)
1 parent d0768c4 commit 4f9a1e9

File tree

113 files changed

+59801
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+59801
-219
lines changed

biome.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
"packages/fdr-lambda-sdk/**",
323323
"fern/apis/fai/openapi.json",
324324
"**/.local-sdk-output/**",
325+
"servers/oculus/**",
325326
"servers/fai/**",
326327
"servers/fai-discord/**",
327328
"servers/fai-lambda/**",

servers/oculus/.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
ANTHROPIC_API_KEY=your-api-key-here
22
OPENAI_API_KEY=your-api-key-here
3-
TURBOPUFFER_API_KEY=your-api-key-here
3+
TURBOPUFFER_API_KEY=your-api-key-here
4+
FERN_TOKEN=your_fern_token

servers/oculus/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Oculus
2+
3+
The `oculus` subrepository is used to generate and run evaluations on Ask Fern. There are three main components:
4+
5+
- `generators` create an evaluation set (can either be programmatic or stochastic).
6+
- `integrations` invoke various forms of the `/chat` endpoint (API, Slack, Discord, etc.).
7+
- `evaluators` run on output responses to measure performance on various metrics.
8+
9+
## Commands
10+
11+
### Generate questions for a suite
12+
13+
oculus generate --suite {suite_name}
14+
15+
### Run full evaluation pipeline (generate answers + evaluate)
16+
17+
oculus run --suite {suite_name} [--run-id {id}] [--model {model}]
18+
19+
### Generate answers only
20+
21+
oculus answer --suite {suite_name} [--run-id {id}] [--model {model}]
22+
23+
### Evaluate existing answers
24+
25+
oculus evaluate --suite {suite_name} --run-id {id} [--judge-model {model}]

servers/oculus/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ select = [
5555
ignore = []
5656

5757
[tool.ruff.lint.isort]
58-
known-first-party = ["fai", "tests", "utils"]
58+
known-first-party = ["oculus"]
5959

6060
[tool.ruff.format]
6161
quote-style = "double"
@@ -71,7 +71,7 @@ force_grid_wrap = 2
7171
line_length = 120
7272
profile = "black"
7373
use_parentheses = true
74-
known_first_party = ["fai", "tests", "utils"]
74+
known_first_party = ["oculus"]
7575
src_paths = ["src"]
7676

7777
[tool.autoflake]

servers/oculus/sources/elevenlabs-openapi.json

Lines changed: 57592 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)