jlonge4 / mychatgpt Goto Github PK
View Code? Open in Web Editor NEWGPT chat with your docs!
License: Apache License 2.0
GPT chat with your docs!
License: Apache License 2.0
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
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}.")
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
Managed to fix this error by changing
manual_names = os.listdir('C/gpt_indexes')
To:
manual_names = os.listdir('C:/gpt_indexes')
How do you add system messages to the API code ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.