Support markdown semantic functions
See original GitHub issueIt would be great if skills could be defined as a group of markdown files with frontmatter (YAML) for defining the configuration, i.e.
instead of
- WriterSkill/
- Acronym/
- skprompt.txt
- config.json
- EmailTo/
- skprompt.txt
- config.json
- Acronym/
You could have
- WriterSkill
- Acronym.md
- EmailTo.md
Where Acronym.md has
---
schema: 1
type: completion
description: Generate an acronym for the given concept or phrase
completion:
max_tokens: 100
temperature: 0.5
top_p: 0.0
presence_penalty: 0.0
frequency_penalty: 0.0
---
Generate a suitable acronym pair for the concept. Creativity is encouraged, including obscure references.
The uppercase letters in the acronym expansion must agree with the letters of the acronym
Q: A technology for detecting moving objects, their distance and velocity using radio waves.
A: R.A.D.A.R: RAdio Detection And Ranging.
Q: A weapon that uses high voltage electricity to incapacitate the target
A. T.A.S.E.R: Thomas A. Swift’s Electric Rifle
Q: Equipment that lets a diver breathe underwater
A: S.C.U.B.A: Self Contained Underwater Breathing Apparatus.
Q: Reminder not to complicated subject matter.
A. K.I.S.S: Keep It Simple Stupid
Q: A national organization for investment in space travel, rockets, space ships, space exploration
A. N.A.S.A: National Aeronautics Space Administration
Q: Agreement that governs trade among North American countries.
A: N.A.F.T.A: North American Free Trade Agreement.
Q: Organization to protect the freedom and security of its member countries in North America and Europe.
A: N.A.T.O: North Atlantic Treaty Organization.
Q:{{$input}}
This would help reduce the number of files and folders a developer has to sift through, making the name of the file significant (rather than every function being named “skprompt.txt”)
Issue Analytics
- State:
- Created 4 months ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Semantic Authoring Markdown (SAM)
Semantic Authoring Markdown (SAM) is a simplified markup for semantic authoring. Semantic authoring means writing texts that identify some part of their ...
Read more >The Ins and Outs of Using Markdown for Technical Writing
Markdown merges the semantic meaning of your text and how it should be displayed, which some people find unsuitable; It's limited stylistically ...
Read more >Extended Syntax
The basic Markdown syntax allows you to create code blocks by indenting lines by four spaces or one tab. If you find that...
Read more >Why You Should and Should Not Use Markdown - Peter Conrad
Markdown's limited features keep formatting consistent between documents and between authors because you can't make choices about font, text ...
Read more >Markdown Quick Reference Cheat Sheet
Markdown converts text to HTML . These are some of the most useful Markdown features available on WordPress.com. See the official Markdown project...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For any future folks, I wrote a quick proof of concept. The argument about “performance” above is pretty silly, reading from 1 file is always going to be faster than reading from 2 files, the only difference is YAML deserialization vs JSON deserialization, which should be negligible. This could be easily tuned to be more performant, but 99% of the time will be spent reading the file into memory from secondary storage.
Also, some things had to be duplicated, since this library makes some things internal-only
https://gist.github.com/onionhammer/c019b04a7c4f058cd57183f0df738905
@dluc Why was this closed as completed? Did you mean to close it as not planned? If so then why say you’d consider hosting alternative formats?