krrishdholakia / betterprompt Goto Github PK
View Code? Open in Web Editor NEWTest suite for LLM prompts
License: MIT License
Test suite for LLM prompts
License: MIT License
You don't want to provide your API keys?:)
ValueError: Did not find OPENAI_API_KEY, please add an environment variable
OPENAI_API_KEY which contains it, or pass OPENAI_API_KEY as a named parameter.
Hi,
I have been fooling around with this and I observe that the perplexity values are usually rather small --
e.g.
args= GenericIdeaCreator the quick brown fox jumped over the lazy: text-ada-001 None
opening file app/presets/GenericIdeaCreator.json
2023-01-12 12:25:02.071 INFO openai: message='Request to OpenAI API' method=post path=https://api.openai.com/v1/completions
2023-01-12 12:25:02.731 INFO openai: message='OpenAI API response' path=https://api.openai.com/v1/completions processing_ms=90 response_code=200
perplexity 0.0006873648694770481
As you might, this is on the high side relative to my more specific or tailored prompts, which generally return values between 0.0002 and 0.0004.
Three questions:
test
A bug happened!
1.0.2 (Default)
Firefox
test
Need to update the calculation of perplexity to be - Not the perplexity of the prompt but the perplexity of the test completions given the prompt
.
A potential way to structure this is - have it taken in a couple sample test cases, and your prompt, and output perplexity. Could also have it take in multiple prompts.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.