Re:The Problem with LangChain
by forward-slashed on Saturday July 15, 2023 @08:44AM
(#36736106)
Thanks. Have you found good libraries for working with openai api's in clj?
Re:The Problem with LangChain
by StackOverlord on Saturday July 15, 2023 @11:19AM
(#36737597)
According to https://github.com/search?q=language:clojure%20gpt&type=repo...
The most advanced lib for dealing with LLMs is
https://github.com/zmedelis/bosquet
There is also https://github.com/cjbarre/multi-gpt/tree/main but it hasn't been update in 3 months and seems rather basic.
Alternatively, you can shoot me an email at
(->> '(102 117 110 116 97 105 110 64 109 101 46 99 111 109) (map char) (apply str))
and I'll prepare a repo for what I've been working on. It's usable but I wanted to clear some things up before a public release.
(->> '(102 117 110 116 97 105 110 64 109 101 46 99 111 109) (map char) (apply str))
Here's how level-1 functions are defined. 'ctx-fn' is just an indirection macro for 'fn' I haven't really used yet.
Edit: reading what I wrote, 'endpoint' is in fact a function returning function, except that since it's the "end" of the chain, it doesn't take a function to call next as argument.