AI DSP: LLM Pipeline to Retriever Model (Stanford)

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

code_your_own_AI

code_your_own_AI

5 ай бұрын

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 5 ай бұрын
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 5 ай бұрын
I watched until the end and loved it. Beautiful stuff! Nobody watches more than a few minutes of my videos either.
@NadaaTaiyab
@NadaaTaiyab 4 ай бұрын
Me too!!
@kevon217
@kevon217 5 ай бұрын
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.
@giladmorad4348
@giladmorad4348 5 ай бұрын
Could you cover DSPy as well? Especially the datasets needed for fomenting and optimizing using it.
@mshonle
@mshonle 5 ай бұрын
Just curious: Does KZfaq 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 5 ай бұрын
can you share code example how to do it ?
@sndrstpnv8419
@sndrstpnv8419 5 ай бұрын
do you mean 24:36 with github page with issue discussion ? @@ScottzPlaylists
@sndrstpnv8419
@sndrstpnv8419 5 ай бұрын
so where link to download code @@ScottzPlaylists
@Canna_Science_and_Technology
@Canna_Science_and_Technology 5 ай бұрын
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 4 ай бұрын
Watch all your video's to the end, to much info not too.
AI State Machines - State Agents - State Spaces explained
38:09
code_your_own_AI
Рет қаралды 3,2 М.
SUPERHUMAN RAG  #ai
31:21
code_your_own_AI
Рет қаралды 16 М.
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 66 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 24 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 32 МЛН
Hypnotized AI and Large Language Model Security
13:22
IBM Technology
Рет қаралды 7 М.
GraphRAG: LLM-Derived Knowledge Graphs for RAG
15:40
Alex Chao
Рет қаралды 89 М.
The dangerous study of self-modifying AIs
16:01
Dr Waku
Рет қаралды 3,6 М.
NEW TextGrad by Stanford: Better than DSPy
41:25
code_your_own_AI
Рет қаралды 9 М.
PEFT LoRA Explained in Detail - Fine-Tune your LLM on your local GPU
40:55
All You Need To Know About Running LLMs Locally
10:30
bycloud
Рет қаралды 124 М.
5 LLM Security Threats- The Future of Hacking?
14:01
All About AI
Рет қаралды 9 М.
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,2 МЛН
Как слушать музыку с помощью чека?
0:36
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 17 МЛН