22 lines
715 B
C#
22 lines
715 B
C#
namespace bts.SilverPine {
|
|
using BCG;
|
|
|
|
using SimMetrics.Net.Metric;
|
|
|
|
using System.Text.Json;
|
|
|
|
|
|
[DataStreamUserRespresentation("nl_to_fewshot_prompt")]
|
|
// given an nl prompt, retreives the correct fewshot prompt and converts it into a form
|
|
// that be sent to openAI as a prompt
|
|
public class NLToFewShotPromptStream : ViewStream {
|
|
public NLToFewShotPromptStream(string nl) {
|
|
// TODO based on confi, we can either have NLToIndexedFewShotPromptStream
|
|
// or NLToNonIndexedFewShotPromptStream (which is when a al the few shots are
|
|
// concatenated and sent)
|
|
mySetRealSource(new NLToIndexedFewShotPromptStream(nl));
|
|
//_nl_prompt = nl;
|
|
}
|
|
}
|
|
|
|
} |