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: .cursor/rules/project-architecture.mdc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,5 +16,5 @@ alwaysApply: true
16
16
4. **Evaluator contract**: Every evaluator `eval()` method must return `EvalDetail` with `metric`, `status` (bool), `label` (list), and `reason` (list).
17
17
5. **Dependencies**: Core deps in `requirements/runtime.txt`, optional in `requirements/datasource.txt`. New optional deps → add to `setup.py` extras_require.
18
18
6. **MCP Server**: Entry point is `mcp_server.py`, uses FastMCP + SSE. Environment variables for LLM config (`OPENAI_API_KEY`, etc.).
19
-
7. **Three interfaces**: SDK (Python API), CLI (`python -m dingo.run.cli`), MCP Server. All share the same `InputArgs` → `Executor` pipeline.
19
+
7. **Three interfaces**: SDK (Python API), CLI (`dingo eval`), MCP Server. All share the same `InputArgs` → `Executor` pipeline.
20
20
8. **Testing**: `pytest test/scripts --ignore=test/scripts/data`. Integration tests via CLI with configs in `.github/env/`.
***Always write a config file** before running CLI evaluation. Don't try to pass complex JSON inline.
296
-
***Quote file paths** with spaces in commands: `python -m dingo.run.cli --input "my config.json"`
296
+
***Quote file paths** with spaces in commands: `dingo eval --input "my config.json"`
297
297
***Wrap main code in `if __name__ == '__main__':`** when writing Python scripts — Dingo uses multiprocessing internally, which fails on macOS without this guard.
298
298
***Infer format from extension**: `.jsonl` → `jsonl`, `.json` → `json`, `.csv` → `csv`, `.txt` → `plaintext`.
299
299
***Default to rule-based** when the user doesn't specify evaluation type — it's free, fast, and needs no API key.
0 commit comments