Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why not support simple python projects? #6

Closed
nickknyc opened this issue May 24, 2024 · 8 comments
Closed

why not support simple python projects? #6

nickknyc opened this issue May 24, 2024 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@nickknyc
Copy link

why do you need to be using semantic kernel or prompt flow?

why cant it work with a simple python script.. i must be missing something.

@sethjuarez
Copy link
Member

That's an awesome question. In general, we need to have a runtime to execute these files in code. In theory you could definitely write your own prompty loader and execute it for sure. We thought it would be easier to do that in prompt flow. Are you suggesting we should have a standalone prompty library?

@nickknyc
Copy link
Author

nickknyc commented May 25, 2024 via email

@mattgotteiner
Copy link
Member

Looks like there's some parsing code in the promptflow library
https://github.com/microsoft/promptflow/blob/1826b3e55e36132281d68e1765f43aa13b6e5241/src/promptflow-core/promptflow/core/_flow.py#L218

Any chance that we can get a local package that allows us to parse prompty files so we can write our own executors? For example, I might want to take a prompty that was meant for gpt-35-turbo but run it using a custom configuration using a foundation model I deployed on AI Studio

@sethjuarez
Copy link
Member

We are working on getting some of our internal community packages released.

@sethjuarez sethjuarez self-assigned this Jun 8, 2024
@sethjuarez sethjuarez added the enhancement New feature or request label Jun 8, 2024
@sethjuarez
Copy link
Member

We've released an early version of the prompty package on PyPI. I am working out a couple of things and am hoping to have something by EOW

@nextedoff
Copy link

We've released an early version of the prompty package on PyPI. I am working out a couple of things and am hoping to have something by EOW

I have a slightly unrelated question, but is there any way to register custom executors with Prompty while using promptflow?

@sethjuarez
Copy link
Member

Not at the moment. Currently promptflow uses its own execution mechanism and not the factory pattern we use in prompty. The prompty package lives at a lower level than promptflow. Building your own executor is not super difficult though.

@sethjuarez
Copy link
Member

Will close this - we've set up the Python runtime code in this repo and it auto deploys to PyPI when tagged. Working on docs still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants