Giter VIP home page Giter VIP logo

mychatgpt's Issues

'llama_index' (unknown location)

ImportError: cannot import name 'download_loader' from 'llama_index' (unknown location)
Traceback:
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\Users\user\Desktop\pyscripttest\PDFGPT\gpt_chatwithPDF\gpt_cust_kb.py", line 1, in
from llama_index import download_loader, SimpleDirectoryReader, ServiceContext, LLMPredictor, GPTVectorStoreIndex, PromptHelper, StorageContext, load_index_from_storage

ValueError: No existing llama_index.storage.kvstore.simple_kvstore found at GPT_INDEXES/None\docstore.json.

Traceback:
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "C:\Users\user\Desktop\pyscripttest\PDFGPT\gpt_chatwithPDF\gpt_cust_kb.py", line 95, in
query_index(query_u=user_input)
File "C:\Users\user\Desktop\pyscripttest\PDFGPT\gpt_chatwithPDF\gpt_cust_kb.py", line 39, in query_index
storage_context = StorageContext.from_defaults(persist_dir=f"{PATH_TO_INDEXES}/{pdf_to_use}")
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\llama_index\storage\storage_context.py", line 58, in from_defaults
docstore = docstore or SimpleDocumentStore.from_persist_dir(persist_dir)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\llama_index\storage\docstore\simple_docstore.py", line 48, in from_persist_dir
return cls.from_persist_path(persist_path, namespace=namespace)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\llama_index\storage\docstore\simple_docstore.py", line 64, in from_persist_path
simple_kvstore = SimpleKVStore.from_persist_path(persist_path)
File "C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\llama_index\storage\kvstore\simple_kvstore.py", line 69, in from_persist_path
raise ValueError(f"No existing {name} found at {persist_path}.")

sgement fault

got segment fault when running:

python -m streamlit run agentic_rag.py

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8501
  Network URL: http://192.168.1.155:8501

  For better performance, install the Watchdog module:

  $ xcode-select --install
  $ pip install watchdog

zsh: segmentation fault  python -m streamlit run agentic_rag.py

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.