dkedar7 / embedchain-fastdash

Built with Fast Dash, this app uses Embedchain, which abstracts the entire process of loading and chunking datasets, creating embeddings, and storing them in a vector database. Embedchain itself uses Langchain and OpenAI's ChatGPT API.
https://chatdocs.dkedar.com/
MIT License
55 stars 21 forks source link

Colab fails to import QueryConfig #2

Closed estebanavv closed 9 months ago

estebanavv commented 10 months ago

When executing first block shows:

Installing collected packages: pypika, monotonic, filetype, docx2txt, dash-table, dash-mantine-components, dash-iconify, dash-html-components, dash-core-components, brotli, antlr4-python3-runtime, XlsxWriter, Werkzeug, websockets, uvloop, unstructured.pytesseract, socksio, safetensors, retrying, rapidfuzz, pytube, python-multipart, python-magic, python-iso639, python-dotenv, python-docx, pytesseract, pypdfium2, pypdf, pypandoc, pulsar-client, portalocker, pdf2image, overrides, onnx, omegaconf, olefile, mypy-extensions, marshmallow, langdetect, jedi, hyperframe, humanfriendly, httptools, hpack, h11, emoji, ebooklib, chroma-hnswlib, beautifulsoup4, bcrypt, backoff, ansi2html, aiofiles, youtube-transcript-api, watchfiles, uvicorn, typing-inspect, tiktoken, starlette, python-pptx, posthog, msg-parser, langsmith, iopath, huggingface-hub, httpcore, h2, coloredlogs, tokenizers, pdfminer.six, openai, onnxruntime, httpx, fastapi, dataclasses-json, dash, unstructured, transformers, pdfplumber, langchain, jupyter_dash, dash-bootstrap-components, chromadb, layoutparser, fast-dash, duckduckgo-search, timm, effdet, unstructured-inference, embedchain
  Attempting uninstall: Werkzeug
    Found existing installation: Werkzeug 3.0.0
    Uninstalling Werkzeug-3.0.0:
      Successfully uninstalled Werkzeug-3.0.0
  Attempting uninstall: beautifulsoup4
    Found existing installation: beautifulsoup4 4.11.2
    Uninstalling beautifulsoup4-4.11.2:
      Successfully uninstalled beautifulsoup4-4.11.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
lida 0.0.10 requires kaleido, which is not installed.
llmx 0.0.15a0 requires cohere, which is not installed.
Successfully installed Werkzeug-2.2.3 XlsxWriter-3.1.8 aiofiles-23.2.1 ansi2html-1.8.0 antlr4-python3-runtime-4.9.3 backoff-2.2.1 bcrypt-4.0.1 beautifulsoup4-4.12.2 brotli-1.1.0 chroma-hnswlib-0.7.3 chromadb-0.4.14 coloredlogs-15.0.1 dash-2.14.0 dash-bootstrap-components-1.5.0 dash-core-components-2.0.0 dash-html-components-2.0.0 dash-iconify-0.1.2 dash-mantine-components-0.12.1 dash-table-5.0.0 dataclasses-json-0.5.14 docx2txt-0.8 duckduckgo-search-3.9.3 ebooklib-0.18 effdet-0.4.1 embedchain-0.0.72 emoji-2.8.0 fast-dash-0.2.6 fastapi-0.103.2 filetype-1.2.0 h11-0.14.0 h2-4.1.0 hpack-4.0.0 httpcore-0.18.0 httptools-0.6.1 httpx-0.25.0 huggingface-hub-0.17.3 humanfriendly-10.0 hyperframe-6.0.1 iopath-0.1.10 jedi-0.19.1 jupyter_dash-0.4.2 langchain-0.0.279 langdetect-1.0.9 langsmith-0.0.44 layoutparser-0.3.4 marshmallow-3.20.1 monotonic-1.6 msg-parser-1.2.0 mypy-extensions-1.0.0 olefile-0.46 omegaconf-2.3.0 onnx-1.14.1 onnxruntime-1.15.1 openai-0.27.10 overrides-7.4.0 pdf2image-1.16.3 pdfminer.six-20221105 pdfplumber-0.10.2 portalocker-2.8.2 posthog-3.0.2 pulsar-client-3.3.0 pypandoc-1.12 pypdf-3.16.4 pypdfium2-4.21.0 pypika-0.48.9 pytesseract-0.3.10 python-docx-1.0.1 python-dotenv-1.0.0 python-iso639-2023.6.15 python-magic-0.4.27 python-multipart-0.0.6 python-pptx-0.6.21 pytube-15.0.0 rapidfuzz-3.4.0 retrying-1.3.4 safetensors-0.4.0 socksio-1.0.0 starlette-0.27.0 tiktoken-0.4.0 timm-0.9.7 tokenizers-0.14.1 transformers-4.34.0 typing-inspect-0.9.0 unstructured-0.10.24 unstructured-inference-0.7.7 unstructured.pytesseract-0.3.12 uvicorn-0.23.2 uvloop-0.18.0 watchfiles-0.21.0 websockets-11.0.3 youtube-transcript-api-0.6.1
WARNING: The following packages were previously imported in this runtime:
  [pydevd_plugins]
You must restart the runtime in order to use newly installed versions.

it doesn't matter if restart or not, second block:

ImportError                               Traceback (most recent call last)
[<ipython-input-2-e4d2717a5af4>](https://localhost:8080/#) in <cell line: 5>()
      3 
      4 from embedchain import App
----> 5 from embedchain.config import QueryConfig
      6 
      7 from string import Template

ImportError: cannot import name 'QueryConfig' from 'embedchain.config' (/usr/local/lib/python3.10/dist-packages/embedchain/config/__init__.py)

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
dkedar7 commented 10 months ago

Hi @estebanavv, looks like you are using Embedchain version 0.0.72. You shouldn't see this error if you use 0.0.65 as mentioned in requirements.txt. Could you revise your installation and confirm if it works?

dkedar7 commented 9 months ago

@estebanavv Hoping the above solved your, so closing this.