In brief
Jerry Liu argues that the practical way to make large language models useful on private company data is retrieval augmented generation (RAG). The model stays fixed, and the system fetches only the most relevant pieces of data and puts them in the prompt. He presents LlamaIndex as a vendor-neutral toolkit for building this, and says measurement and tuning matter more than the choice of vector database.
The main tension is between simple, reliable systems and ambitious ones. Liu says basic RAG works today and can be improved step by step with evaluation sets, chunking and retrieval tweaks. Fine-tuning and fully autonomous agents are harder, slower, or still unreliable. He also expects bigger context windows and OpenAI's own retrieval tools to change the field, but not to remove the need for retrieval.
Facts
Stated by the speakers. Each quote matches the transcript, which shows what was said, not that it is true.
Jerry Liu made the first commit of the LlamaIndex project on November 1, 2022 and announced it on Twitter on November 8, 2022.
“the 1st commit was on November 1st of 2022. Uh, I posted this on Twitter November 8th of 2022, and I started hacking on LLMs”
0:41:31 · Jerry Liu · LlamaIndex origin · 2022
LlamaIndex was incorporated in April, raised funding at the end of April, and announced the company in June, according to Jerry Liu.
“it was officially incorporated April, um, and then, uh, did the fundraising like end of April, announced it in June”
0:43:08 · Jerry Liu · Company formation · 2023
Jerry Liu did AI research for about two and a half years at Uber before founding LlamaIndex.
“did AI research for like two and a half years at Uber, um, have worked in ML, uh, for most of my career”
0:41:57 · Jerry Liu · Founder background
Jerry Liu names LangChain and Haystack as other frameworks for building applications on large language models.
“there, besides LlamaIndex, there's also LangChain, there's Haystack, there's a few others”
0:02:10 · Jerry Liu · Competing frameworks · 2023
Jerry Liu estimates that over 75 to 80 percent of LlamaIndex users focus on retrieval augmented generation.
“I would say probably like over 75 to 80 of our users are focused, um, on the RAG use case with LlamaIndex”
0:03:35 · Jerry Liu · User base · 2023
RAG stands for retrieval augmented generation, a term that Jerry Liu says came out of a paper a few years earlier.
“RAG stands for retrieval augmented generation.”
0:03:59 · Jerry Liu · RAG terminology
Jerry Liu says the LlamaIndex documentation contains over 300 guides.
“Like, for instance, we have over 300 guides in the LlamaIndex”
0:15:42 · Jerry Liu · Documentation · 2023
Jerry Liu describes evaluating answers by prompting GPT-4 to score a generated response from 1 to 5 against a ground-truth response.
“you can basically prompt, uh, GPT-4 to output a score between 1 to 5 on how much your predicted response, like the generated response, matches the ground truth response”
0:48:22 · Jerry Liu · LLM evaluation · 2023
Jerry Liu cites Zephyr-7B, a Hugging Face model fine-tuned from Mistral, as an open source model showing more advanced abilities.
“a recent model like Zephyr-7B by Hugging Face, which was, I I think, fine-tuned on top of Mistral”
0:21:35 · Jerry Liu · Open source models · 2023
Jerry Liu says even the best fine-tuning services take at least ten to twenty minutes on a very small dataset, while RAG gives results in about a minute.
“even the best fine-tuning solutions these days take at least like ten to twenty minutes over a very small dataset to give you back anything”
0:28:20 · Jerry Liu · Fine-tuning · 2023
Jerry Liu says OpenAI's Assistants API, released a few weeks before the recording, is essentially an agent execution loop with tool use.
“if you look at the assistance API that OpenAI released a few weeks ago, um, it's basically this”
0:34:36 · Jerry Liu · AI agents · 2023
LlamaIndex data agents let developers choose an execution loop such as the ReAct reasoning loop or OpenAI function calling.
“you have your choice of, uh, React, like the, you know, general chain of thought reasoning loop, um, open AI function calling, like a while loop over OpenAI”
0:44:04 · Jerry Liu · Data agents · 2023
The LlamaIndex team refactored and rewrote much of the codebase in April, a rewrite led by co-founder Simon.
“we ended up having to kind of, like, refactor, rewrite a bunch of stuff in April”
0:51:05 · Jerry Liu · Refactor · 2023
Jerry Liu says LlamaIndex had almost 500 community contributions to its open source project and almost 200 to its hub.
“I think we're almost at, like, 500 contributions on on open source, a and then, uh, like almost 200 on on the hub”
0:53:10 · Jerry Liu · Community growth · 2023
Jerry Liu cites context windows of 200K for Anthropic's newest Claude model, 128K for GPT-4 Turbo and 100K for Claude 2.
“and and Anthropic has a 200K context window. So, like, you know, the GPT-4 Turbo has 128K, uh, Claude 2 has 100K”
0:54:06 · Jerry Liu · Context windows · 2023