.txt

@dottxtai.bsky.social

We make AI speak the language of every application

We changed the way we handle multimodal inputs in Outlines. Most libraries will give the prompt a special role, separate it from the other inputs. We don’t anymore.

Bild

Check out this cool project by @aastroza.bsky.social to automatically convert any TV stream into a real-time movie script! Amazingly cool project using Outlines to enforce movie script formatting, and generally an impressive project. Here's the entire JSON schema he uses. github.com/aastroza/tvtxt

GitHub - aastroza/tvtxt: [WIP] AI that "reads" live TV and writes it as a movie script in real-time.

[WIP] AI that "reads" live TV and writes it as a movie script in real-time. - aastroza/tvtxt

github.com

Another example from our internal context-free grammar hackathon. You can force a model to generate an acrostic, i.e. make each line start with a letter in a word -- HELLO in this case. Grammars are cool.

Bild

During our internal hackathon, one of our teams (named "Too Many Cooks") wrote a grammar-powered recipe generator. The language model can ONLY generate text consistent with this recipe format. Here's a recipe for the universe.

Bild

We recently came across an interesting paper that helps LLMs be better at handling domain-specific languages like database queries or probabilistic programming languages, using an approach called "grammar prompting". Link + brief thread below.

We're delighted to sponsor the AI User Conference! It's next week, April 15th-17th. Find us at online or at San Francisco's delightful Fort Mason. Tickets: www.aiuserconference.com @cameron_pfiffer will be presenting a design for Minerva, a frontier space colony resource management system.

Bild

YOOOOOOOOOOOOOOOOO I got to teach a @deeplearningai.bsky.social course! I'm so happy. It was a really fun experience -- go take a look at the course and let us know how it went. bit.ly/4cdQlzG

Getting Structured LLM Output

Learn how to generate structured outputs to power production-ready LLM software applications.

bit.ly

.txt@dottxtai.bsky.social · last yr.

We are excited to announce our partnership with Andrew Ng and @deeplearningai.bsky.social! Our advocacy team @willkurt.bsky.social and @cameron.pfiffer.org created a course on building AI systems using structured output from LLMs. Oh, and it’s free. bit.ly/4cdQlzG

People love our Outlines library. We figured we'd release our next big product -- Inlines! Inlines are high-performance inline roller blades for the discerning AI engineer in your life. Reply in the comments and we'll add you to the pre-order list!

Bild

Outlines supports "recursive schemas", which are JSON schemas that refer to themselves. For example, here is a simple schema to generate a recursive concept map. This defines a concept, which has a title, a description, and a list of related concepts with the same schema.

Bild

Outlines v1.0 has a few interface changes coming up. One is the addition of the Application class, which combines a prompt templating function and an output type. Then, you call that application with the language model you want to use, as well as the arguments to the prompt function.

Bild

Here's what happens if you disable the use of "R" and "r" in the thinking block of Qwen 7B R1. We asked if roses are red, and it invented the phrase "conclusion point" to use instead of "answer". It eventually got the right answe.

Bild

Highly recommend this post by @simonwillison.net about extracting structured data from text with LLMs. Simon puts it well: "the single most commercially valuable application of LLMs is turning unstructured content into structured data."

Structured data extraction from unstructured content using LLM schemas

LLM 0.23 is out today, and the signature feature is support for schemas—a new way of providing structured output from a model that matches a specification provided by the user. …

buff.ly