Text To command - How to make it stateful

Hi Team,

Please excuse me if this question was previously asked, I tried searching couldn’t find it.

I have been using the below API to convert Text to Command


Payload Sample:
  "prompt": "**Q:Some Text.\nA:Custom Command(it is In house laguage)**'\n",
  "temperature": 0,
  "max_tokens": 100,
  "top_p": 1,
  "frequency_penalty": 0,
  "presence_penalty": 0,
  "stop": ["\n"]

My Question:
I have to send the same payload in every single API call, this is a kind of stateless execution.

  1. How can I make this stateful?
  2. How do I make sure that the same examples don’t need to be sent every time?
  3. How can I train this with more and more data so that the result is more accurate? (An API call only accepts 2048 tokens)

Thanks a lot in advance.

1 Like

You should take a look here : https://beta.openai.com/docs/guides/fine-tuning


Thanks a lot, I will check this, and will reply with my findings.