Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
PingPong is a simple library to manage pings(prompt) and pongs(response). The main purpose of this library is to manage histories and contexts in LLM applied applications such as ChatGPT.
The basic motivations behind this project are:
### Instruction:
, ### Response:
, and ### Input:
are given while StackLLaMA works when Question:
and Answer:
are given even though the underlying pre-trained LLM is the same LLaMA.$ pip install bingbong
from pingpong import PingPong
from pingpong.gradio import GradioAlpacaChatPPManager
from pingpong.context import CtxAutoSummaryStrategy
from pingpong.context import CtxLastWindowStrategy
from pingpong.context import CtxSearchWindowStrategy
ppmanager = GradioAlpacaChatPPManager()
strategies = [
CtxAutoSummaryStrategy(2),
CtxLastWindowStrategy(1),
CtxSearchWindowStrategy(1)
]
for i in range(3):
ppmanager.add_pingpong(PingPong(f"ping-{i}", f"pong-{i}"))
for strategy in strategies:
if isinstance(strategy, CtxAutoSummaryStrategy):
sum_req, to_sum_prompt = strategy(ppmanager)
if sum_req is True:
# enough prompts are accumulated
...
elif isinstance(strategy, CtxLastWindowStrategy):
last_convs = strategy(ppmanager)
# I am only interested in the last 1 conversations
...
elif isinstance(strategy, CtxSearchWindowStrategy):
for cur_win in strategy(ppmanager):
# looking the entire conversation through
# a sliding window, size of 1
# find out relevant history to the recent conversation
...
FAQs
Ping pong is a management library for LLM applied applications.
We found that bingbong demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.