Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bennyji opened this issue Apr 10, 2024 · 1 comment

Comments

@bennyji
Copy link

bennyji commented Apr 10, 2024

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 bennyji changed the title [bug] Hosted Gorilla: <Issue> [bug] Hosted Gorilla: <Issue>No module named 'langchain_experimental.text_splitter' Apr 10, 2024
@kaiwen129
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants