Stevenic / promptrix-py

Promptrix is a prompt layout engine for Large Language Models.
MIT License
11 stars 2 forks source link

Port JS version of promptrix to python #1

Open Stevenic opened 1 year ago

Stevenic commented 1 year ago

https://github.com/Stevenic/promptrix

bdambrosio commented 1 year ago

Ok. got a version that runs your first example:

[{'role': 'system', 'content': 'The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.'}, {'role': 'user', 'content': 'hello'}] The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.

Been using github for ages, but only to clone or to backup my own stuff, totally noob on pull, fork, merge, collab, so I'll need some handholding. Sounds from Steve's most recent post that I should wait for the new version of PromptMemory and integrate that? Then what do I do?

Stevenic commented 1 year ago

@bdambrosio you're doing great and I think everything is up to date. Everything in this library is on point and I just updated alphawave to include all the changes I was planning. I realize that 2 libraries adds complexity but that's how things best broke down.

bdambrosio commented 1 year ago

Having some trouble with ConversationHistory. I suspect it's because I don't know how to initialize and use it. Do we just keep adding User and Assistant messages to an array stored under history key, assuming that's the key we gave at ConversationHistory constructor time?