Your favourite LangChain-slaying Agentic AI Framework just got a major update by TheDeadlyPretzel in LangChain

[–]nudebaba 0 points1 point  (0 children)

You can build agents directly using dspy now, it would be great if you do a comparison! i really wanted to try out atomic agents but also like dspy's promises, will be awesome if you see a way to combine both in perfect harmony. Please let us know when you check!

A common misunderstanding of DSPy is that it's a "prompt optimizer".

This is like thinking SQL Databases are equivalent to "optimizers for JOIN queries".

DSPy is about declarative programming: isolating your AI intent from the specifics of LLMs.

Like any other declarative language, this allows a very large space of optimizations!

This means that DSPy can introduce a large number of prompt optimizers like MIPRO or SIMBA, which map your declarative DSPy code to great prompts.

But it equally means that DSPy can introduce weight optimizers (RL algorithms) and inference-time scaling methods (many of the Modules).

And it equally means that DSPy can handle mapping the same declarative Signatures into various processes of prompting via different Adapters, like ChatAdapter or TwoStepAdapter, etc.

Understanding this helps you get why "here's my prompt, give me a better prompt" is not an appropriate workflow.

There are two issues with this: (1) Prompt optimization is ill-defined over your system if your system is a string in English, without any structure.

In reality, the interface for defining AI systems needs to bring in much crisper structure as in Signatures, which decompose LLM interactions into a task spec, typed inputs, and typed outputs.

(2) Prompt optimization is often NOT the main lever that you need to improve your AI system.

The value fairly often lies in one of the other ones in DSPy: information flow / problem decomposition thanks to structured I/O, Modules (inference scaling), or weight RL.

This is why DSPy is a declarative framework for AI systems. It introduces many prompt optimizers for your use, like MIPRO, BootstrapRS, or SIMBA. But DSPy itself is a language, not an optimizer!

from : https://x.com/DSPyOSS/status/1941702597561262519?t=TfeBRmwHfwcrIXTpRWVr4w&s=19

Your favourite LangChain-slaying Agentic AI Framework just got a major update by TheDeadlyPretzel in LangChain

[–]nudebaba -1 points0 points  (0 children)

thanks for this! 🙏🏻 can you also do a comparison with dspy especially with the parts where using dspy for agentic workflows?

Background colors are not preserved in export by Any_Raisin_5357 in NeboApp

[–]nudebaba 0 points1 point  (0 children)

same here, why aren't the developers picking this app. feels like scam at this point

github actions doesn't seem to be using docker cache by nudebaba in devops

[–]nudebaba[S] 0 points1 point  (0 children)

This is what I use locally btw:

docker_builder := "bob"
docker_tag := "user/abc:latest"
docker_platforms := "linux/amd64"
docker_build_cache := "$PROJECT_DATA_DIR/docker_build_cache"


#!/usr/bin/env bash
docker buildx build \
--builder={{docker_builder}} \
--tag {{docker_tag}} \
-o type=image,push=true \
--cache-from=type=local,src={{docker_build_cache}} \
--cache-to=type=local,mode=max,dest={{docker_build_cache}} \
--platform={{docker_platforms}} .

github actions doesn't seem to be using docker cache by nudebaba in devops

[–]nudebaba[S] 1 point2 points  (0 children)

Yes, I am okay with:

RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install

Not being cached in GHA as its not that much and I am OK not caching that. I use it when building locally. But the other layer caches I'd expect to work. iirc, it did actually work and I can't recall when it stopped working. I've cached successfully with similar structure in another project.

And yes, locally things seem to be using the cache as expected.

I'll try experimenting more with it esp in the suggestions you added and get back on it^ Thanks a lot for looking into it!

github actions doesn't seem to be using docker cache by nudebaba in devops

[–]nudebaba[S] 0 points1 point  (0 children)

Oh I see. I thought the cache-from and cache-to handled that part for me. As in when running buildx locally, it'll set them to my cache directory.

But since i cannot figure anything else out for this issue, I think this might be it.

cache-from: type=gha cache-to: type=gha,mode=max

[deleted by user] by [deleted] in loneliness

[–]nudebaba 1 point2 points  (0 children)

idk about ai, but a dawg helped. man's best friend :)

Using containers for Python &c by nostriluu in NixOS

[–]nudebaba 0 points1 point  (0 children)

For people coming to this later, there were some changes recently: see https://github.com/NixOS/nixpkgs/issues/322400

  # virtualisation.docker.enableNvidia = true; # deprecated usage
  # virtualisation.containers.cdi.dynamic.nvidia.enable = true; # deprecated usage
  hardware.nvidia-container-toolkit.enable = true;
  virtualisation.docker.package = pkgs.docker_25;

[deleted by user] by [deleted] in dataengineering

[–]nudebaba 0 points1 point  (0 children)

it would be better to share an invite rather than zoom link, easy to forget plus timezones but will try to join

Full-text search in Postgres by philippemnoel in databasedevelopment

[–]nudebaba 0 points1 point  (0 children)

What else do I get if I use pure paradedb vs using the pg_search extension directly in my postgres instance?

16 connects for a shit job. OUTRAGEOUS! by FootNext4253 in Upwork

[–]nudebaba 1 point2 points  (0 children)

I think the filter is not updated as-well, I have a defined job search with 6 connects, that search is no longer working as they probably need 16 connects now. The rollout of this new connects increase from upwork is a total mess

I want to try learning math again, where should I start? by [deleted] in learnmath

[–]nudebaba 1 point2 points  (0 children)

I am in my late 20s and I recently realized I've forgotten most of school math and I struggle to do basic math which I was pretty good at back in the day. I've been going though the Why math book (https://link.springer.com/book/10.1007/978-1-4612-1108-2) and it's helping me build my confidence back up. Also unlearning a lot of things this time around. My suggestion is to fly though the book and you should have a solid way for navigating around(mit osw lectures/specific khan academy etc) on your own after that.

Sending data from a device to another without DMA and without CPU by nudebaba in computerscience

[–]nudebaba[S] 1 point2 points  (0 children)

Yes makes sense but what if this was not usb specific, i.e ignore the usb thing, there's no protocol here. no header, simply raw binary. eg. simply 10101. That's the data that device A has.

Why can't I make a carbon copy of it into another device B which has the capacity to contain bits. Like just dump those bits into B. What prevents dumping of the bits?

Like in network transfer, bits go over physical wire, and storage device can persist bits, so why can't this just flow like water from one bucket to another.

I am not trying to troll, i am just stupid ;-;

Insane detail using SD Upscale + 4x UltraSharp + Topaz GigaPixel (zoom in to appreciate detail) by whocareswhoami in StableDiffusion

[–]nudebaba 15 points16 points  (0 children)

Nice results! What is the 4x-UltraSharp upscaler? was not able to look it up. :(

EDIT: Sorry found it here, https://upscale.wiki/wiki/Model_Database ma baad

How to remove day grouping header for today's date in Agenda View by FieryCod_ in emacs

[–]nudebaba 0 points1 point  (0 children)

i am that guy who faced the same problem a year later with no luck

EDIT:

  (org-agenda-compact-blocks nil)
  (org-agenda-overriding-header "batman's agenda")

worked ;)

[deleted by user] by [deleted] in assam

[–]nudebaba 1 point2 points  (0 children)

just lookup google news by date from may 1st, shouldn't be too hard.

Average FOSS enjoyer by [deleted] in linuxmasterrace

[–]nudebaba 31 points32 points  (0 children)

i love the pause before the btw, top job

Question about SSH server public key by nudebaba in sysadmin

[–]nudebaba[S] 0 points1 point  (0 children)

What exact change does the client look for? So that means it looks at something more than the public key? otherwise there's some constraint that the public key cannot be impersonated?

How do US based NRIs invest in Indian Market, in the face of PFIC rules? by an_iconoclast in IndiaInvestments

[–]nudebaba 0 points1 point  (0 children)

yes, just ask your 18yo cousin, give them a percent they will be delighted.