microsoft / microsoft/promptflow

[BUG] Bug report for Prompt flow VS Code extension

Open
#528 0 comments 0 reactions 1 assignee View on GitHub

@JYC-99 is already working on this.

Since Sep 19, 2023.

enhancement long-term vscode extension
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

  1. Create a new node in the prompt flow by clicking the "+" button.
  2. Select "Prompt Tool" from the options.
  3. Name the node.
  4. Try to select an existing file for the node.
  5. Notice that only .jinja2 files can be selected, and not .txt or .json files 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:
image
imageimage
image
image

Screenshots showing the disrepancy between templating for Prompt Flow .jinja2 files and skprompt.txt files:
image
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.