TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Getting Started with RAG in DSPy

1 点作者 CShorten超过 1 年前
Hello world, DSPy! I am SUPER excited to share a new video walking through the end-to-end of how to use DSPy to optimize the CIFAR-10 for LLM programs, RAG with FAQs!<p>This tutorial contains 4 major parts: (1) library installation, settings, and creating a dataset with dspy.Example objects, (2) LLM metrics, (3) The DSPy programming model, and (4) Optimization!!<p>We’ll initialize our RAG prompt off with a very simple `Please answer the question based on the context` prompt, and DSPy then optimizes a new description of the task more aligned with the domain of the FAQs, as well as input-output examples from few-shot learning! All guided by the judgement of our LLM metric!<p>If you’ve ever trained a neural network and had the joy of watching your loss function decrease with each epoch, you will enjoy compiling DSPy programs! I haven’t personally been as excited since training my first CIFAR-10 classifier with Keras!<p>It is such an exciting time to be learning about DSPy! I am super grateful to everyone on the DSPy team and members of the DSPy community both on Twitter&#x2F;X and Discord, who have all helped tremendously in developing my understanding of the tool! We are just scratching the surface with DSPy and there is so much more to come! Here is the video, I hope you find it useful!<p>https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=CEuUG4Umfxs

暂无评论

暂无评论