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
In this proposal we should think about how to reduce the cost of conversation. Currently openAI doesn't provide any session related mechanism for storing the conversation state. Hence we have to send all the conversation history to openAI in EACH chat completion request.
There may be some workarounds for solving this problem.
Firstly, establish an AI middle wall (Optimizer) between the real Answer generation and user client.
In this optimizer, we shrink ALL previous chat conversion sent by the User and Assistant role into one sentence, which makes us only need to send two msgs to OpenAI each time.
Secondly, in the optimizer, we not only do things above but also ask AI for helping us organize msg content. Some approaches like removing unnecessary words to let AI smartly fill them; Avoid spaces and use CamelCase rule to express period positions.
The text was updated successfully, but these errors were encountered:
Xanonymous-GitHub
changed the title
Support context of conversation between User and Assistance
Support context of conversation between User and Assistant
Mar 14, 2023
See https://platform.openai.com/docs/guides/chat for more details.
In this proposal we should think about how to reduce the cost of conversation. Currently openAI doesn't provide any session related mechanism for storing the conversation state. Hence we have to send all the conversation history to openAI in EACH chat completion request.
There may be some workarounds for solving this problem.
Firstly, establish an AI middle wall (
Optimizer
) between the real Answer generation and user client.In this optimizer, we shrink ALL previous chat conversion sent by the
User
andAssistant
role into one sentence, which makes us only need to send two msgs to OpenAI each time.Secondly, in the optimizer, we not only do things above but also ask AI for helping us organize msg content. Some approaches like removing unnecessary words to let AI smartly fill them; Avoid spaces and use CamelCase rule to express period positions.
The text was updated successfully, but these errors were encountered: