microsoft / microsoft/promptflow
[BUG] Bug report for Prompt flow VS Code extension
@JYC-99 is already working on this.
Since Sep 19, 2023.
- Dominant language
- Python
- Stars
- 11.2k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
I'm experiencing an issue with integrating Semantic Kernel plugins into Prompt Flow. I followed the Semantic Kernel tutorial and created some plugins using the VSCode extension (example: 'FunSkill' > 'Excuses'). However, when I attempt to add these plugins to a prompt flow in Prompt Flow, the interface does not allow me to select the folder, skprompt.txt or config.json files associated with my Semantic Function.
How To Reproduce the bug
- Create a new node in the prompt flow by clicking the "+" button.
- Select "Prompt Tool" from the options.
- Name the node.
- Try to select an existing file for the node.
- Notice that only
.jinja2files can be selected, and not.txtor.jsonfiles related to VSCode-extension-generated Semantic functions.
Expected behavior
I expect to be able to select the .txt prompt file of my 'Excuses' semantic function or the relevant .json configuration file. The interface should support integration with Semantic Kernel plugins as per the tutorial.
Running Information(please complete the following information):
- Promptflow Package Version using
pf -v: [e.g. 0.0.102309906] - Operating System: [e.g. Ubuntu 20.04, Windows 11]
- Python Version using
python --version: [e.g. python==3.10.12]
Additional context
The discrepancy between the templating in .jinja2 files ({{text}}) and skprompt.txt files ({{$input}}) further complicates the issue. Its not clear whether Semantic Kernel plugins can be integrated into Prompt Flow, but if not that raises the question as to why Prompt Flow was advertised in the Semantic Kernel tutorial as a solution to generate and evaluate chains of prompts.
Screenshots
Screenshots showing how I can't add existing Semantic Functions to the Prompt Flow interface:
Screenshots showing the disrepancy between templating for Prompt Flow .jinja2 files and skprompt.txt files:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.