duplicate this space 之后,构建出错

#78
by liangjw - opened

duplicate this space 使用CPU basic 2cpu 16G free 之后,构建出错,错误如下

Runtime error
ndices/keyword_table/init.py", line 4, in
from llama_index.indices.keyword_table.base import GPTKeywordTableIndex
File "/home/user/.local/lib/python3.8/site-packages/llama_index/indices/keyword_table/base.py", line 17, in
from llama_index.indices.base import BaseGPTIndex, QueryMap
File "/home/user/.local/lib/python3.8/site-packages/llama_index/indices/base.py", line 11, in
from llama_index.indices.query.base import BaseGPTIndexQuery
File "/home/user/.local/lib/python3.8/site-packages/llama_index/indices/query/base.py", line 21, in
from llama_index.indices.postprocessor.node import (
File "/home/user/.local/lib/python3.8/site-packages/llama_index/indices/postprocessor/init.py", line 5, in
from llama_index.indices.postprocessor.node import (
File "/home/user/.local/lib/python3.8/site-packages/llama_index/indices/postprocessor/node.py", line 11, in
from llama_index.indices.service_context import ServiceContext
File "/home/user/.local/lib/python3.8/site-packages/llama_index/indices/service_context.py", line 6, in
from llama_index.indices.prompt_helper import PromptHelper
File "/home/user/.local/lib/python3.8/site-packages/llama_index/indices/prompt_helper.py", line 12, in
from llama_index.langchain_helpers.chain_wrapper import LLMPredictor
File "/home/user/.local/lib/python3.8/site-packages/llama_index/langchain_helpers/chain_wrapper.py", line 6, in
from llama_index.llm_predictor.base import ( # noqa: F401
File "/home/user/.local/lib/python3.8/site-packages/llama_index/llm_predictor/init.py", line 4, in
from llama_index.llm_predictor.base import LLMPredictor
File "/home/user/.local/lib/python3.8/site-packages/llama_index/llm_predictor/base.py", line 12, in
from langchain.schema import BaseLanguageModel
ImportError: cannot import name 'BaseLanguageModel' from 'langchain.schema' (/home/user/.local/lib/python3.8/site-packages/langchain/schema.py)

我也是duplicate後出現相同的錯誤

我也是duplicate後出現相同的錯誤

你解决了没?我在网上尝试搜寻答案,有人说和langchain版本有关

是和langchain版本有关,试了一下改这两个版本可用:
langchain<0.0.150
gradio_client<0.1.1

请问如何改?小白求教程

Sign up or log in to comment