gorilla icon indicating copy to clipboard operation
gorilla copied to clipboard

[bug] Hosted Gorilla: <Issue>No module named 'langchain_experimental.text_splitter'

Open bennyji opened this issue 10 months ago • 1 comments

Describe the bug when I run RAFT: python3 raft.py --datapath sample_data/United_States_PDF.pdf --output ./sample_ds4 --distractors 4 --doctype pdf --chunk_size 512 --questions 5 --openai_key OPENAI_KEY there is an error:

Traceback (most recent call last):
  File "raft.py", line 9, in <module>
    from langchain_experimental.text_splitter import SemanticChunker
ModuleNotFoundError: No module named 'langchain_experimental.text_splitter'

To Reproduce Steps to reproduce the behavior: langchain 0.0.354 langchain-community 0.0.20 langchain-core 0.1.23 langchain-experimental 0.0.47 langchain-openai 0.0.6 langcodes 3.3.0 langdetect 1.0.9

bennyji avatar Apr 10 '24 08:04 bennyji

Hi! Please make sure to run pip install -r requirements.txt in the raft directory to install dependencies before running the script.

kaiwen129 avatar Apr 15 '24 03:04 kaiwen129