AI DSP: LLM Pipeline to Retriever Model (Stanford)

  Рет қаралды 7,741

Discover AI

Discover AI

Күн бұрын

Demonstrate - Search - Predict Model (DSP) by Stanford Univ.
DSP can express high-level programs that bootstrap pipeline-aware demonstrations, search for relevant passages, and generate grounded predictions, systematically breaking down problems into small transformations that the LM and RM can handle more reliably.
The discussed content revolves around the development and intricacies of a complex Large Language Model (LLM) system integrated with various data models and a self-programmable, intelligent pipeline structure. Initially, the LLM is tasked with decomposing a complex task into simpler subtasks, each represented by nodes in a graph structure. These nodes specialize in specific functions such as information retrieval, response generation, or response optimization. The unique aspect here is the transformation of these nodes into intelligent, task-specific modules within a graph, enabling sophisticated data processing and task execution. The edges in this graph represent data flow, which, due to the system's advanced design, are self-programmable and intelligent, enhancing the overall efficiency and adaptability of the system.
The evolution from a langchain to a langgraph approach is highlighted, where the process of creating and defining a graph involves specifying state, agent nodes, and edge logic. This approach draws a parallel with the user interface of NetworkX, emphasizing ease of use in constructing and running graphs. The system's capability extends to self-configurable, self-learning, and self-optimizing pipelines, utilizing graph theory for a more sophisticated, mathematical representation of the pipeline connections between different modules like language models and retrieval models. Tools like GraphSAGE and GraphBERT are mentioned for neural network programming, alongside PyG (PyTorch Geometric) for handling convolutional structures and node classification.
A year ago, Stanford University pioneered the integration of frozen language models with retrieval models for complex NLP tasks through in-context learning, without the need to fine-tune these models. This approach, known as retrieval augmented in-context learning (RAICL), leverages the language model's generative capabilities to create additional synthetic training data on the fly, within the required knowledge domain, enabling the system to continuously learn and adapt. The DSP (Demonstrate, Search, Predict) methodology plays a crucial role in this process, where the demonstrate stage involves the language model creating examples to guide its understanding of tasks, the search stage involves retrieving relevant data, and the predict stage synthesizes this data into coherent responses. The system's architecture allows for multi-hop searches and reasoning, enhancing its ability to handle complex queries and improve over time through self-optimization. This advanced methodology from Stanford signifies a major leap in AI, transforming rigid template-based systems into dynamic, self-improving, graph-based architectures.
#airesearch
#newtechnology

Пікірлер: 11
@dennisestenson7820
@dennisestenson7820 8 ай бұрын
There's always going to be people that don't watch the whole video. I don't think you should let that influence you too much. I've only seen 2 or 3 of your videos so far, and so far, I'm pleasantly surprised... that is, until the cliffhanger at the end of this video.
@dr.mikeybee
@dr.mikeybee 8 ай бұрын
I watched until the end and loved it. Beautiful stuff! Nobody watches more than a few minutes of my videos either.
@NadaaTaiyab
@NadaaTaiyab 7 ай бұрын
Me too!!
@kevon217
@kevon217 8 ай бұрын
Another great exploration. I always learn so much from your videos and can't thank you enough. Would love to see some complex application demos using the dspy framework.
@mshonle
@mshonle 8 ай бұрын
Just curious: Does KZbin tell you the playback speed used by viewers? I have mine set to x1.5 for basically all videos except music and comedy.
@sndrstpnv8419
@sndrstpnv8419 8 ай бұрын
can you share code example how to do it ?
@sndrstpnv8419
@sndrstpnv8419 7 ай бұрын
do you mean 24:36 with github page with issue discussion ? @@ScottzPlaylists
@sndrstpnv8419
@sndrstpnv8419 7 ай бұрын
so where link to download code @@ScottzPlaylists
@giladmorad4348
@giladmorad4348 8 ай бұрын
Could you cover DSPy as well? Especially the datasets needed for fomenting and optimizing using it.
@Canna_Science_and_Technology
@Canna_Science_and_Technology 7 ай бұрын
Is it feasible to integrate an embedding model directly into the pre-training phase of an LLM? The crux of my proposal is to create a multimodal system where the LLM not only performs its standard tasks but also seamlessly acts as the embedding model as well. This integration would enable the LLM to handle the embedding of user queries more effectively before performing a vector search. The concept is somewhat analogous to digital signal processing (DSP), where the user’s question is dissected into component parts. The LLM would then process each segment individually, constructing a comprehensive context for generating responses.
@corvox2010
@corvox2010 7 ай бұрын
Watch all your video's to the end, to much info not too.
AI State Machines - State Agents - State Spaces explained
38:09
Discover AI
Рет қаралды 3,3 М.
DSPy on ICL RAG Classification: Code explained
28:46
Discover AI
Рет қаралды 5 М.
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 22 МЛН
DSPy explained: No more LangChain PROMPT Templates
53:22
Discover AI
Рет қаралды 19 М.
GEOMETRIC DEEP LEARNING BLUEPRINT
3:33:23
Machine Learning Street Talk
Рет қаралды 181 М.
Essentials of Data Visualization & Business Intelligence with Python - Complete Course
2:03:25
NEW DSPyG: DSPy combined w/ Graph Optimizer in PyG
23:05
Discover AI
Рет қаралды 6 М.
Hypnotized AI and Large Language Model Security
13:22
IBM Technology
Рет қаралды 8 М.
Kubernetes 101 workshop - complete hands-on
3:56:03
Kubesimplify
Рет қаралды 1,6 МЛН
SUPERHUMAN RAG  #ai
31:21
Discover AI
Рет қаралды 16 М.
Simple ideas to improve your RAG (Stanford, Google)
39:31
Discover AI
Рет қаралды 9 М.
[1hr Talk] Intro to Large Language Models
59:48
Andrej Karpathy
Рет қаралды 2,2 МЛН
ChatGPT for Data Analytics: Full Course
3:35:30
Luke Barousse
Рет қаралды 278 М.