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: python/optimizers/results/optimized_rag.json
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,33 @@
77
77
"document_retriever.vector_db": {
78
78
"k": 5
79
79
},
80
+
"retrieval_judge.rater": {
81
+
"traces": [],
82
+
"train": [],
83
+
"demos": [],
84
+
"signature": {
85
+
"instructions": "Compare a system's retrieval response to the query and rate how much it can be leveraged to answer the query. When asked to reason, enumerate key ideas in each response, and whether they are present in the expected output. A document is considered useful if it is directly relevant to the query, or if it is informative and can be useful for context. For example, if the query is about creating or fixing a smart contract, then, an example of a smart contract, even if not _directly_ related, is considered useful. If the query is about a specific Cairo language feature, then a document about that feature is considered useful. Contract and test templates are always considered useful.",
86
+
"fields": [
87
+
{
88
+
"prefix": "Query:",
89
+
"description": "User's specific Cairo programming question or request for code generation"
90
+
},
91
+
{
92
+
"prefix": "System Resource:",
93
+
"description": "Single resource text (content + minimal metadata/title)"
94
+
},
95
+
{
96
+
"prefix": "Reasoning:",
97
+
"description": "A short sentence, on why a selected resource will be useful. If it's not selected, reason about why it's not going to be useful. Start by Resource <resource_title>..."
98
+
},
99
+
{
100
+
"prefix": "Resource Note",
101
+
"description": "A note between 0 and 1.0 on how useful the resource is to directly answer the query. 0 being completely unrelated, 1.0 being very relevant, 0.5 being 'not directly relatd but still informative and can be useful for context."
0 commit comments