Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
emil14
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
emil14
2y ago
Short guide explains `-p, -parallel, and t.Parallel()` in Go programming language for parallel testing
2.
▲
by
emil14
3y ago
1) You said about process but pointed to operation 2) What wrapping would you add out there? (Wrapping must be added in provider's implementations though) 3) No, user shouldn't and can't handle errors by implementing operatio
3.
▲
by
emil14
3y ago
> you add additional non-openai providers. 100% will do, just not for the initial release > fwiw I really like agency's interceptor funcs, good place to add tracing, metrics, logging, etc. thank u much, glad to hear it :)
4.
▲
by
emil14
3y ago
Think of ORM for LLMs. That's not the whole purpose of "langchain-like" frameworks but on that is easy to grasp
5.
▲
by
emil14
3y ago
> Using someone else's abstractions for your entire workflow is a nice way of making a hackathon project We use someone else's abstractions all the time, when they are good :) Think of reactjs, expressjs, django, etc. > Abst
6.
▲
by
emil14
3y ago
UPD: bug with temperature fixed in master
7.
▲
by
emil14
3y ago
We think that too! Agency won't have implicit prompts. Or at least without explicit and easy way to override them
8.
▲
by
emil14
3y ago
I think the intention behind langchain is good, but the implementation suffers from bad design. We tried to fix that by having small core with as less abstractions as possible.
9.
▲
by
emil14
3y ago
1) your 30 lines could become 10 lines or something 2) you can write abstract code without explicit dependency on openai and easely switch to e.g. anthropic in future without rewriting the whole thing (think of ORM for LLMs) 3) ready to use
10.
▲
by
emil14
3y ago
yeah but it's not go (and go-centric)
11.
▲
by
emil14
3y ago
1) Thank you for pointing the moment with 0 temp, I think we can make `agency.TextToTextParams{Temperature *int}` where nil gonna be passed down like `0` and 0 gonna be mapped to `math.SmallestNonzeroFloat32`. We also will add the ability t
12.
▲
by
emil14
3y ago
Correct me if I'm wrong but looks like this is a helper-utility to work with openai API. Agency on the other hand gives you tools to abstract away such things and write high level code
13.
▲
by
emil14
3y ago
Actually error handling is much easier with agency's Processes (pipelines) Instead of writing: result, err := operationFoo(userInput) if err != nil { panic(err } result, err = operationBar(result) if err != nil { panic(err } You can cr
14.
▲
by
emil14
3y ago
Thank you for your comment :) Why do you think that "method chaining is not really idiomatic" or how this should be implemented?
15.
▲
by
emil14
3y ago
Thank you, fixed, MIT license added
16.
▲
by
emil14
3y ago
Small core, simple api, openai bindings
17.
▲
Agency: Pure Go LangChain Alternative
(github.com)
77 points
by
emil14
3y ago
|
39 comments
18.
▲
Ton Syncer Written in Go
(github.com)
3 points
by
emil14
3y ago
|
1 comments
19.
▲
by
emil14
3y ago
Service and a library written in Go that allows you to synchronize transaction history of specified accounts.