Readit News logoReadit News
arunmu · a year ago
> No LangChain, no LangGraph, no LlamaIndex, no CrewAI

Bless you. Using these over complicated abstractions (except CrewAI which I haven't yet checked out) never made sense to me. I understand that LLM is no magic wand and there is a need to make it systematic rather than slapping prompts everywhere. But these frameworks are not the solution to it. Next I will be looking at is Microsofts semantic-kernel. Anybody has any good words for it ?

asabla · a year ago
Built a couple of things with Semantic Kernel. Both some private test projects, but also two customer facing applications and one internal.

It's heavily tilted towards OpenAI and it's offerings (either through OpenAI API or through Azure). However, it works decent enough for other alternatives as well, like: huggingface or ollama. Compared to the others (CrewAI etc). I kind of feel like Semantic Kernel hasn't really solved observe ability yet. Sure you can connect what ever logging/metric solution .Net supports, but it's not as seamless like the others. Semantic Kernel is available in .Net, Java and Python. But it's quite obvious .Net is a lot more polished then the others. Python usually gets new features faster, or at least pocs or previews.

Some learnings from it all:

- It's quite easy to get started with

- I like the distinction between native plugins and textbased ones (if a plugin should run code or not)

- There is a feeling of black magic in the background, in the sense of observe ability

- A bit more manual work to get things in order, compared to the alternatives

- Rapid development, it's quite clear the development team from Microsoft is doing a lot of work with this library

All and all, if you feel comfortable with writing C#, then Semantic Kernel is totally a viable option. If you prefer python over anything else, then I would say llamaindex or langchain is probably a better option (for now).

edit: updated some formatting

arunmu · a year ago
Thanks. I would have preferred to use Go instead of Python, but somehow the language is not picking up a lot in terms of new LLM frameworks.

As of now, I am using very light weight abstractions over prompts in python and that gets the job done. But, it is way too early and I can see how pipelining multiple LLM calls would need a good library that is not too complex and involved. In the end it is just a API call and you hope for the best result :)

ActionHank · a year ago
I'm currently building some stuff with SK using csharp.

Biggest gripes are that APIs have been changing quite a bit over time and the documentation isn't exhaustive in describing what is available.

If you're comfortable digging around in the source, looking at their tests and piecing things together it's pretty solid to build off of and is working well for me thus far.

I really like that there is abstraction enough for me to use other LLMs or implement them if need be.

I echo your apprehension around these abstractions and have built closer towards some of OP's patterns.

jackmpcollins · a year ago
I'm working on a very abstraction light package for LLMs called magentic. The goal is to handle the main boilerplate of building with LLMs, but leave the abstractions up to the user. I'd be interested to hear your opinion on it vs others.

https://github.com/jackmpcollins/magentic

digdugdirk · a year ago
Interesting! How does it compare to something like Mirascope? I feel like I'm constantly on the hunt for the slimmest llm interface layer, and mirascope is my most recent attempt.
wildermuthn · a year ago
Check out dspy. It gets out of the way for the most part, while giving optional prompt optimization tooling that future-proofs your work.
mtrofficus · a year ago
I wanted to share a GitHub repository I've started a couple of months ago where I'm implementing, from scratch, the 4 agentic patterns as defined by Andrew Ng: Reflection pattern, Tool pattern, Planning pattern and Multiagent pattern.
lolinder · a year ago
Here's the link to Andrew Ng's letters where he lays these out:

https://www.deeplearning.ai/the-batch/how-agents-can-improve...

This is the first letter, which is an introduction and ends with an index for the letters where he introduces four patterns.

bbor · a year ago
Wow, thanks for sharing, that’s hilarious. Even in the one about “multi agent” systems theres no reference older than 2023.

I know I shouldn’t be shocked by how arrogant the connectionist got with their (arguably unexpected) success, but I can’t help it! They legit act like “AI” is a new phenomenon, which is especially funny for someone like Ng, who’s been an AI celebrity for at least a decade. No hate—his course was my first intro to real ML & AI, like I’m sure it was for many of us. Just a teeny bit of righteous condescension, I guess.

For anyone interested in this kind of stuff, this would be the super-popular first stop: Marvin Minsky’s Society of Mind

https://en.wikipedia.org/wiki/Society_of_Mind

https://courses.media.mit.edu/2016spring/mass63/wp-content/u...

tcdent · a year ago
You put more work into the README than you did the entire codebase.
someoneontenet · a year ago
The readme was the most important part for me!
mtrofficus · a year ago
peace man xD I mean, I didn't want to make a new framework, just try to offer some educational value. But sure, the code needs a refactor! :)
joeblubaugh · a year ago
Is it me, or are the patterns somewhat tautological?
MPSimmons · a year ago
I think the Tool Use is. It would be more accurate and enlightening if it were clear that there were a single agent making the decision on which tool to use, rather than making it look like you're calling one of four tool agents (or if you ARE calling four agents, then the discriminating agent in front of them is being left out).
mtrofficus · a year ago
hey! I thought the diagram was clear, but I can see it's not. Thanks for the advise!! I'll try to change it so that it's clear we are using just one agent :)
asaph · a year ago
typo in title: “patters” should be “patterns”.
mtrofficus · a year ago
ups, you're right. Sorry for that.
throwaway314155 · a year ago
Why Groq?

edit: I'm dumb. Thought Groq was the Elon thing.

mtrofficus · a year ago
They offer a lot of top LLMs for free. That's the reason why. I mean, I'm using llama3.1 fine tuned for tools completely free. That's the reasoning behind haha But you could choose any other. At first I was thinking about Ollama, but Groq came as a great choice.
throwaway314155 · a year ago
Not going to lie, I definitely confused Groq for Grok here.
NitpickLawyer · a year ago
Fast (suited for agents) and generous free tier (14k req/day for 70B models) would be my guess.
mtrofficus · a year ago
Much better explained than my own comment xD

Dead Comment

hu3 · a year ago
Amazing diagrams.

Did you use https://excalidraw.com?

mtrofficus · a year ago
yep!!
racl101 · a year ago
That tool is the bees knees.

Deleted Comment