Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opea/llm-faqgen-tgi failed to launch #700

Closed
lianhao opened this issue Sep 18, 2024 · 3 comments
Closed

opea/llm-faqgen-tgi failed to launch #700

lianhao opened this issue Sep 18, 2024 · 3 comments

Comments

@lianhao
Copy link
Contributor

lianhao commented Sep 18, 2024

Starting from today, llm-faqgen-tgi failed to launch with the following logs:

Installing collected packages: pydantic-core, pydantic, langsmith, langchain-core, langserve
  Attempting uninstall: langsmith
    Found existing installation: langsmith 0.1.116
    Uninstalling langsmith-0.1.116:
      Successfully uninstalled langsmith-0.1.116
  WARNING: The script langsmith is installed in '/home/user/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Attempting uninstall: langchain-core
    Found existing installation: langchain-core 0.1.52
    Uninstalling langchain-core-0.1.52:
      Successfully uninstalled langchain-core-0.1.52
Successfully installed langchain-core-0.3.1 langserve-0.3.0 langsmith-0.1.121 pydantic-2.9.2 pydantic-core-2.23.4
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.
langchain-community 0.0.38 requires langchain-core<0.2.0,>=0.1.52, but you have langchain-core 0.3.1 which is incompatible.
langchain-text-splitters 0.0.2 requires langchain-core<0.3,>=0.1.28, but you have langchain-core 0.3.1 which is incompatible.
langchain 0.1.16 requires langchain-core<0.2.0,>=0.1.42, but you have langchain-core 0.3.1 which is incompatible.
/home/user/.local/lib/python3.11/site-packages/langchain/chains/combine_documents/__init__.py:3: LangChainDeprecationWarning: As of langchain-core 0.3.0, LangChain uses pydantic v2 internally. The langchain_core.pydantic_v1 module was a compatibility shim for pydantic v1, and should no longer be used. Please update the code to import from Pydantic directly.

For example, replace imports like: `from langchain_core.pydantic_v1 import BaseModel`
with: `from pydantic import BaseModel`
or the v1 compatibility namespace if you are working in a code base that has not been fully upgraded to pydantic 2 yet.         from pydantic.v1 import BaseModel

  from langchain.chains.combine_documents.reduce import (
Traceback (most recent call last):
  File "/home/user/comps/llms/faq-generation/tgi/llm.py", line 7, in <module>
    from langchain.chains.summarize import load_summarize_chain
  File "/home/user/.local/lib/python3.11/site-packages/langchain/chains/summarize/__init__.py", line 8, in <module>
    from langchain.chains.combine_documents.base import BaseCombineDocumentsChain
  File "/home/user/.local/lib/python3.11/site-packages/langchain/chains/combine_documents/__init__.py", line 3, in <module>
    from langchain.chains.combine_documents.reduce import (
  File "/home/user/.local/lib/python3.11/site-packages/langchain/chains/combine_documents/reduce.py", line 124, in <module>
    class ReduceDocumentsChain(BaseCombineDocumentsChain):
  File "/home/user/.local/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 224, in __new__
    complete_model_class(
  File "/home/user/.local/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 587, in complete_model_class
    schema = gen_schema.clean_schema(schema)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 595, in clean_schema
    schema = validate_core_schema(schema)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/pydantic/_internal/_core_utils.py", line 570, in validate_core_schema
    return _validate_core_schema(schema)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.SchemaError: Invalid Schema:
definitions.schema.model.config.extra_fields_behavior
  Input should be 'allow', 'forbid' or 'ignore' [type=literal_error, input_value=<Extra.forbid: 'forbid'>, input_type=Extra]
    For further information visit https://errors.pydantic.dev/2.9/v/literal_error
@lianhao
Copy link
Contributor Author

lianhao commented Sep 18, 2024

comment to take this bug

lianhao added a commit to lianhao/GenAIComps that referenced this issue Sep 18, 2024
Since latest langserve v0.3.0 breaks the llm-faqgen, pin the langserve
version <0.3.0.

Fix bug opea-project#700.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
lianhao added a commit to lianhao/GenAIComps that referenced this issue Sep 18, 2024
Since latest langserve v0.3.0 breaks the llm-faqgen, pin the langserve
version <0.3.0.

Fix bug opea-project#700.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
@lianhao
Copy link
Contributor Author

lianhao commented Sep 18, 2024

This is due to the latest released langserve v0.3.0, langserve v0.2.3 works fine.

lianhao added a commit to lianhao/GenAIComps that referenced this issue Sep 18, 2024
Fix compability issue between latest langserve 0.3.0 and langchain 0.1.16

Fix bug opea-project#700.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
lianhao added a commit to lianhao/GenAIComps that referenced this issue Sep 18, 2024
Fix compability issue between latest langserve 0.3.0 and langchain 0.1.16

Fix bug opea-project#700.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
lianhao added a commit to lianhao/GenAIComps that referenced this issue Sep 18, 2024
Fix compatibility issue between latest langserve 0.3.0 and langchain 0.1.16

Fix bug opea-project#700.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
lianhao added a commit to lianhao/GenAIComps that referenced this issue Sep 18, 2024
Fix compatibility issue between latest langserve 0.3.0 and langchain 0.1.16

Fix bug opea-project#700.

Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
lkk12014402 pushed a commit that referenced this issue Sep 19, 2024
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@lianhao
Copy link
Contributor Author

lianhao commented Sep 19, 2024

closed by PR #704

@lianhao lianhao closed this as completed Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant