brainlid / langchain

Elixir implementation of a LangChain style framework.
https://hexdocs.pm/langchain/
Other
510 stars 58 forks source link

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

Open amokan opened 8 months ago

amokan commented 8 months 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 8 months 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 8 months 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.