Code Monkey home page Code Monkey logo

docqa's Introduction

DocQA ๐Ÿค–

image

DocQA ๐Ÿค– is a web application built using Streamlit ๐Ÿ”ฅ and the LangChain ๐Ÿฆœ๐Ÿ”— framework, allowing users to leverage the power of LLMs for Generative Question Answering. ๐ŸŒŸ

Read More Here ๐Ÿ‘‰ https://ai.plainenglish.io/๏ธ-langchain-streamlit-llama-bringing-conversational-ai-to-your-local-machine-a1736252b172

Installation

To run the LangChain web application locally, follow these steps:

Clone this repository ๐Ÿ”—

git clone https://github.com/afaqueumer/DocQA.git

Create Virtual Environment and Install the required dependencies โš™๏ธ

Run โžก๏ธ setup_env.bat 

Launch Streamlit App ๐Ÿš€

Run โžก๏ธ run_app.bat

Usage

Once you have the Streamlit web application up and running, you can perform the following steps:

  1. Upload the Text File.
  2. Once the Text File is loaded as the Vector Store Database it will show a success alert "Document is Loaded".
  3. Insert the question in "Ask" textbox and submit your question for LLM to generate the answer.

Contributing

Contributions to this app are welcome! If you have any ideas, suggestions, or bug fixes, please feel free to open an issue or submit a pull request. We appreciate your contributions.

License

This project is licensed under the MIT License.

๐ŸŽ‰ Thank you ๐Ÿค— Happy question answering! ๐ŸŒŸ

docqa's People

Contributors

afaqueumer avatar pandego avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docqa's Issues

could not install llama cpp python

Hello everybody!!

Can anyone help me with this issue? I tried to setup an environment by launching the batch file : setup env.bat and when pipenv install dependencies, error occures on compiling Llama cpp python.

I followed these steps:

  • git clone https://github.com/afaqueumer/DocQA.git
  • install python 3.9
  • install pipenv
  • install MVC 2017 by downloading with Visual Studio Build Tools C++ Desktop development tools
  • install CMake
  • using Python Debug console
  • launch setup_env.bat

You'll find on following lines alll the details:

when running:

pipenv run pipenv install

the results:

Installing dependencies from Pipfile.lock (ba35ae)...
[pipenv.exceptions.InstallError]: Collecting aiohttp==3.8.5 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 1))
[pipenv.exceptions.InstallError]: Using cached aiohttp-3.8.5-cp39-cp39-win_amd64.whl (327 kB)
[pipenv.exceptions.InstallError]: Collecting aiosignal==1.3.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 2))
[pipenv.exceptions.InstallError]: Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
[pipenv.exceptions.InstallError]: Collecting altair==5.1.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 3))
[pipenv.exceptions.InstallError]: Using cached altair-5.1.1-py3-none-any.whl (520 kB)
[pipenv.exceptions.InstallError]: Collecting anyio==4.0.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 4))
[pipenv.exceptions.InstallError]: Using cached anyio-4.0.0-py3-none-any.whl (83 kB)
[pipenv.exceptions.InstallError]: Collecting async-timeout==4.0.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 5))
[pipenv.exceptions.InstallError]: Using cached async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
[pipenv.exceptions.InstallError]: Collecting attrs==23.1.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 6))
[pipenv.exceptions.InstallError]: Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
[pipenv.exceptions.InstallError]: Collecting backoff==2.2.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 7))
[pipenv.exceptions.InstallError]: Using cached backoff-2.2.1-py3-none-any.whl (15 kB)
[pipenv.exceptions.InstallError]: Collecting bcrypt==4.0.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 8))
[pipenv.exceptions.InstallError]: Using cached bcrypt-4.0.1-cp36-abi3-win_amd64.whl (152 kB)
[pipenv.exceptions.InstallError]: Collecting blinker==1.6.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 9))
[pipenv.exceptions.InstallError]: Using cached blinker-1.6.2-py3-none-any.whl (13 kB)
[pipenv.exceptions.InstallError]: Collecting cachetools==5.3.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 10))
[pipenv.exceptions.InstallError]: Using cached cachetools-5.3.1-py3-none-any.whl (9.3 kB)
[pipenv.exceptions.InstallError]: Collecting charset-normalizer==3.2.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 11))
[pipenv.exceptions.InstallError]: Using cached charset_normalizer-3.2.0-cp39-cp39-win_amd64.whl (96 kB)
[pipenv.exceptions.InstallError]: Collecting chroma-hnswlib==0.7.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 12))
[pipenv.exceptions.InstallError]: Using cached chroma_hnswlib-0.7.3-cp39-cp39-win_amd64.whl (150 kB)
[pipenv.exceptions.InstallError]: Collecting chromadb==0.4.11 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 13))
[pipenv.exceptions.InstallError]: Using cached chromadb-0.4.11-py3-none-any.whl (426 kB)
[pipenv.exceptions.InstallError]: Collecting click==8.1.7 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 14))
[pipenv.exceptions.InstallError]: Using cached click-8.1.7-py3-none-any.whl (97 kB)
[pipenv.exceptions.InstallError]: Collecting colorama==0.4.6 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 15))
[pipenv.exceptions.InstallError]: Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
[pipenv.exceptions.InstallError]: Collecting coloredlogs==15.0.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 16))
[pipenv.exceptions.InstallError]: Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
[pipenv.exceptions.InstallError]: Collecting dataclasses-json==0.5.14 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 17))
[pipenv.exceptions.InstallError]: Using cached dataclasses_json-0.5.14-py3-none-any.whl (26 kB)
[pipenv.exceptions.InstallError]: Collecting diskcache==5.6.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 18))
[pipenv.exceptions.InstallError]: Using cached diskcache-5.6.3-py3-none-any.whl (45 kB)
[pipenv.exceptions.InstallError]: Collecting exceptiongroup==1.1.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 19))
[pipenv.exceptions.InstallError]: Using cached exceptiongroup-1.1.3-py3-none-any.whl (14 kB)
[pipenv.exceptions.InstallError]: Collecting fastapi==0.99.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 20))
[pipenv.exceptions.InstallError]: Using cached fastapi-0.99.1-py3-none-any.whl (58 kB)
[pipenv.exceptions.InstallError]: Collecting flatbuffers==23.5.26 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 21))
[pipenv.exceptions.InstallError]: Using cached flatbuffers-23.5.26-py2.py3-none-any.whl (26 kB)
[pipenv.exceptions.InstallError]: Collecting frozenlist==1.4.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 22))
[pipenv.exceptions.InstallError]: Using cached frozenlist-1.4.0-cp39-cp39-win_amd64.whl (44 kB)
[pipenv.exceptions.InstallError]: Collecting fsspec==2023.9.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 23))
[pipenv.exceptions.InstallError]: Using cached fsspec-2023.9.1-py3-none-any.whl (173 kB)
[pipenv.exceptions.InstallError]: Collecting gitdb==4.0.10 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 24))
[pipenv.exceptions.InstallError]: Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
[pipenv.exceptions.InstallError]: Collecting gitpython==3.1.36 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 25))
[pipenv.exceptions.InstallError]: Using cached GitPython-3.1.36-py3-none-any.whl (189 kB)
[pipenv.exceptions.InstallError]: Collecting greenlet==2.0.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 26))
[pipenv.exceptions.InstallError]: Using cached greenlet-2.0.2-cp39-cp39-win_amd64.whl (192 kB)
[pipenv.exceptions.InstallError]: Collecting h11==0.14.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 27))
[pipenv.exceptions.InstallError]: Using cached h11-0.14.0-py3-none-any.whl (58 kB)
[pipenv.exceptions.InstallError]: Collecting httptools==0.6.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 28))
[pipenv.exceptions.InstallError]: Using cached httptools-0.6.0-cp39-cp39-win_amd64.whl (147 kB)
[pipenv.exceptions.InstallError]: Collecting huggingface-hub==0.16.4 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 29))
[pipenv.exceptions.InstallError]: Using cached huggingface_hub-0.16.4-py3-none-any.whl (268 kB)
[pipenv.exceptions.InstallError]: Collecting humanfriendly==10.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 30))
[pipenv.exceptions.InstallError]: Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
[pipenv.exceptions.InstallError]: Collecting idna==3.4 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 31))
[pipenv.exceptions.InstallError]: Using cached idna-3.4-py3-none-any.whl (61 kB)
[pipenv.exceptions.InstallError]: Collecting importlib-metadata==6.8.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 32))
[pipenv.exceptions.InstallError]: Using cached importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
[pipenv.exceptions.InstallError]: Collecting importlib-resources==6.0.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 33))
[pipenv.exceptions.InstallError]: Using cached importlib_resources-6.0.1-py3-none-any.whl (34 kB)
[pipenv.exceptions.InstallError]: Collecting jinja2==3.1.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 34))
[pipenv.exceptions.InstallError]: Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
[pipenv.exceptions.InstallError]: Collecting jsonschema==4.19.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 35))
[pipenv.exceptions.InstallError]: Using cached jsonschema-4.19.0-py3-none-any.whl (83 kB)
[pipenv.exceptions.InstallError]: Collecting jsonschema-specifications==2023.7.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 36))
[pipenv.exceptions.InstallError]: Using cached jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
[pipenv.exceptions.InstallError]: Collecting langchain==0.0.295 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 37))
[pipenv.exceptions.InstallError]: Using cached langchain-0.0.295-py3-none-any.whl (1.7 MB)
[pipenv.exceptions.InstallError]: Collecting langsmith==0.0.38 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 38))
[pipenv.exceptions.InstallError]: Using cached langsmith-0.0.38-py3-none-any.whl (38 kB)
[pipenv.exceptions.InstallError]: Collecting llama-cpp-python==0.2.6 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 39))
[pipenv.exceptions.InstallError]: Using cached llama_cpp_python-0.2.6.tar.gz (1.6 MB)
[pipenv.exceptions.InstallError]: Installing build dependencies: started
[pipenv.exceptions.InstallError]: Installing build dependencies: finished with status 'done'
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: started
[pipenv.exceptions.InstallError]: Getting requirements to build wheel: finished with status 'done'
[pipenv.exceptions.InstallError]: Installing backend dependencies: started
[pipenv.exceptions.InstallError]: Installing backend dependencies: finished with status 'done'
[pipenv.exceptions.InstallError]: Preparing metadata (pyproject.toml): started
[pipenv.exceptions.InstallError]: Preparing metadata (pyproject.toml): finished with status 'done'
[pipenv.exceptions.InstallError]: Collecting markdown-it-py==3.0.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 40))
[pipenv.exceptions.InstallError]: Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
[pipenv.exceptions.InstallError]: Collecting markupsafe==2.1.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 41))
[pipenv.exceptions.InstallError]: Using cached MarkupSafe-2.1.3-cp39-cp39-win_amd64.whl (17 kB)
[pipenv.exceptions.InstallError]: Collecting marshmallow==3.20.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 42))
[pipenv.exceptions.InstallError]: Using cached marshmallow-3.20.1-py3-none-any.whl (49 kB)
[pipenv.exceptions.InstallError]: Collecting mdurl==0.1.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 43))
[pipenv.exceptions.InstallError]: Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
[pipenv.exceptions.InstallError]: Collecting monotonic==1.6 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 44))
[pipenv.exceptions.InstallError]: Using cached monotonic-1.6-py2.py3-none-any.whl (8.2 kB)
[pipenv.exceptions.InstallError]: Collecting mpmath==1.3.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 45))
[pipenv.exceptions.InstallError]: Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
[pipenv.exceptions.InstallError]: Collecting multidict==6.0.4 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 46))
[pipenv.exceptions.InstallError]: Using cached multidict-6.0.4-cp39-cp39-win_amd64.whl (28 kB)
[pipenv.exceptions.InstallError]: Collecting mypy-extensions==1.0.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 47))
[pipenv.exceptions.InstallError]: Using cached mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB)
[pipenv.exceptions.InstallError]: Collecting numexpr==2.8.6 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 48))
[pipenv.exceptions.InstallError]: Using cached numexpr-2.8.6-cp39-cp39-win_amd64.whl (94 kB)
[pipenv.exceptions.InstallError]: Collecting numpy==1.26.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 49))
[pipenv.exceptions.InstallError]: Using cached numpy-1.26.0-cp39-cp39-win_amd64.whl (15.8 MB)
[pipenv.exceptions.InstallError]: Collecting onnxruntime==1.16.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 50))
[pipenv.exceptions.InstallError]: Using cached onnxruntime-1.16.0-cp39-cp39-win_amd64.whl (7.2 MB)
[pipenv.exceptions.InstallError]: Collecting overrides==7.4.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 51))
[pipenv.exceptions.InstallError]: Using cached overrides-7.4.0-py3-none-any.whl (17 kB)
[pipenv.exceptions.InstallError]: Collecting packaging==23.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 52))
[pipenv.exceptions.InstallError]: Using cached packaging-23.1-py3-none-any.whl (48 kB)
[pipenv.exceptions.InstallError]: Collecting pandas==2.1.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 53))
[pipenv.exceptions.InstallError]: Using cached pandas-2.1.0-cp39-cp39-win_amd64.whl (11.2 MB)
[pipenv.exceptions.InstallError]: Collecting pillow==9.5.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 54))
[pipenv.exceptions.InstallError]: Using cached Pillow-9.5.0-cp39-cp39-win_amd64.whl (2.5 MB)
[pipenv.exceptions.InstallError]: Collecting posthog==3.0.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 55))
[pipenv.exceptions.InstallError]: Using cached posthog-3.0.2-py2.py3-none-any.whl (37 kB)
[pipenv.exceptions.InstallError]: Collecting protobuf==4.24.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 56))
[pipenv.exceptions.InstallError]: Using cached protobuf-4.24.3-cp39-cp39-win_amd64.whl (430 kB)
[pipenv.exceptions.InstallError]: Collecting pulsar-client==3.3.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 57))
[pipenv.exceptions.InstallError]: Using cached pulsar_client-3.3.0-cp39-cp39-win_amd64.whl (3.4 MB)
[pipenv.exceptions.InstallError]: Collecting pyarrow==13.0.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 58))
[pipenv.exceptions.InstallError]: Using cached pyarrow-13.0.0-cp39-cp39-win_amd64.whl (24.4 MB)
[pipenv.exceptions.InstallError]: Collecting pydantic==1.10.12 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 59))
[pipenv.exceptions.InstallError]: Using cached pydantic-1.10.12-cp39-cp39-win_amd64.whl (2.2 MB)
[pipenv.exceptions.InstallError]: Collecting pydeck==0.8.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 60))
[pipenv.exceptions.InstallError]: Using cached pydeck-0.8.0-py2.py3-none-any.whl (4.7 MB)
[pipenv.exceptions.InstallError]: Collecting pygments==2.16.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 61))
[pipenv.exceptions.InstallError]: Using cached Pygments-2.16.1-py3-none-any.whl (1.2 MB)
[pipenv.exceptions.InstallError]: Collecting pympler==1.0.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 62))
[pipenv.exceptions.InstallError]: Using cached Pympler-1.0.1-py3-none-any.whl (164 kB)
[pipenv.exceptions.InstallError]: Collecting pypika==0.48.9 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 63))
[pipenv.exceptions.InstallError]: Using cached PyPika-0.48.9-py2.py3-none-any.whl
[pipenv.exceptions.InstallError]: Collecting pyreadline3==3.4.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 64))
[pipenv.exceptions.InstallError]: Using cached pyreadline3-3.4.1-py3-none-any.whl (95 kB)
[pipenv.exceptions.InstallError]: Collecting python-dateutil==2.8.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 65))
[pipenv.exceptions.InstallError]: Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
[pipenv.exceptions.InstallError]: Collecting python-dotenv==1.0.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 66))
[pipenv.exceptions.InstallError]: Using cached python_dotenv-1.0.0-py3-none-any.whl (19 kB)
[pipenv.exceptions.InstallError]: Collecting pytz==2023.3.post1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 67))
[pipenv.exceptions.InstallError]: Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
[pipenv.exceptions.InstallError]: Collecting pytz-deprecation-shim==0.1.0.post0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 68))
[pipenv.exceptions.InstallError]: Using cached pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
[pipenv.exceptions.InstallError]: Collecting pyyaml==6.0.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 69))
[pipenv.exceptions.InstallError]: Using cached PyYAML-6.0.1-cp39-cp39-win_amd64.whl (152 kB)
[pipenv.exceptions.InstallError]: Collecting referencing==0.30.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 70))
[pipenv.exceptions.InstallError]: Using cached referencing-0.30.2-py3-none-any.whl (25 kB)
[pipenv.exceptions.InstallError]: Collecting requests==2.31.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 71))
[pipenv.exceptions.InstallError]: Using cached requests-2.31.0-py3-none-any.whl (62 kB)
[pipenv.exceptions.InstallError]: Collecting rich==13.5.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 72))
[pipenv.exceptions.InstallError]: Using cached rich-13.5.3-py3-none-any.whl (239 kB)
[pipenv.exceptions.InstallError]: Collecting rpds-py==0.10.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 73))
[pipenv.exceptions.InstallError]: Using cached rpds_py-0.10.3-cp39-none-win_amd64.whl (186 kB)
[pipenv.exceptions.InstallError]: Collecting six==1.16.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 74))
[pipenv.exceptions.InstallError]: Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
[pipenv.exceptions.InstallError]: Collecting smmap==5.0.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 75))
[pipenv.exceptions.InstallError]: Using cached smmap-5.0.1-py3-none-any.whl (24 kB)
[pipenv.exceptions.InstallError]: Collecting sniffio==1.3.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 76))
[pipenv.exceptions.InstallError]: Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
[pipenv.exceptions.InstallError]: Collecting sqlalchemy==2.0.21 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 77))
[pipenv.exceptions.InstallError]: Using cached SQLAlchemy-2.0.21-cp39-cp39-win_amd64.whl (2.0 MB)
[pipenv.exceptions.InstallError]: Collecting starlette==0.27.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 78))
[pipenv.exceptions.InstallError]: Using cached starlette-0.27.0-py3-none-any.whl (66 kB)
[pipenv.exceptions.InstallError]: Collecting streamlit==1.26.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 79))
[pipenv.exceptions.InstallError]: Using cached streamlit-1.26.0-py2.py3-none-any.whl (8.1 MB)
[pipenv.exceptions.InstallError]: Collecting sympy==1.12 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 80))
[pipenv.exceptions.InstallError]: Using cached sympy-1.12-py3-none-any.whl (5.7 MB)
[pipenv.exceptions.InstallError]: Collecting tenacity==8.2.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 81))
[pipenv.exceptions.InstallError]: Using cached tenacity-8.2.3-py3-none-any.whl (24 kB)
[pipenv.exceptions.InstallError]: Collecting tokenizers==0.14.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 82))
[pipenv.exceptions.InstallError]: Using cached tokenizers-0.14.0-cp39-none-win_amd64.whl (2.2 MB)
[pipenv.exceptions.InstallError]: Collecting toml==0.10.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 83))
[pipenv.exceptions.InstallError]: Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
[pipenv.exceptions.InstallError]: Collecting toolz==0.12.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 84))
[pipenv.exceptions.InstallError]: Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
[pipenv.exceptions.InstallError]: Collecting tornado==6.3.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 85))
[pipenv.exceptions.InstallError]: Using cached tornado-6.3.3-cp38-abi3-win_amd64.whl (429 kB)
[pipenv.exceptions.InstallError]: Collecting tqdm==4.66.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 86))
[pipenv.exceptions.InstallError]: Using cached tqdm-4.66.1-py3-none-any.whl (78 kB)
[pipenv.exceptions.InstallError]: Collecting typer==0.9.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 87))
[pipenv.exceptions.InstallError]: Using cached typer-0.9.0-py3-none-any.whl (45 kB)
[pipenv.exceptions.InstallError]: Collecting typing-extensions==4.8.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 88))
[pipenv.exceptions.InstallError]: Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
[pipenv.exceptions.InstallError]: Collecting typing-inspect==0.9.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 89))
[pipenv.exceptions.InstallError]: Using cached typing_inspect-0.9.0-py3-none-any.whl (8.8 kB)
[pipenv.exceptions.InstallError]: Collecting tzdata==2023.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 90))
[pipenv.exceptions.InstallError]: Using cached tzdata-2023.3-py2.py3-none-any.whl (341 kB)
[pipenv.exceptions.InstallError]: Collecting tzlocal==4.3.1 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 91))
[pipenv.exceptions.InstallError]: Using cached tzlocal-4.3.1-py3-none-any.whl (20 kB)
[pipenv.exceptions.InstallError]: Collecting urllib3==2.0.5 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 92))
[pipenv.exceptions.InstallError]: Using cached urllib3-2.0.5-py3-none-any.whl (123 kB)
[pipenv.exceptions.InstallError]: Collecting uvicorn[standard]==0.23.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 93))
[pipenv.exceptions.InstallError]: Using cached uvicorn-0.23.2-py3-none-any.whl (59 kB)
[pipenv.exceptions.InstallError]: Collecting validators==0.22.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 94))
[pipenv.exceptions.InstallError]: Using cached validators-0.22.0-py3-none-any.whl (26 kB)
[pipenv.exceptions.InstallError]: Collecting watchdog==3.0.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 95))
[pipenv.exceptions.InstallError]: Using cached watchdog-3.0.0-py3-none-win_amd64.whl (82 kB)
[pipenv.exceptions.InstallError]: Collecting watchfiles==0.20.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 96))
[pipenv.exceptions.InstallError]: Using cached watchfiles-0.20.0-cp37-abi3-win_amd64.whl (276 kB)
[pipenv.exceptions.InstallError]: Collecting websockets==11.0.3 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 97))
[pipenv.exceptions.InstallError]: Using cached websockets-11.0.3-cp39-cp39-win_amd64.whl (124 kB)
[pipenv.exceptions.InstallError]: Collecting yarl==1.9.2 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 98))
[pipenv.exceptions.InstallError]: Using cached yarl-1.9.2-cp39-cp39-win_amd64.whl (61 kB)
[pipenv.exceptions.InstallError]: Collecting zipp==3.17.0 (from -r c:\users\probook\appdata\local\temp\pipenv-gciu71pe-requirements\pipenv-mqj6zt6k-hashed-reqs.txt (line 99))
[pipenv.exceptions.InstallError]: Using cached zipp-3.17.0-py3-none-any.whl (7.4 kB)
[pipenv.exceptions.InstallError]: Building wheels for collected packages: llama-cpp-python
[pipenv.exceptions.InstallError]: Building wheel for llama-cpp-python (pyproject.toml): started
[pipenv.exceptions.InstallError]: Building wheel for llama-cpp-python (pyproject.toml): finished with status 'error'
[pipenv.exceptions.InstallError]: Failed to build llama-cpp-python
[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: ร— Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
[pipenv.exceptions.InstallError]: โ”‚ exit code: 1
[pipenv.exceptions.InstallError]: โ•ฐโ”€> [20 lines of output]
[pipenv.exceptions.InstallError]: *** scikit-build-core 0.5.0 using CMake 3.27.5 (wheel)
[pipenv.exceptions.InstallError]: *** Configuring CMake...
[pipenv.exceptions.InstallError]: 2023-09-20 15:53:07,828 - scikit_build_core - WARNING - Can't find a Python library, got libdir=None, ldlibrary=None, multiarch=None, masd=None
[pipenv.exceptions.InstallError]: loading initial cache file C:\Users\PROBOOK\AppData\Local\Temp\tmpd7df1ntj\build\CMakeInit.txt
[pipenv.exceptions.InstallError]: -- Building for: Visual Studio 17 2022
[pipenv.exceptions.InstallError]: -- The C compiler identification is unknown
[pipenv.exceptions.InstallError]: -- The CXX compiler identification is unknown
[pipenv.exceptions.InstallError]: CMake Error at CMakeLists.txt:3 (project):
[pipenv.exceptions.InstallError]: No CMAKE_C_COMPILER could be found.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: CMake Error at CMakeLists.txt:3 (project):
[pipenv.exceptions.InstallError]: No CMAKE_CXX_COMPILER could be found.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: -- Configuring incomplete, errors occurred!
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: *** CMake configuration failed
[pipenv.exceptions.InstallError]: [end of output]
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem with pip.
[pipenv.exceptions.InstallError]: ERROR: Failed building wheel for llama-cpp-python
[pipenv.exceptions.InstallError]: ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects
ERROR: Couldn't install package: {}
Package installation failed...
C:\Users\PROBOOK\AppData\Local\Programs\Python\Python39\lib\subprocess.py:1052: ResourceWarning: subprocess 9876 is still running
_warn("subprocess %s is still running" % self.pid,
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=5 encoding='utf-8'>
ResourceWarning: Enable tracemalloc to get the object allocation traceback
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=6 encoding='utf-8'>

Could not load Llama model from path

52, in _run_script
exec(code, module.dict)
File "C:\Users\mauri\Downloads\DocQA-main\DocQA-main\app.py", line 42, in
llm = LlamaCpp(model_path="./models/llama-7b.ggmlv3.q4_0.bin")
File "C:\Users\mauri\Downloads\DocQA-main\DocQA-main\venv\lib\site-packages\langchain\load\serializable.py", line 74, in init
super().init(**kwargs)
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for LlamaCpp
root
Could not load Llama model from path: ./models/llama-7b.ggmlv3.q4_0.bin. Received error Model path does not exist: ./models/llama-7b.ggmlv3.q4_0.bin (type=value_error)

What version of python are you using?

Could not load Llama model

I tried running this application in windows and ubuntu but getting the same error.

Can someone suggest whats wrong here?

File "/home/soft/.local/share/virtualenvs/DocQA-YcyGHhWa/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "/home/soft/Mine/fakellm/DocQA/app.py", line 42, in
llm = LlamaCpp(model_path="./models/llama-7b.ggmlv3.q4_0.bin")
File "/home/soft/.local/share/virtualenvs/DocQA-YcyGHhWa/lib/python3.9/site-packages/langchain/load/serializable.py", line 75, in init
super().init(**kwargs)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for LlamaCpp
root
Could not load Llama model from path: ./models/llama-7b.ggmlv3.q4_0.bin. Received error (type=value_error)

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.