
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@glennjones/prompt
Advanced tools
At the moment this code is more of a sketched idea than a library, but it is usable if you are interested in tring it out. It may be well your time worth looking at the [Langchain JS](https://github.com/hwchase17/langchainjs) which is the most heavily use
At the moment this code is more of a sketched idea than a library, but it is usable if you are interested in tring it out. It may be well your time worth looking at the Langchain JS which is the most heavily used tool of this type at the moment (Apr 2023). It is more advanced and has a lot of additional/useful features this tool does not have.
Its a light warpper around LLM inetrfaces such as OpenAI's ChatGPT. It provides:
I have been using it to benchmark NER and Classification tasks with OpenAI prompts against other approcahes.
npm i @glennjones/prompt
const Prompt = require('prompt');
const {Prompter, OpenAI} = Prompt;
import {OpenAI, Prompter} from prompt
let model = new OpenAI(apiKey);
let prompt = new Prompter(model);
let result = await prompt.fit('ner', {
domain: 'ux design',
textInput: 'Senior UX Researcher, part-time 6 month contract, Edinburgh - Hybrid',
});
console.log(result);
### Output
{
promptTokens: 152,
completionTokens: 99,
totalTokens: 251,
data: [
{ label: 'Position', text: 'Senior UX Researcher' },
{ label: 'Contract Type', text: 'part-time' },
{ label: 'Contract Duration', text: '6 month' },
{ label: 'Location', text: 'Edinburgh' },
{ label: 'Work Type', text: 'Hybrid' },
{ branch: 'UX Design', group: 'Research' }
]
}
Based on the ideas/code of Promptify - https://github.com/promptslab/promptify
FAQs
At the moment this code is more of a sketched idea than a library, but it is usable if you are interested in tring it out. It may be well your time worth looking at the [Langchain JS](https://github.com/hwchase17/langchainjs) which is the most heavily use
The npm package @glennjones/prompt receives a total of 0 weekly downloads. As such, @glennjones/prompt popularity was classified as not popular.
We found that @glennjones/prompt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.