News for hackers. Stuff that matters.
Re:Agency: Pure Go LangChain Alternative by itake on Monday November 27, 2023 @09:40PM (#38441625)
Unfortunately, you're using sashabaranov/go-openai, which has different api behavior than the official langchain python package [0].

I was hoping this would be a drop in replacement for langchain (so DS ppl can code in python and gophers can port it to production).

[0] - https://github.com/sashabaranov/go-openai#why-dont-we-get-th...

Re:Agency: Pure Go LangChain Alternative by emil14 on Tuesday November 28, 2023 @04:28AM (#38444021)
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 to use seeds though

2) "I was hoping this would be a drop in replacement for langchain" - why don't use use langchaingo then? The thing is - we don't like langchain much. To is it looks too complex, we thing we can do better, simpler. The final goal is to make a library that can replace langchain and/or autogen but it's definitely not gonna be "drop-in" replacement

Re:Agency: Pure Go LangChain Alternative by emil14 on Tuesday November 28, 2023 @10:42AM (#38446887)
UPD: bug with temperature fixed in master
Re:Agency: Pure Go LangChain Alternative by traviscline on Thursday November 30, 2023 @11:49AM (#38475739)
You might be interested in https://github.com/tmc/langchaingo which adheres to some of the conceptual modeling in langchain.