Having played around with this sort of thing in the llama.cpp ecosystem when they added it a few weeks ago, I will say that it also helps if your models a) are tuned to output json and b) you prompt them to do so. Anything you can do to help the output fit the grammar helps.
Just code it yourself. Most of the core logic can be replaced with a function that that inserts some parameters into a string template and calls an API.
This was the answer for myself as well, pretty cool that we are still at the level where if you have an idea you can build a proof extremely quickly and easily.
I've been actively contributing to Langroid as well. It is easy to use, and the intuitive design allows for the rapid development of LLM applications, streamlining the whole process. Highly recommended for anyone looking into this space!
for m in reversed(self.messages):
if total_tokens + m.length <= max_tokens:
recent_messages_reversed.append({
"role": m.role,
"content": m.text
})
total_tokens += m.length
else:
break
It would be important to change that to not drop system prompts, ever. Otherwise a user can defeat the system prompt simply by providing enough user messages.
There's already a lot of foundations that haven't been able to scale the process of paying thousands of developers due to tax & employment issues across the globe. We think creating the right commercial incentives would have a better chance but we might also be wrong. Time will tell...
Yeah, so the reflective LCD technology isn't quite dead. I guess when both reflectivity and quick refresh rates are required, monochrome LCD is still the only solution, since Liquavista and Mirasol were discontinued. For color displays there is simply no solution at all with decent reflectivity I believe. The E Ink Gallery 3 display seems to mostly solve the low reflectivity problem, since it does not rely on standard additive sub-pixel color mixing. But there is no similar solution for higher refresh rates. There were improved Mirasol prototypes which apparently solved the issue, but shortly after they were shown, the development of the Mirasol technology was discontinued.
reply