patterns-ai-core / langchainrb_rails

MIT License
204 stars 21 forks source link

Zeitwerk::NameError #70

Closed AndrewBKang closed 6 months ago

AndrewBKang commented 6 months ago

Hello!

Before getting started thank you for this awesome gem and the amazing work you're doing!!

I'm getting the (Zeitwerk::NameError) that was addressed in langchain rb 10.2 for docker when eagerloading is on for rails.

expected file /usr/local/bundle/ruby/3.2.0/gems/langchainrb-0.9.5/lib/langchain/tool/ruby_code_interpreter/ruby_code_interpreter.rb to define constant Langchain::Tool::RubyCodeInterpreter, but didn't (Zeitwerk::NameError)

I believe this might be because lanchainrb_rails 1.8 is still using 9.5 langchain