technophyle commited on
Commit
89769f4
·
verified ·
1 Parent(s): 24f9940

Sync from GitHub via hub-sync

Browse files
Files changed (1) hide show
  1. evals/sample_eval_set.json +8 -5
evals/sample_eval_set.json CHANGED
@@ -60,7 +60,6 @@
60
  ],
61
  "must_include_any": [
62
  "Relationship",
63
- "relationship",
64
  "SQLAlchemy",
65
  "metadata"
66
  ],
@@ -93,7 +92,6 @@
93
  "must_include_any": [
94
  "Relationship",
95
  "back_populates",
96
- "relationship",
97
  "metadata"
98
  ],
99
  "min_keyword_matches": 2
@@ -625,6 +623,7 @@
625
  "sqlmodel/__init__.py",
626
  "sqlmodel/sql/expression.py",
627
  "sqlmodel/sql/_expression_select_gen.py",
 
628
  "docs/tutorial/select.md",
629
  "README.md"
630
  ],
@@ -674,7 +673,7 @@
674
  "id": "sqlmodel-sa-column-conflict-error",
675
  "category": "error-handling",
676
  "question": "What happens if you pass both sa_column and other Field options like primary_key or index in SQLModel?",
677
- "ground_truth": "SQLModel raises a ValueError when sa_column is combined with other field-level options like primary_key, index, or foreign_key because sa_column is meant to be a fully self-contained SQLAlchemy column definition and mixing it with SQLModel field shortcuts creates an ambiguous configuration.",
678
  "expected_sources": [
679
  "sqlmodel/main.py"
680
  ],
@@ -693,7 +692,8 @@
693
  "ground_truth": "A correct answer defines a class inheriting from SQLModel with table=True, uses Field(primary_key=True) on an integer id, declares name as a required str, and declares email as Optional[str] with a default of None.",
694
  "expected_sources": [
695
  "sqlmodel/main.py",
696
- "README.md"
 
697
  ],
698
  "must_include_any": [
699
  "SQLModel",
@@ -712,7 +712,10 @@
712
  "expected_sources": [
713
  "README.md",
714
  "sqlmodel/__init__.py",
715
- "sqlmodel/orm/session.py"
 
 
 
716
  ],
717
  "must_include_any": [
718
  "create_engine",
 
60
  ],
61
  "must_include_any": [
62
  "Relationship",
 
63
  "SQLAlchemy",
64
  "metadata"
65
  ],
 
92
  "must_include_any": [
93
  "Relationship",
94
  "back_populates",
 
95
  "metadata"
96
  ],
97
  "min_keyword_matches": 2
 
623
  "sqlmodel/__init__.py",
624
  "sqlmodel/sql/expression.py",
625
  "sqlmodel/sql/_expression_select_gen.py",
626
+ "sqlmodel/sql/_expression_select_cls.py",
627
  "docs/tutorial/select.md",
628
  "README.md"
629
  ],
 
673
  "id": "sqlmodel-sa-column-conflict-error",
674
  "category": "error-handling",
675
  "question": "What happens if you pass both sa_column and other Field options like primary_key or index in SQLModel?",
676
+ "ground_truth": "SQLModel raises a RuntimeError when sa_column is combined with other field-level options like primary_key, index, or foreign_key because sa_column is meant to be a fully self-contained SQLAlchemy column definition and mixing it with SQLModel field shortcuts creates an ambiguous configuration.",
677
  "expected_sources": [
678
  "sqlmodel/main.py"
679
  ],
 
692
  "ground_truth": "A correct answer defines a class inheriting from SQLModel with table=True, uses Field(primary_key=True) on an integer id, declares name as a required str, and declares email as Optional[str] with a default of None.",
693
  "expected_sources": [
694
  "sqlmodel/main.py",
695
+ "README.md",
696
+ "docs_src"
697
  ],
698
  "must_include_any": [
699
  "SQLModel",
 
712
  "expected_sources": [
713
  "README.md",
714
  "sqlmodel/__init__.py",
715
+ "sqlmodel/orm/session.py",
716
+ "docs/tutorial/create-db-and-table.md",
717
+ "docs/tutorial/insert.md",
718
+ "docs/tutorial/select.md"
719
  ],
720
  "must_include_any": [
721
  "create_engine",