r/golang • • Jun 20 '25

discussion Replace Python with Go for LLMs?

Hey,

I really wonder why we are using Python for LLM tasks because there is no crazy benefit vs using Go. At the end it is just calling some LLM and parsing strings. And Go is pretty good in both. Although parsing strings might need more attention.

Why not replacing Python with Go? I can imagine this will happen with big companies in future. Especially to reduce cost.

What are your thoughts here?

113 Upvotes

176 comments sorted by

View all comments

Show parent comment

25

u/erotomania44 Jun 20 '25

Ah another of those “ill build it myself coz im better than all the people who came before “

4

u/DM_ME_YOUR_CATS_PAWS Jun 20 '25

LangChain is also dumb

1

u/havetofindaname Jun 24 '25

Langchain is super bloated. Now pydantic-ai is a solid alternative, but a couple of months ago, you had an absolute ass framework or nothing. Plus, it's not like the mechanism of agents and tools are rocket science. They are, in fact, very straightforward and easy to implement in code.