Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
3020e31
Merge pull request #122 from rootcodelabs/wip
nuwangeek Feb 20, 2026
6e5c22c
remove unwanted file
nuwangeek Feb 20, 2026
38d0533
updated changes
nuwangeek Feb 20, 2026
72b8ae1
fixed requested changes
nuwangeek Feb 20, 2026
9b7bc7b
fixed issue
nuwangeek Feb 20, 2026
46dd6c4
Merge pull request #123 from rootcodelabs/llm-316
nuwangeek Feb 21, 2026
068f4e0
Merge pull request #124 from buerokratt/wip
Thirunayan22 Feb 21, 2026
a2084e5
service workflow implementation without calling service endpoints
nuwangeek Feb 24, 2026
5216c09
Merge pull request #126 from rootcodelabs/wip
nuwangeek Feb 24, 2026
864ad30
fixed requested changes
nuwangeek Feb 24, 2026
25f9614
fixed issues
nuwangeek Feb 24, 2026
69c1279
protocol related requested changes
nuwangeek Feb 24, 2026
07f2e0f
fixed requested changes
nuwangeek Feb 24, 2026
f63f777
update time tracking
nuwangeek Feb 25, 2026
5429bc0
added time tracking and reloacate input guardrail before toolclassifiier
nuwangeek Feb 25, 2026
721263a
fixed issue
nuwangeek Feb 25, 2026
6ed02d1
Merge pull request #127 from buerokratt/wip
nuwangeek Feb 25, 2026
7238baa
Merge branch 'optimization/llm-304' into wip
nuwangeek Feb 25, 2026
ae7cfa0
Merge pull request #128 from rootcodelabs/wip
nuwangeek Feb 25, 2026
f8a82b6
fixed issue
nuwangeek Feb 25, 2026
3b89fba
added hybrid search for the service detection
nuwangeek Feb 26, 2026
789f062
update tool classifier
nuwangeek Mar 1, 2026
609e6d5
fixing merge conflicts
nuwangeek Mar 1, 2026
a30c52d
Merge pull request #129 from buerokratt/wip
nuwangeek Mar 1, 2026
8dfc155
Merge pull request #130 from rootcodelabs/wip
nuwangeek Mar 1, 2026
3d7fb85
updated intent data enrichment and service classification flow perfor…
nuwangeek Mar 2, 2026
bee9fbf
fixed issue
nuwangeek Mar 2, 2026
4888045
Merge pull request #131 from rootcodelabs/optimization/data-enrichment
nuwangeek Mar 3, 2026
0a0806f
optimize first user query response generation time
nuwangeek Mar 3, 2026
1eb8b47
fixed pr reviewed issues
nuwangeek Mar 3, 2026
94b4f39
Merge pull request #132 from buerokratt/wip
nuwangeek Mar 3, 2026
82b3fe5
Merge branch 'optimization/vector-indexer' into wip
nuwangeek Mar 3, 2026
1b4ada9
Merge pull request #134 from buerokratt/wip
nuwangeek Mar 3, 2026
bb1601f
service integration
nuwangeek Mar 8, 2026
9ce1da2
context based response generation flow
nuwangeek Mar 9, 2026
d647f86
fixed pr review suggested issues
nuwangeek Mar 9, 2026
d67214e
Merge pull request #135 from rootcodelabs/llm-309
nuwangeek Mar 9, 2026
b90ab52
Merge pull request #136 from rootcodelabs/llm-310
nuwangeek Mar 9, 2026
6c46d3c
removed service project layer
nuwangeek Mar 10, 2026
d3e1494
fixed issues
nuwangeek Mar 12, 2026
4add446
Merge pull request #137 from rootcodelabs/llm-310
nuwangeek Mar 12, 2026
c2ef115
delete unnessary files
nuwangeek Mar 13, 2026
97f6f1a
added requested changes
nuwangeek Mar 13, 2026
0be284e
Merge pull request #138 from buerokratt/wip
nuwangeek Mar 17, 2026
a32ca6d
Merge branch 'llm/service-integration' into wip
nuwangeek Mar 17, 2026
4276e7d
Merge pull request #140 from buerokratt/wip
nuwangeek Mar 18, 2026
24259a9
Merge pull request #141 from buerokratt/wip
nuwangeek Mar 20, 2026
1a54c5d
Merge pull request #143 from buerokratt/wip
nuwangeek Mar 23, 2026
95dc35a
Merge pull request #145 from buerokratt/wip
nuwangeek Mar 26, 2026
e047f41
Merge pull request #150 from buerokratt/wip
nuwangeek Apr 7, 2026
0486fa4
fix issue in prompt config toggle
nuwangeek Apr 7, 2026
9e9bd77
Merge pull request #151 from buerokratt/wip
nuwangeek Apr 8, 2026
2bf97f8
Merge branch 'llm-382' into wip
nuwangeek Apr 8, 2026
2f53999
Merge pull request #153 from buerokratt/wip
nuwangeek Apr 8, 2026
876889d
Intergartion of CKB import API for agency data sync
ruwinirathnamalala Apr 10, 2026
b710853
Intergartion of CKB import API for agency data sync
ruwinirathnamalala Apr 10, 2026
e31a0af
Merge pull request #154 from buerokratt/wip
nuwangeek Apr 16, 2026
f6a4300
Merge pull request #156 from buerokratt/wip
nuwangeek Apr 16, 2026
2806221
Merge branch 'wip' of https://github.com/rootcodelabs/LLM-Module into…
ruwinirathnamalala Apr 17, 2026
1fc3b9c
standalone agentic loop module
nuwangeek Apr 17, 2026
622c969
fixed requested changes
nuwangeek Apr 17, 2026
cf9723e
fixed ruff format issues
nuwangeek Apr 17, 2026
d159731
Merge pull request #157 from rootcodelabs/llm-394
nuwangeek Apr 22, 2026
83c7500
complete API semantic searcher with ambiguous result handling and too…
nuwangeek Apr 22, 2026
21c3c27
Merge pull request #158 from rootcodelabs/llm-394
nuwangeek Apr 22, 2026
591b119
Merge pull request #159 from rootcodelabs/llm-345-dev
nuwangeek Apr 22, 2026
c5582f8
complete semantic searcher evaluation and update to multi point index…
nuwangeek Apr 22, 2026
f569070
Merge pull request #160 from rootcodelabs/llm-403
nuwangeek Apr 22, 2026
80bfce7
competed integration of agentic loop with semantic searcher and strea…
nuwangeek Apr 22, 2026
8b984f1
Enhancements in data-sync flow and updated agency_id in agency_sync t…
ruwinirathnamalala Apr 23, 2026
d71a5eb
Merge pull request #161 from rootcodelabs/llm-408
nuwangeek Apr 24, 2026
6efe48b
Implemented the API caller module
nuwangeek Apr 24, 2026
51d8a0e
Completed integration of CKB and RAG changelogs with schema updates f…
nuwangeek Apr 28, 2026
2449472
Merge pull request #164 from buerokratt/wip
nuwangeek May 5, 2026
43e9ad3
Merge branch 'llm-345-dev' into wip
nuwangeek May 5, 2026
0ea073b
Merge pull request #167 from buerokratt/wip
nuwangeek May 6, 2026
c368cfd
Merge pull request #169 from buerokratt/wip
nuwangeek May 6, 2026
bdc878c
Merge pull request #171 from buerokratt/wip
nuwangeek May 6, 2026
a385166
Merge branch 'llm-348' into wip
nuwangeek May 6, 2026
59b604c
Merge pull request #173 from buerokratt/wip
nuwangeek May 6, 2026
49e9e77
Merge pull request #175 from buerokratt/wip
nuwangeek May 6, 2026
8e7ab98
Merge branch 'ckb_integration_for_data_sync' into wip
nuwangeek May 6, 2026
5b3ee08
Merge pull request #177 from buerokratt/wip
nuwangeek May 7, 2026
135ddf0
Merge branch 'llm-412' into wip
nuwangeek May 7, 2026
3671b6c
Merge pull request #179 from buerokratt/wip
nuwangeek May 7, 2026
e8d2d8d
Merge pull request #180 from buerokratt/wip
nuwangeek May 8, 2026
e718cae
Fixed issue in enhance language handling and context specificity in r…
nuwangeek May 8, 2026
71ccdd1
fixed ruff issue
nuwangeek May 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/llm_orchestration_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -2664,7 +2664,7 @@ def _generate_rag_response(
llmServiceActive=False,
questionOutOfLLMScope=False,
inputGuardFailed=False,
content=TECHNICAL_ISSUE_MESSAGE,
content=localized_msg,
)

try:
Expand Down Expand Up @@ -2821,7 +2821,7 @@ def _generate_rag_response(
llmServiceActive=False,
questionOutOfLLMScope=False,
inputGuardFailed=False,
content=TECHNICAL_ISSUE_MESSAGE,
content=localized_msg,
)

# ========================================================================
Expand Down
19 changes: 15 additions & 4 deletions src/optimization/optimized_module_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,17 +344,28 @@ class ResponseGeneratorSignature(dspy.Signature):
"""
Produce a grounded answer from the provided context ONLY.

CRITICAL LANGUAGE RULE:
- The answer MUST be in the SAME language as the input question
- Estonian question → Estonian answer
- Russian question → Russian answer
- English question → English answer
- Maintain the natural language flow and grammar of the detected language

Rules:
- Use ONLY the provided context blocks
- Use ONLY the provided context blocks; do not invent facts
- If context is insufficient, set questionOutOfLLMScope=true
- Do not invent facts
- Do not include citations in the answer field
- Be concise and direct
"""

question: str = dspy.InputField(desc="User's question")
question: str = dspy.InputField(
desc="User's question. Answer in the SAME language as this question."
)
context_blocks: list[str] = dspy.InputField(desc="Relevant context chunks")

answer: str = dspy.OutputField(desc="Grounded answer from context")
answer: str = dspy.OutputField(
desc="Human-friendly answer in THE SAME LANGUAGE as the question, without citations"
)
questionOutOfLLMScope: bool = dspy.OutputField(
desc="True if context is insufficient to answer"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"predict": {
"traces": [],
"train": [],
"demos": [
{
"augmented": true,
"question": "Kui palju raha kulutati peretoetustele 2021. aastal kokku?",
"context_blocks": [
"[Context 1]\n2021. aastal maksti peredele toetusi kokku umbes 653 miljonit eurot. Umbes 310 miljonit eurot peretoetusteks; umbes 280 miljonit eurot vanemahüvitiseks; sünnitoetust umbes 58 miljonit eurot; ülalpidamistoetust umbes 5 miljonit eurot."
],
"reasoning": "Kontekstist selgub, et 2021. aastal maksti peredele toetusi kokku umbes 653 miljonit eurot, mis sisaldab peretoetusi, vanemahüvitist, sünnitoetust ja ülalpidamistoetust.",
"answer": "2021. aastal kulutati peretoetustele kokku umbes 653 miljonit eurot.",
"questionOutOfLLMScope": false
},
{
"augmented": true,
"question": "Kes on töötutoetusele õigustatud?",
"context_blocks": [
"[Context 1]\nTöötutoetus on saadaval inimestele, kes on töötanud ja maksnud sotsiaalmaksu vähemalt 12 kuud viimase 36 kuu jooksul ning on registreeritud töötuna."
],
"reasoning": "Kontekstist selgub, et töötutoetusele on õigus neil, kes on töötanud ja maksnud sotsiaalmaksu vähemalt 12 kuud viimase 36 kuu jooksul ning on registreeritud töötuna.",
"answer": "Töötutoetusele on õigustatud inimesed, kes on viimase 36 kuu jooksul vähemalt 12 kuud töötanud ja maksnud sotsiaalmaksu ning on registreeritud töötuna.",
"questionOutOfLLMScope": false
},
{
"augmented": true,
"question": "Milliseid filme näidatakse kinodes?",
"context_blocks": [
"[Context 1]\n(No relevant context available.)"
],
"reasoning": "Kontekstis puudub teave selle kohta, milliseid filme praegu kinodes näidatakse.",
"answer": "Kahjuks puudub mul teave selle kohta, milliseid filme hetkel kinodes näidatakse.",
"questionOutOfLLMScope": true
},
{
"augmented": true,
"question": "What was the total amount spent on family benefits in 2021?",
"context_blocks": [
"[Context 1]\nIn 2021, a total of approximately 653 million euros in benefits were paid to families. Approximately 310 million euros for family benefits; approximately 280 million euros for parental benefit; Maternity benefit of approx. 58 million euros; Maintenance benefit of about 5 million euros."
],
"reasoning": "The context specifies that in 2021, a total of approximately 653 million euros in benefits were paid to families. This total includes family benefits, parental benefit, maternity benefit, and maintenance benefit. Therefore, the total amount spent on family benefits in 2021 is 653 million euros.",
"answer": "In 2021, a total of approximately 653 million euros was spent on family benefits.",
"questionOutOfLLMScope": false
},
{
"augmented": true,
"question": "How does Estonia support single-parent families?",
"context_blocks": [
"[Context 1]\nSince January 2022, the Ministry of Social Affairs has been looking for solutions to support single-parent families. The support needs of single parents are much wider than just financial support. There is a chronic lack of time, lack of flexible childcare, and high expectation of better access to hobby education."
],
"reasoning": "The context states that since January 2022, the Ministry of Social Affairs in Estonia has been seeking solutions to support single-parent families. It mentions that the needs of single parents go beyond financial support and include issues such as lack of time, insufficient flexible childcare, and a need for better access to hobby education. However, the context does not specify the exact forms of support currently provided, only that these areas are being considered.",
"answer": "Estonia recognizes that single-parent families need support beyond just financial help. Since January 2022, the Ministry of Social Affairs has been seeking solutions to address challenges such as lack of time, insufficient flexible childcare, and the need for better access to hobby education for single parents.",
"questionOutOfLLMScope": false
}
],
"signature": {
"instructions": "Produce a grounded answer from the provided context ONLY.\n\nCRITICAL LANGUAGE RULE:\n- The answer MUST be in the SAME language as the input question\n- Estonian question → Estonian answer\n- Russian question → Russian answer\n- English question → English answer\n- Maintain the natural language flow and grammar of the detected language\n\nRules:\n- Use ONLY the provided context blocks; do not invent facts\n- If context is insufficient, set questionOutOfLLMScope=true\n- Do not include citations in the answer field\n- Be concise and direct",
"fields": [
{
"prefix": "Question:",
"description": "User's question. Answer in the SAME language as this question."
},
{
"prefix": "Context Blocks:",
"description": "Relevant context chunks"
},
{
"prefix": "Reasoning: Let's think step by step in order to",
"description": "${reasoning}"
},
{
"prefix": "Answer:",
"description": "Human-friendly answer in THE SAME LANGUAGE as the question, without citations"
},
{
"prefix": "Question Out Of LLM Scope:",
"description": "True if context is insufficient to answer"
}
]
},
"lm": null
},
"metadata": {
"dependency_versions": {
"python": "3.12",
"dspy": "3.0.3",
"cloudpickle": "3.1"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"component": "generator",
"optimizer": "Bootstrap+MIPROv2",
"metric_type": "GeneratorMetric with DSPy SemanticF1",
"total_time_seconds": 1155.654662,
"phase_times": {
"bootstrap": 31.949774,
"mipro": 1123.703534
},
"trainset_size": 5,
"valset_size": 21,
"num_candidates": 20,
"validation_stats": {
"combined_score": 1.0,
"scope_accuracy": 1.0,
"in_scope_performance": 1.0,
"out_scope_performance": 1.0,
"total_examples": 21,
"in_scope_examples": 16,
"out_scope_examples": 5
},
"timestamp": "2026-04-24T08:26:51.305627"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"predict": {
"traces": [],
"train": [],
"demos": [
{
"augmented": true,
"question": "Kui palju raha kulutati peretoetustele 2021. aastal kokku?",
"context_blocks": [
"[Context 1]\n2021. aastal maksti peredele toetusi kokku umbes 653 miljonit eurot. Umbes 310 miljonit eurot peretoetusteks; umbes 280 miljonit eurot vanemahüvitiseks; sünnitoetust umbes 58 miljonit eurot; ülalpidamistoetust umbes 5 miljonit eurot."
],
"reasoning": "Kontekstist selgub, et 2021. aastal maksti peredele toetusi kokku umbes 653 miljonit eurot, mis sisaldab peretoetusi, vanemahüvitist, sünnitoetust ja ülalpidamistoetust.",
"answer": "2021. aastal kulutati peretoetustele kokku umbes 653 miljonit eurot.",
"questionOutOfLLMScope": false
},
{
"augmented": true,
"question": "Kes on töötutoetusele õigustatud?",
"context_blocks": [
"[Context 1]\nTöötutoetus on saadaval inimestele, kes on töötanud ja maksnud sotsiaalmaksu vähemalt 12 kuud viimase 36 kuu jooksul ning on registreeritud töötuna."
],
"reasoning": "Kontekstist selgub, et töötutoetusele on õigus neil, kes on töötanud ja maksnud sotsiaalmaksu vähemalt 12 kuud viimase 36 kuu jooksul ning on registreeritud töötuna.",
"answer": "Töötutoetusele on õigustatud inimesed, kes on viimase 36 kuu jooksul vähemalt 12 kuud töötanud ja maksnud sotsiaalmaksu ning on registreeritud töötuna.",
"questionOutOfLLMScope": false
},
{
"augmented": true,
"question": "Milliseid filme näidatakse kinodes?",
"context_blocks": [
"[Context 1]\n(No relevant context available.)"
],
"reasoning": "Kontekstis puudub teave selle kohta, milliseid filme praegu kinodes näidatakse.",
"answer": "Kahjuks puudub mul teave selle kohta, milliseid filme hetkel kinodes näidatakse.",
"questionOutOfLLMScope": true
},
{
"augmented": true,
"question": "What was the total amount spent on family benefits in 2021?",
"context_blocks": [
"[Context 1]\nIn 2021, a total of approximately 653 million euros in benefits were paid to families. Approximately 310 million euros for family benefits; approximately 280 million euros for parental benefit; Maternity benefit of approx. 58 million euros; Maintenance benefit of about 5 million euros."
],
"reasoning": "The context specifies that in 2021, a total of approximately 653 million euros in benefits were paid to families. This total includes family benefits, parental benefit, maternity benefit, and maintenance benefit. Therefore, the total amount spent on family benefits in 2021 is 653 million euros.",
"answer": "In 2021, a total of approximately 653 million euros was spent on family benefits.",
"questionOutOfLLMScope": false
},
{
"augmented": true,
"question": "How does Estonia support single-parent families?",
"context_blocks": [
"[Context 1]\nSince January 2022, the Ministry of Social Affairs has been looking for solutions to support single-parent families. The support needs of single parents are much wider than just financial support. There is a chronic lack of time, lack of flexible childcare, and high expectation of better access to hobby education."
],
"reasoning": "The context states that since January 2022, the Ministry of Social Affairs in Estonia has been seeking solutions to support single-parent families. It mentions that the needs of single parents go beyond financial support and include issues such as lack of time, insufficient flexible childcare, and a need for better access to hobby education. However, the context does not specify the exact forms of support currently provided, only that these areas are being considered.",
"answer": "Estonia recognizes that single-parent families need support beyond just financial help. Since January 2022, the Ministry of Social Affairs has been seeking solutions to address challenges such as lack of time, insufficient flexible childcare, and the need for better access to hobby education for single parents.",
"questionOutOfLLMScope": false
}
],
"signature": {
"instructions": "Produce a grounded answer from the provided context ONLY.\n\nCRITICAL LANGUAGE RULE:\n- The answer MUST be in the SAME language as the input question\n- Estonian question → Estonian answer\n- Russian question → Russian answer\n- English question → English answer\n- Maintain the natural language flow and grammar of the detected language\n\nRules:\n- Use ONLY the provided context blocks; do not invent facts\n- If context is insufficient, set questionOutOfLLMScope=true\n- Do not include citations in the answer field\n- Be concise and direct",
"fields": [
{
"prefix": "Question:",
"description": "User's question. Answer in the SAME language as this question."
},
{
"prefix": "Context Blocks:",
"description": "Relevant context chunks"
},
{
"prefix": "Reasoning: Let's think step by step in order to",
"description": "${reasoning}"
},
{
"prefix": "Answer:",
"description": "Human-friendly answer in THE SAME LANGUAGE as the question, without citations"
},
{
"prefix": "Question Out Of LLM Scope:",
"description": "True if context is insufficient to answer"
}
]
},
"lm": null
},
"metadata": {
"dependency_versions": {
"python": "3.12",
"dspy": "3.0.3",
"cloudpickle": "3.1"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"component": "guardrails",
"optimizer": "MIPROv2-light",
"optimization_time_seconds": 1411.58703,
"trainset_size": 10,
"valset_size": 44,
"num_candidates": 10,
"validation_stats": {
"raw_accuracy": 0.9545454545454546,
"weighted_accuracy": 0.9545454545454546,
"precision": 1.0,
"recall": 0.9130434782608695,
"f1_score": 0.9545454545454545,
"confusion_matrix": {
"tp": 21,
"tn": 21,
"fp": 0,
"fn": 2
},
"true_positives": 21,
"true_negatives": 21,
"false_positives": 0,
"false_negatives": 2,
"total_predictions": 44
},
"timestamp": "2026-04-24T07:22:35.530732"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"predict": {
"traces": [],
"train": [],
"demos": [
{
"augmented": true,
"history": "",
"question": "poverty stats",
"n": 3,
"reasoning": "The user asked a very broad question: \"poverty stats\". There is no prior context, so the rewrites should clarify and specify the request, making it more explicit and searchable. Since no location, time period, or demographic is given, the rewrites should cover common interpretations, such as national poverty statistics, recent data, and possibly global comparisons. Each rewrite should be distinct, focusing on different ways someone might seek poverty-related statistical information.",
"rewrites": [
"What are the latest poverty statistics for Estonia?",
"Can you provide recent global poverty rates?",
"What percentage of the population in Estonia lives below the poverty line?"
]
},
{
"history": "",
"question": "large families",
"n": 3,
"expected_refinements": [
"What benefits are available for large families in Estonia?",
"How does Estonia support families with many children?",
"What is the definition of a large family for benefit purposes in Estonia?"
],
"rewrites": [
"What benefits are available for large families in Estonia?",
"How does Estonia support families with many children?",
"What is the definition of a large family for benefit purposes in Estonia?"
]
},
{
"history": "user: Vajan infot töötuse kohta\nassistant: Eesti pakub töötutoetust ja tööhõiveteenuseid Töötukassa kaudu.",
"question": "Kui kaua?",
"n": 3,
"expected_refinements": [
"Kui kaua ma saan töötutoetust Eestis?",
"Mis on töötuskindlustuse kestus Eestis?",
"Mitu kuud kestab töötutoetus Eestis?"
],
"rewrites": [
"Kui kaua ma saan töötutoetust Eestis?",
"Mis on töötuskindlustuse kestus Eestis?",
"Mitu kuud kestab töötutoetus Eestis?"
]
},
{
"history": "user: What's the parental benefit like?\nassistant: Estonia's parental benefit is one of the most generous globally, covering a long period with substantial amounts.",
"question": "Compared to what?",
"n": 3,
"expected_refinements": [
"How does Estonia's parental benefit compare to other EU countries?",
"What is Estonia's ranking for parental benefits in the EU?",
"How does Estonian parental benefit compare to the European average?"
],
"rewrites": [
"How does Estonia's parental benefit compare to other EU countries?",
"What is Estonia's ranking for parental benefits in the EU?",
"How does Estonian parental benefit compare to the European average?"
]
}
],
"signature": {
"instructions": "Produce N distinct, concise rewrites of the user's question using chat history.\n\nConstraints:\n- Preserve the original intent\n- Resolve pronouns with context when safe\n- Prefer explicit, searchable phrasing (entities, dates, units)\n- Make each rewrite meaningfully distinct\n- Return exactly N items as a list",
"fields": [
{
"prefix": "History:",
"description": "Recent conversation history"
},
{
"prefix": "Question:",
"description": "The user's latest question to refine"
},
{
"prefix": "N:",
"description": "Number of rewrites to produce"
},
{
"prefix": "Reasoning: Let's think step by step in order to",
"description": "${reasoning}"
},
{
"prefix": "Rewrites:",
"description": "Exactly N refined variations of the question"
}
]
},
"lm": null
},
"metadata": {
"dependency_versions": {
"python": "3.12",
"dspy": "3.0.3",
"cloudpickle": "3.1"
}
}
}
Loading
Loading