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
response = qa(question="How many floors are in the castle David Gregory inherited?")
88
92
response.completions.answer
89
93
```
90
-
91
-
["The specific number of floors in David Gregory's inherited castle is not provided here, so further research would be needed to determine the answer.",
92
-
'The castle David Gregory inherited has 4 floors.',
93
-
'The castle David Gregory inherited has 5 floors.',
94
-
'David Gregory inherited 10 floors in the castle.',
95
-
'The castle David Gregory inherited has 5 floors.']
94
+
**Output:**
95
+
```text
96
+
["The specific number of floors in David Gregory's inherited castle is not provided here, so further research would be needed to determine the answer.",
97
+
'The castle David Gregory inherited has 4 floors.',
98
+
'The castle David Gregory inherited has 5 floors.',
99
+
'David Gregory inherited 10 floors in the castle.',
100
+
'The castle David Gregory inherited has 5 floors.']
101
+
```
96
102
97
103
If you just call `qa(...)` in a loop with the same input, it will always
98
104
return the same value! That\'s by design.
@@ -105,13 +111,14 @@ for idx in range(5):
105
111
response = qa(question="How many floors are in the castle David Gregory inherited?", config=dict(temperature=0.7+0.0001*idx))
106
112
print(f'{idx+1}.', response.answer)
107
113
```
108
-
109
-
1. The specific number of floors in David Gregory's inherited castle is not provided here, so further research would be needed to determine the answer.
110
-
2. It is not possible to determine the exact number of floors in the castle David Gregory inherited without specific information about the castle's layout and history.
111
-
3. The castle David Gregory inherited has 5 floors.
112
-
4. We need more information to determine the number of floors in the castle David Gregory inherited.
113
-
5. The castle David Gregory inherited has a total of 6 floors.
114
-
114
+
**Output:**
115
+
```text
116
+
1. The specific number of floors in David Gregory's inherited castle is not provided here, so further research would be needed to determine the answer.
117
+
2. It is not possible to determine the exact number of floors in the castle David Gregory inherited without specific information about the castle's layout and history.
118
+
3. The castle David Gregory inherited has 5 floors.
119
+
4. We need more information to determine the number of floors in the castle David Gregory inherited.
120
+
5. The castle David Gregory inherited has a total of 6 floors.
121
+
```
115
122
116
123
## Remote LMs.
117
124
@@ -138,7 +145,7 @@ You need to host these models on your own GPU(s). Below, we include pointers for
138
145
139
146
5.`dspy.ChatModuleClient` (experimental): [How do I install and use MLC?](/api/hosting_language_models_locally/MLC)
140
147
141
-
If there are other clients you want added, let us know!
148
+
If there are other clients you want added, let us know or open a PR! Read the doc page on how to create a new LM client.
0 commit comments