brainlid / langchain

Elixir implementation of an AI focused LangChain style framework.
https://hexdocs.pm/langchain/
Other
652 stars 70 forks source link

Optional dependencies/Behaviour-based 'tools'? #24

Open amokan opened 1 year ago

amokan commented 1 year ago

Given that the crawling effort was merged in (which adds deps for :floki and :crawly) and the existing :abacus dependency, is there a planned effort to make these sorts of deps optional and maybe implement some sort of behaviour to facilitate making things more flexible for consumers of the project?

I'd be willing to help on this if there is interest.

Nothing at all wrong with any of the deps, but not every use-case will need them.

warnero commented 1 year ago

Hasn't been merged yet :). I wasn't sure how to do optional dependencies. And for sure on the behaviour front. Just trying to get stuff working and then fine-tuning.

Definitely think there will be interest.

amokan commented 1 year ago

@warnero Thank you for the heads up! For some reason I thought that was merged. I will try to glance at that PR again later today and add some notes on making the dependencies optional.