Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /promptdriven_pdd /context /DSPy_example.py
| # Goal is to use DSPy to select the optimal example from change | |
| # #first step set up . assume we have already linked to OpenAI API well | |
| # import context.DSPy_example as DSPy_example #set up the LM | |
| # turbo=dspy.OpenAI(model="gpt-3.5-turbo-instruct", max_tokens=250) | |
| # dspy.settings.configure(lm=turbo) | |
| # #step 2. define the module | |
| # class chainofthought(dspy.Module): | |
| # def __init__(self): | |
| # super()._init__() | |
| # self.prog=dspy.ChainOfThought("question->answer") | |
| # def forward(self, question): | |
| # return self.prog(question=question) | |
| #compile and optimizer the |
Xet Storage Details
- Size:
- 624 Bytes
- Xet hash:
- 293bcf443bfe43cd44c8555196ebe4494b8a67c8c6823c2a2388481ff2f6e000
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.