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

Python: Add Grounding Skill to Samples #1064

Merged

Commits on May 18, 2023

  1. Configuration menu
    Copy the full SHA
    7c65af2 View commit details
    Browse the repository at this point in the history
  2. More for grounding

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    2e9d2a2 View commit details
    Browse the repository at this point in the history
  3. Fiddling

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    4b3ddc6 View commit details
    Browse the repository at this point in the history
  4. Putting in notebook

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    b8229a4 View commit details
    Browse the repository at this point in the history
  5. Wrong notebook

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    84894a4 View commit details
    Browse the repository at this point in the history
  6. Didn't mean to modify

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    54cb098 View commit details
    Browse the repository at this point in the history
  7. Fix bullet list references

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    2175359 View commit details
    Browse the repository at this point in the history
  8. Fix quotation marks

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    7c82cb7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    73147bd View commit details
    Browse the repository at this point in the history
  10. Fixing some things

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    babd133 View commit details
    Browse the repository at this point in the history
  11. Improve the notebook

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    cc67c6e View commit details
    Browse the repository at this point in the history
  12. Typo fix

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    b897fdb View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    8320891 View commit details
    Browse the repository at this point in the history
  14. So, we need a return type?

    riedgar-ms committed May 18, 2023
    Configuration menu
    Copy the full SHA
    4dece5b View commit details
    Browse the repository at this point in the history

Commits on May 19, 2023

  1. Configuration menu
    Copy the full SHA
    c4e424d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    428cbd8 View commit details
    Browse the repository at this point in the history
  3. Fiddle, fiddle, fiddle

    riedgar-ms committed May 19, 2023
    Configuration menu
    Copy the full SHA
    a3453ff View commit details
    Browse the repository at this point in the history
  4. Fiddle, fiddle, fiddle

    riedgar-ms committed May 19, 2023
    Configuration menu
    Copy the full SHA
    ca22bc2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0d3b4ef View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. Configuration menu
    Copy the full SHA
    7bd384e View commit details
    Browse the repository at this point in the history
  2. Tweaking prompt

    riedgar-ms committed May 22, 2023
    Configuration menu
    Copy the full SHA
    32955f4 View commit details
    Browse the repository at this point in the history
  3. Update

    riedgar-ms committed May 22, 2023
    Configuration menu
    Copy the full SHA
    d9352ae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    50ecb8a View commit details
    Browse the repository at this point in the history
  5. Prompt engineering

    riedgar-ms committed May 22, 2023
    Configuration menu
    Copy the full SHA
    b9bfe43 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c729e77 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2023

  1. Configuration menu
    Copy the full SHA
    f539a6b View commit details
    Browse the repository at this point in the history
  2. Tweak planning metaprompt

    riedgar-ms committed May 23, 2023
    Configuration menu
    Copy the full SHA
    781e389 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    de17dc0 View commit details
    Browse the repository at this point in the history
  4. In process demonstration

    riedgar-ms committed May 23, 2023
    Configuration menu
    Copy the full SHA
    be7b976 View commit details
    Browse the repository at this point in the history
  5. Prompt tweak

    riedgar-ms committed May 23, 2023
    Configuration menu
    Copy the full SHA
    15e6d2f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    854c884 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2023

  1. Configuration menu
    Copy the full SHA
    c283e5d View commit details
    Browse the repository at this point in the history
  2. Drafting an extra skill

    riedgar-ms committed May 30, 2023
    Configuration menu
    Copy the full SHA
    b04ec96 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    265e84e View commit details
    Browse the repository at this point in the history
  4. Some simple debugging info

    riedgar-ms committed May 30, 2023
    Configuration menu
    Copy the full SHA
    0cac429 View commit details
    Browse the repository at this point in the history
  5. Simplify a prompt

    riedgar-ms committed May 30, 2023
    Configuration menu
    Copy the full SHA
    aa35d5d View commit details
    Browse the repository at this point in the history
  6. Update notebook

    riedgar-ms committed May 30, 2023
    Configuration menu
    Copy the full SHA
    38b24e7 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. Configuration menu
    Copy the full SHA
    03621bb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    abde647 View commit details
    Browse the repository at this point in the history
  3. Push execution sample

    riedgar-ms committed May 31, 2023
    Configuration menu
    Copy the full SHA
    913bce3 View commit details
    Browse the repository at this point in the history
  4. Show some output

    riedgar-ms committed May 31, 2023
    Configuration menu
    Copy the full SHA
    e879fbf View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

  1. Configuration menu
    Copy the full SHA
    6c92315 View commit details
    Browse the repository at this point in the history
  2. Typo fixing

    riedgar-ms committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    c29dbfd View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. Configuration menu
    Copy the full SHA
    6870439 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Configuration menu
    Copy the full SHA
    fd004cb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3f95161 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

  1. Configuration menu
    Copy the full SHA
    d47da5e View commit details
    Browse the repository at this point in the history
  2. Remove GroundingSkill

    riedgar-ms committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    dbaf9fe View commit details
    Browse the repository at this point in the history
  3. Rename Grounding2Skill

    riedgar-ms committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    1b581b3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9c5ec7b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e66eaba View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c5be1b1 View commit details
    Browse the repository at this point in the history
  7. Update notebook

    riedgar-ms committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    4e6a70d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    41fb9d0 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Configuration menu
    Copy the full SHA
    414be23 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. Configuration menu
    Copy the full SHA
    c4bd800 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d8eadb View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. Configuration menu
    Copy the full SHA
    8dc081c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9251c8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f9f18c4 View commit details
    Browse the repository at this point in the history
  4. Groundedness improvments and dotnet examples (#1)

    * 👩‍💻 Update kernel syntax, grounding skill, and add groundedness checks example
    
    This commit updates the kernel syntax examples in the dotnet sample
    project to comment out some of the examples that are not needed for
    testing. It also modifies the grounding skill to use separate parameters
    for the input text, the reference context, and the entities to check.
    The skprompt files for the grounding skill are updated accordingly.
    
    Additionally, this commit adds a new example file for demonstrating how
    to use the GroundingSkill to remove the entities which are not grounded
    in the original text. The example uses the KernelBuilder to import the
    GroundingSkill and the SummarizeSkill from the sample skills directory,
    and then uses the SequentialPlanner to create and invoke a plan that
    takes a text input and returns a grounded summary. The example also
    shows how to use the TextSkill to print the results
    
    * 🔧 Add entities variable to grounding check
    
    This commit adds a new variable to the context of the reference check
    method, which contains the extracted entities from the summary text.
    This variable is used by the reference check method to perform
    grounding checks on the entities and ensure they are consistent with
    the reference context. This improves the accuracy and reliability of
    the reference check method and the quality of the summaries.
    
    * 🐛 Fix groundedness checks in kernel syntax examples
    
    The previous code for the groundedness checks in the kernel syntax
    examples had some errors and inconsistencies. This commit fixes the
    following issues:
    
    - The extractionResult and groundingResult variables were not properly
      cast to strings before being used as arguments or printed to the
      console.
    - The entity_excision function was invoked with the wrong argument,
      passing the groundingResult instead of the context.
    - The final output message was missing the word "Planning" to indicate
      the task.
    
    * Undo program.cs changes
    
    * 📝 Update groundedness checks example
    
    This commit updates the groundedness checks example in the kernel
    syntax examples folder. It adds some comments and example output to
    the code, and removes an unnecessary line that printed the ask
    variable. It also improves the formatting of the ask variable by
    removing the extra quotes and using a single line string. The commit
    aims to make the example more clear and readable for the users.
    
    * 📝 Remove context from skprompt.txt
    
    The context section in skprompt.txt was redundant and irrelevant for the
    task of parsing references to items. This commit removes the context
    section and updates the task description accordingly. This simplifies the
    task and makes it more focused on the reference check entities skill.
    
    ---------
    
    Co-authored-by: Richard Edgar (Microsoft) <riedgar@microsoft.com>
    Co-authored-by: Lee Miller <lemillermicrosoft@users.noreply.github.com>
    3 people authored Jun 14, 2023
    Configuration menu
    Copy the full SHA
    49e54e9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0e97a47 View commit details
    Browse the repository at this point in the history
  6. Fixing notebook

    riedgar-ms committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    0311ded View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    02b8d1f View commit details
    Browse the repository at this point in the history
  8. Carriage return

    riedgar-ms committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    40fd357 View commit details
    Browse the repository at this point in the history
  9. Update for tweaked skills

    riedgar-ms committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    44dd164 View commit details
    Browse the repository at this point in the history
  10. Update sample output

    riedgar-ms committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    f80abdc View commit details
    Browse the repository at this point in the history
  11. Update example output

    riedgar-ms committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    98c0c9e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8157616 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    028d512 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Configuration menu
    Copy the full SHA
    cd98a40 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a3ee6a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    af768f2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    460dd30 View commit details
    Browse the repository at this point in the history
  5. Extra grounding note

    riedgar-ms committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    4b87be2 View commit details
    Browse the repository at this point in the history