
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
The foresight library within fore SDK allows you to easily evaluate the performance of your LLM system based on a variety of metrics.
You can sign-up and get started immediately at https://foresight.foreai.co.
Check our documentation at https://docs.foreai.co.
Install the package using pip
:
pip install fore
Or download the repo from GitHub and install via pip install .
from fore.foresight import Foresight
foresight = Foresight(api_token="<YOUR_API_TOKEN>")
foresight.log(query="What is the easiest programming language?",
response="Python",
contexts=["Python rated the easiest programming language"],
tag="my_awesome_experiment")
# You can add more such queries using foresight.log
# ....
foresight.flush()
from fore.foresight import EvalRunConfig, Foresight, InferenceOutput, MetricType
foresight = Foresight(api_token="<YOUR_API_TOKEN>")
evalset = foresight.create_simple_evalset(
evalset_id="programming-languages",
queries=["hardest programming language?", "easiest programming language?"],
reference_answers=["Malbolge", "Python"])
run_config = EvalRunConfig(evalset_id="programming-languages",
experiment_id="my-smart-llm",
metrics=[MetricType.GROUNDEDNESS,
MetricType.REFERENCE_FACT_RECALL])
def my_generate_fn(query: str) -> InferenceOutput:
# Do the LLM processing with your model...
# Here is some demo code:
return InferenceOutput(
generated_response="Malbolge" if "hardest" in query else "Python",
contexts=[
"Malbolge is the hardest language", "Python is the easiest language"
])
foresight.generate_answers_and_run_eval(my_generate_fn, run_config)
We currently offer two metrics:
Check here for more information.
FAQs
fore ai packages
We found that fore demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.