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
for example, lets say you want to switch between different prompting styles of from Alapca and StableLM while underlying chats are shared
frompingpong.gradioimportGradioAlpacaChatPPManagerfrompingpong.gradioimportGradioStableLMChatPPManagerpingpongs= []
alpaca=GradioAlpacaChatPPManager()
stablelm=GradioStableLMChatPPManager()
alpaca.ctx="this is a context"alpaca.pingpongs=pingpongsstablelm.ctx="this is a context"stablelm.pingpongs=pingpongsalpaca.add_ping("hello") # starting promptprompt_for_stablelm=stablelm.build_prompts()
stablelm.add_pong(generate(prompt_for_stablelm)) # generate is a function to generate text based on given promptprompt_for_alpaca=alpaca.build_prompts()
alpaca.add_pong(generate(prompt_for_alpaca))
...
I wonder: Can Ping Pong principle be applied to let 2 LLM Chatbots talk to each other fully automatically?
The text was updated successfully, but these errors were encountered: