Optimization of LLM Systems with DSPy and LangChain/LangSmith

  Рет қаралды 18,983

LangChain

LangChain

Күн бұрын

The most interesting LLM applications are less a single LLM call and more a complex system that relies on multiple LLM calls. Prompt engineering all these LLM calls explicitly can be painful and time consuming.
DSPy pioneered the idea of "optimization" of LLM systems; using automatic evaluation to optimize the instructions, few shot examples, and even the weights.
LangChain and LangSmith are starting to incorporate some of these in an *online* manner.
This video covers why you should think in terms of LLM systems, why optimization can be useful, what components make the most sense to optimize, and how to use DSPy and LangChain/LangSmith to do so.

Пікірлер: 18
@cm_dev
@cm_dev 5 ай бұрын
I appreciate your commitment to posting relevant and informative content on a regular basis!
@istvandarvas3372
@istvandarvas3372 5 ай бұрын
This was so awesome I cannot find the words to describe it. THANKS! Finally, I'm starting to feel like we're heading in the right direction with this DSPY ;) We're beginning to reach a point where AI, serving as an engine, can now be utilized alongside proven, well-developed software engineering principles. These principles are genuinely advanced, underpinned by 50 years of industry experience.
@nqnam12345
@nqnam12345 Ай бұрын
Thanks ! Great , I always had trouble with prompting
@robboerman9378
@robboerman9378 5 ай бұрын
Very informative, thanks for sharing. Is there anywhere I can watch the talk that the slides were originally used for?
@attilavass6935
@attilavass6935 5 ай бұрын
This is great, but my pain is how to use DSPy without going bankrupt :)
@sammathew535
@sammathew535 2 ай бұрын
It does beautiful caching across the system, so it only calls the backend LLM, if you haven't done so, until then!
@ppbroAI
@ppbroAI 5 ай бұрын
Can we use gemini as a bigger model to optimize lesser models?. I mean gemini API is free and its pretty capable
@diallo9149
@diallo9149 5 ай бұрын
very informative , I'll definitely look into it ✌️✌️
@codekiln
@codekiln 2 ай бұрын
World love the slides link!
@waynehawley814
@waynehawley814 5 ай бұрын
Normalize the Audio Next time please... i have to increase the volume by 500%...
@fraternitas5117
@fraternitas5117 5 ай бұрын
why would I use langchain if I had this?
@miguelovallevillamil4953
@miguelovallevillamil4953 5 ай бұрын
IMO and from an application-building perspective, LangChain is necessary since you cant give the final user of your application a DSPy code as frontend. In the video they mention the idea of using DSPy with LangGraph, which I think resonates with what I said preivously ~ rather than seing them as a replacement for each other, they can be used together to build your apps.
@istvandarvas3372
@istvandarvas3372 5 ай бұрын
I think you need both! The small discussion at the end about Keras which is on top of TensorFlow illustrates that the same idea can be integrated. We need 'glue' and we also need higher-level abstraction building blocks for 95% of applications out there. The mariage of LangChain and DSPy fall into this category, in my opinion. Therefore, I am looking forward to learning more about this and am excited to use these higher-level building blocks in a LangChain application. It will speed up development and testing, and at the end of the day, that is what matters most!
@Karl-Asger
@Karl-Asger 5 ай бұрын
I'm wondering the same thing. I only briefly used LangChain, but have bounced around all the different frameworks since then and have been using DSPy for a while now. While I see what Miguel and Vandarvas are saying here, I don't understand what Langchain can do that DSPy can't. The DSPy abstractions are much more peaceful to work with and allow great flexibility. "LangChain is necessary since you cant give the final user of your application a DSPy code as frontend" - not sure if I'm misunderstanding, but when would you give LLM app code as a frontend? Interested to hear more on this. It sounded like Harrison was really pushing the idea of going between LangChain and DSPy, and of course pushing LangSmith as the product which looks very nice I have to say.
@haralc6196
@haralc6196 Ай бұрын
Am I the only one who things that DSPy only sounds nice in concept and probably only work on 3% on all possible GPT use cases, and for the other 97% it's a complete BS?
@marcusandatlas844
@marcusandatlas844 4 ай бұрын
DSPy is pretty cool but Omar *really* needs to work on his communication and presentation skills.
@ivant_true
@ivant_true 5 ай бұрын
it is cool but naming is absolutely terrible!
@maksimhajiyev7857
@maksimhajiyev7857 5 ай бұрын
LangChain and the overall GEN AI is a huge hype , people will get back on track soon. These technology is not stable with huge overhead. It should have been done in low level lang. The problem with AI "revolution" it is dominated with PHDs and data analysts who never did real enterprise soft
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 64 М.
Complete DSPy Tutorial - Master LLM Prompt Programming in 8 amazing examples!
34:42
Neural Breakdown with AVB
Рет қаралды 18 М.
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 3 МЛН
Ozoda - Lada (Official Music Video)
06:07
Ozoda
Рет қаралды 11 МЛН
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Паша Осадчий
Рет қаралды 6 МЛН
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 11 МЛН
NEW TextGrad by Stanford: Better than DSPy
41:25
Discover AI
Рет қаралды 14 М.
Flow Engineering with LangChain/LangGraph and CodiumAI
1:00:23
LangChain
Рет қаралды 17 М.
DSPy and ColBERT with Omar Khattab! - Weaviate Podcast #85
31:26
Weaviate • Vector Database
Рет қаралды 6 М.
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 53 М.
Building long context RAG with RAPTOR from scratch
21:30
LangChain
Рет қаралды 33 М.
DSPy Explained!
54:16
Connor Shorten
Рет қаралды 60 М.
Офицер, я всё объясню
01:00
История одного вокалиста
Рет қаралды 3 МЛН