-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
python312Packages.lang*: update #341921
python312Packages.lang*: update #341921
Conversation
@natsukium do you want me to include those changes ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait up, there are build failures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need langchain-huggingface==0.1.0
as it's rebuilt by these changes and won't accept langchain-core 0.3.0 until it's updated. (Used by langchain-openai and langchain-azure-dynamic sessions at least).
Result of 2 packages marked as broken and skipped:
62 packages failed to build:
6 packages built:
|
Result of 2 packages marked as broken and skipped:
60 packages failed to build:
8 packages built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run nixpkgs-review
to compile the whole thing and fix the packages that broke downstream. At a minimum, you need to update langchain-huggingface
to 0.1.0.
The langchain-sdk update script is deliberately small as very few things depend on it (basically just the cli). The langchain-core update script makes sense for everything else. |
bee63f1
to
2a854ee
Compare
Result of 2 packages marked as broken and skipped:
56 packages failed to build:
12 packages built:
|
Result of 2 packages marked as broken and skipped:
56 packages failed to build:
12 packages built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problems I can see with the build:
- langgraph-checkpoint-1.0.9 now fails testing (
test_serde_jsonplus
). You may need to disable the test as flaky. - langchain-text-splitters-0.3.0 needs dependency
httpx
. Fails at the check import phase. - langchain_chroma-0.1.2 needs to be updated to 0.1.4 (0.1.2 doesn't work with core 0.3.0)
Building may uncover additional issues after these changes.
There is no need for that. That update script was wrong when I left the comment, but it was fixed in the following PR. |
2a854ee
to
f9d1085
Compare
Result of 2 packages marked as broken and skipped:
68 packages built:
|
58ca930
to
db1cd9f
Compare
Result of 2 packages marked as broken and skipped:
68 packages built:
|
Result of 8 packages marked as broken and skipped:
62 packages built:
|
Result of 2 packages marked as broken and skipped:
6 packages failed to build:
62 packages built:
|
What a ride... |
@GaetanLepage thank you! Updating this stuff is indeed a lot of work. |
Note: Once #342114 lands, you can set up an update by typing |
Thanks, this will definitely help ! |
open-webui seems not to be compatible with the 0.3.0 update. |
Does it have some trouble running ? |
Yes when running it produces a very long error message that ends in:
Full logsystemd[1]: Started User-friendly WebUI for LLMs. open-webui[2240831]: Loading WEBUI_SECRET_KEY from file, not provided as an environment variable. open-webui[2240831]: Loading WEBUI_SECRET_KEY from /var/lib/private/open-webui/.webui_secret_key open-webui[2240831]: 2024-09-16 09:13:29.091430825 [W:onnxruntime:Default, onnxruntime_pybind_state.cc:2158 CreateInferencePybindStateModule] Init provider bridge failed. open-webui[2240831]: INFO [alembic.runtime.migration] Context impl SQLiteImpl. open-webui[2240831]: INFO [alembic.runtime.migration] Will assume non-transactional DDL. open-webui[2240831]: INFO [open_webui.env] 'OLLAMA_BASE_URLS' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'ENABLE_OPENAI_API' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'OPENAI_API_KEYS' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'OPENAI_API_BASE_URLS' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'DEFAULT_LOCALE' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entry open-webui[2240831]: WARNI [open_webui.env] open-webui[2240831]: WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS. open-webui[2240831]: INFO [open_webui.env] 'CONTENT_EXTRACTION_ENGINE' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'TIKA_SERVER_URL' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'RAG_TOP_K' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'RAG_RELEVANCE_THRESHOLD' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'ENABLE_RAG_HYBRID_SEARCH' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'RAG_EMBEDDING_ENGINE' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'PDF_EXTRACT_IMAGES' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'RAG_EMBEDDING_MODEL' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2 open-webui[2240831]: INFO [open_webui.env] 'RAG_RERANKING_MODEL' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'CHUNK_SIZE' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'CHUNK_OVERLAP' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'RAG_TEMPLATE' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'YOUTUBE_LOADER_LANGUAGE' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'ENABLE_RAG_WEB_SEARCH' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'RAG_WEB_SEARCH_ENGINE' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'SEARXNG_QUERY_URL' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'GOOGLE_PSE_API_KEY' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'GOOGLE_PSE_ENGINE_ID' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'BRAVE_SEARCH_API_KEY' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'SERPSTACK_API_KEY' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'SERPSTACK_HTTPS' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'SERPER_API_KEY' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'SERPLY_API_KEY' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'TAVILY_API_KEY' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'SEARCHAPI_API_KEY' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'RAG_WEB_SEARCH_RESULT_COUNT' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.env] 'RAG_WEB_SEARCH_CONCURRENT_REQUESTS' loaded from the latest database entry open-webui[2240831]: INFO [open_webui.apps.audio.main] whisper_device_type: cpu open-webui[2240831]: /nix/store/1sj3yh9x75lz3jkzj3bmrs7v3j077vih-python3.12-pydub-0.25.1/lib/python3.12/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work open-webui[2240831]: warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning) open-webui[2240831]: /nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-open-webui-0.3.20/lib/python3.12/site-packages/open_webui/apps/rag/main.py:26: 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. open-webui[2240831]: For example, replace imports like: `from langchain_core.pydantic_v1 import BaseModel` open-webui[2240831]: with: `from pydantic import BaseModel` open-webui[2240831]: 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 open-webui[2240831]: from open_webui.apps.rag.utils import ( open-webui[2240831]: /nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-open-webui-0.3.20/lib/python3.12/site-packages/open_webui open-webui[2240831]: /nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-open-webui-0.3.20/lib/python3.12/site-packages open-webui[2240831]: /nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-open-webui-0.3.20/lib/python3.12 open-webui[2240831]: Running migrations open-webui[2240831]: ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ open-webui[2240831]: │ /nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-open-webui-0.3.20/lib/python3.12 │ open-webui[2240831]: │ /site-packages/open_webui/__init__.py:43 in serve │ open-webui[2240831]: │ │ open-webui[2240831]: │ 40 │ │ │ │ "/usr/local/lib/python3.11/site-packages/nvidia/cudnn/l │ open-webui[2240831]: │ 41 │ │ │ ] │ open-webui[2240831]: │ 42 │ │ ) │ open-webui[2240831]: │ ❱ 43 │ import open_webui.main # we need set environment variables before │ open-webui[2240831]: │ 44 │ │ open-webui[2240831]: │ 45 │ uvicorn.run(open_webui.main.app, host=host, port=port, forwarded_al │ open-webui[2240831]: │ 46 │ open-webui[2240831]: │ │ open-webui[2240831]: │ ╭───── locals ─────╮ │ open-webui[2240831]: │ │ host = '0.0.0.0' │ │ open-webui[2240831]: │ │ port = 3080 │ │ open-webui[2240831]: │ ╰──────────────────╯ │ open-webui[2240831]: │ │ open-webui[2240831]: │ /nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-open-webui-0.3.20/lib/python3.12 │ open-webui[2240831]: │ /site-packages/open_webui/main.py:30 in │ open-webui[2240831]: │ │ open-webui[2240831]: │ 27 │ generate_chat_completion as generate_openai_chat_completion, │ open-webui[2240831]: │ 28 ) │ open-webui[2240831]: │ 29 from open_webui.apps.openai.main import get_all_models as get_openai_ │ open-webui[2240831]: │ ❱ 30 from open_webui.apps.rag.main import app as rag_app │ open-webui[2240831]: │ 31 from open_webui.apps.rag.utils import get_rag_context, rag_template │ open-webui[2240831]: │ 32 from open_webui.apps.socket.main import app as socket_app │ open-webui[2240831]: │ 33 from open_webui.apps.socket.main import get_event_call, get_event_emi │ open-webui[2240831]: │ │ open-webui[2240831]: │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ open-webui[2240831]: │ │ aiohttp = │ │ open-webui[2240831]: │ │ audio_app = │ │ open-webui[2240831]: │ │ base64 = │ │ open-webui[2240831]: │ │ generate_openai_chat_completion = │ │ open-webui[2240831]: │ │ get_ollama_models = │ │ open-webui[2240831]: │ │ get_openai_models = │ │ open-webui[2240831]: │ │ images_app = │ │ open-webui[2240831]: │ │ inspect = │ │ open-webui[2240831]: │ │ openai_app = │ │ open-webui[2240831]: │ │ Optional = typing.Optional │ │ open-webui[2240831]: │ │ os = │ │ open-webui[2240831]: │ │ requests = │ │ open-webui[2240831]: │ │ time = │ │ open-webui[2240831]: │ │ uuid = │ open-webui[2240831]: │ │ open-webui[2240831]: │ 23 from open_webui.apps.rag.search.serply import search_serply │ open-webui[2240831]: │ 24 from open_webui.apps.rag.search.serpstack import search_serpstack │ open-webui[2240831]: │ 25 from open_webui.apps.rag.search.tavily import search_tavily │ open-webui[2240831]: │ ❱ 26 from open_webui.apps.rag.utils import ( │ open-webui[2240831]: │ 27 │ get_embedding_function, │ open-webui[2240831]: │ 28 │ get_model_path, │ open-webui[2240831]: │ 29 │ query_collection, │ open-webui[2240831]: │ │ open-webui[2240831]: │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ open-webui[2240831]: │ │ datetime = │ │ open-webui[2240831]: │ │ Iterator = typing.Iterator │ │ open-webui[2240831]: │ │ json = │ │ open-webui[2240831]: │ │ Path = │ │ open-webui[2240831]: │ │ requests = │ │ open-webui[2240831]: │ │ search_duckduckgo = │ │ open-webui[2240831]: │ │ search_google_pse = │ │ open-webui[2240831]: │ │ search_jina = │ │ open-webui[2240831]: │ │ search_searchapi = │ │ open-webui[2240831]: │ │ search_searxng = │ │ open-webui[2240831]: │ │ search_serper = │ │ open-webui[2240831]: │ │ search_serply = │ │ open-webui[2240831]: │ │ search_serpstack = │ │ open-webui[2240831]: │ │ search_tavily = │ │ open-webui[2240831]: │ │ SearchResult = │ │ open-webui[2240831]: │ │ Sequence = typing.Sequence │ │ open-webui[2240831]: │ │ shutil = │ open-webui[2240831]: │ │ open-webui[2240831]: │ 438 from langchain_core.pydantic_v1 import Extra │ open-webui[2240831]: │ 439 │ open-webui[2240831]: │ 440 │ open-webui[2240831]: │ ❱ 441 class RerankCompressor(BaseDocumentCompressor): │ open-webui[2240831]: │ 442 │ embedding_function: Any │ open-webui[2240831]: │ 443 │ top_n: int │ open-webui[2240831]: │ 444 │ reranking_function: Any │ open-webui[2240831]: │ │ open-webui[2240831]: │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ open-webui[2240831]: │ │ Any = typing.Any │ │ open-webui[2240831]: │ │ BaseDocumentCompressor = │ │ open-webui[2240831]: │ │ ChromaRetriever = │ │ open-webui[2240831]: │ │ generate_ollama_embeddings = │ │ open-webui[2240831]: │ │ generate_openai_batch_embeddings = │ │ open-webui[2240831]: │ │ generate_openai_embeddings = │ │ open-webui[2240831]: │ │ GenerateEmbeddingsForm = │ │ open-webui[2240831]: │ │ get_last_user_message = │ │ open-webui[2240831]: │ │ get_model_path = │ │ open-webui[2240831]: │ │ get_rag_context = │ │ open-webui[2240831]: │ │ log = │ │ open-webui[2240831]: │ │ logging = │ │ open-webui[2240831]: │ │ operator = │ │ open-webui[2240831]: │ │ query_collection = │ │ open-webui[2240831]: │ │ query_collection_with_hybrid_search │ │ open-webui[2240831]: │ │ query_doc = │ │ open-webui[2240831]: │ │ query_doc_with_hybrid_search = │ │ open-webui[2240831]: │ │ rag_template = │ │ open-webui[2240831]: │ │ requests = │ │ open-webui[2240831]: │ │ SRC_LOG_LEVELS = { │ │ open-webui[2240831]: │ │ │ 'AUDIO': 'INFO', │ │ open-webui[2240831]: │ │ │ 'COMFYUI': 'INFO', │ │ open-webui[2240831]: │ │ │ 'CONFIG': 'INFO', │ │ open-webui[2240831]: │ │ │ 'DB': 'INFO', │ │ open-webui[2240831]: │ │ │ 'IMAGES': 'INFO', │ │ open-webui[2240831]: │ │ │ 'MAIN': 'INFO', │ │ open-webui[2240831]: │ │ │ 'MODELS': 'INFO', │ │ open-webui[2240831]: │ │ │ 'OLLAMA': 'INFO', │ │ open-webui[2240831]: │ │ │ 'OPENAI': 'INFO', │ │ open-webui[2240831]: │ │ │ 'RAG': 'INFO', │ │ open-webui[2240831]: │ │ │ ... +1 │ │ open-webui[2240831]: │ │ } │ │ open-webui[2240831]: │ │ Union = typing.Union │ │ open-webui[2240831]: │ ╰──────────────────────────────────────────────────────────────────────────╯ │ open-webui[2240831]: │ │ open-webui[2240831]: │ /nix/store/nxidr3cp1qwggkvcxzbfll8dkc3g3l38-python3.12-pydantic-2.8.2/lib/py │ open-webui[2240831]: │ thon3.12/site-packages/pydantic/_internal/_model_construction.py:205 in │ open-webui[2240831]: │ __new__ │ open-webui[2240831]: │ │ open-webui[2240831]: │ 202 │ │ │ if config_wrapper.frozen and '__hash__' not in namespace: │ open-webui[2240831]: │ 203 │ │ │ │ set_default_hash_func(cls, bases) │ open-webui[2240831]: │ 204 │ │ │ │ open-webui[2240831]: │ ❱ 205 │ │ │ complete_model_class( │ open-webui[2240831]: │ 206 │ │ │ │ cls, │ open-webui[2240831]: │ 207 │ │ │ │ cls_name, │ open-webui[2240831]: │ 208 │ │ │ │ config_wrapper, │ open-webui[2240831]: │ │ open-webui[2240831]: │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ open-webui[2240831]: │ │ _create_model_module = None │ │ open-webui[2240831]: │ │ base_field_names = set() │ │ open-webui[2240831]: │ │ base_private_attributes = {} │ │ open-webui[2240831]: │ │ BaseModel = │ │ open-webui[2240831]: │ │ bases = ( │ │ open-webui[2240831]: │ │ │ │ │ open-webui[2240831]: │ │ cls_name = 'RerankCompressor' │ │ open-webui[2240831]: │ │ config_wrapper = ConfigWrapper(arbitrary_types_allowed=True, │ │ open-webui[2240831]: │ │ extra=) │ │ open-webui[2240831]: │ │ kwargs = {} │ │ open-webui[2240831]: │ │ mcs = , │ │ open-webui[2240831]: │ │ │ , │ │ open-webui[2240831]: │ │ │ , │ │ open-webui[2240831]: │ │ │ │ │ open-webui[2240831]: │ │ ) │ │ open-webui[2240831]: │ │ namespace = { │ │ open-webui[2240831]: │ │ │ '__module__': 'open_webui.apps.rag.utils', │ │ open-webui[2240831]: │ │ │ '__qualname__': 'RerankCompressor', │ │ open-webui[2240831]: │ │ │ '__annotations__': { │ │ open-webui[2240831]: │ │ │ │ 'embedding_function': typing.Any, │ │ open-webui[2240831]: │ │ │ │ 'top_n': , │ │ open-webui[2240831]: │ │ │ │ 'reranking_function': typing.Any, │ │ open-webui[2240831]: │ │ │ │ 'r_score': │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'Config': , │ │ open-webui[2240831]: │ │ │ 'model_config': { │ │ open-webui[2240831]: │ │ │ │ 'arbitrary_types_allowed': True, │ │ open-webui[2240831]: │ │ │ │ 'extra': │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ '__class_vars__': set(), │ │ open-webui[2240831]: │ │ │ '__private_attributes__': {} │ │ open-webui[2240831]: │ │ } │ │ open-webui[2240831]: │ │ parameters = () │ │ open-webui[2240831]: │ │ parent_namespace = { │ │ open-webui[2240831]: │ │ │ '__name__': 'open_webui.apps.rag.utils', │ │ open-webui[2240831]: │ │ │ '__package__': 'open_webui.apps.rag', │ │ open-webui[2240831]: │ │ │ '__loader__': │ │ open-webui[2240831]: │ │ <_frozen_importlib_external.SourceFileLoader │ │ open-webui[2240831]: │ │ object at 0x7fe50458c260>, │ │ open-webui[2240831]: │ │ │ '__spec__': │ │ open-webui[2240831]: │ │ ModuleSpec(name='open_webui.apps.rag.utils', │ │ open-webui[2240831]: │ │ loader=<_frozen_importlib_external.SourceFile… │ │ open-webui[2240831]: │ │ object at 0x7fe50458c260>, │ │ open-webui[2240831]: │ │ origin='/nix/store/k9na1vdi35dfl9jsgpp1azry18… │ │ open-webui[2240831]: │ │ │ '__file__': │ │ open-webui[2240831]: │ │ '/nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-… │ │ open-webui[2240831]: │ │ │ '__cached__': │ │ open-webui[2240831]: │ │ '/nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-… │ │ open-webui[2240831]: │ │ │ '__builtins__': { │ │ open-webui[2240831]: │ │ │ │ '__name__': 'builtins', │ │ open-webui[2240831]: │ │ │ │ '__doc__': 'Built-in functions, types, │ │ open-webui[2240831]: │ │ exceptions, and other objects.\n\nThis module │ │ open-webui[2240831]: │ │ provides '+346, │ │ open-webui[2240831]: │ │ │ │ '__package__': '', │ │ open-webui[2240831]: │ │ │ │ '__loader__': , │ │ open-webui[2240831]: │ │ │ │ '__spec__': │ │ open-webui[2240831]: │ │ ModuleSpec(name='builtins', loader=, │ │ open-webui[2240831]: │ │ origin='built-in'), │ │ open-webui[2240831]: │ │ │ │ '__build_class__': , │ │ open-webui[2240831]: │ │ │ │ '__import__': , │ │ open-webui[2240831]: │ │ │ │ 'abs': , │ │ open-webui[2240831]: │ │ │ │ 'all': , │ │ open-webui[2240831]: │ │ │ │ 'any': , │ │ open-webui[2240831]: │ │ │ │ ... +147 │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'logging': , │ │ open-webui[2240831]: │ │ │ 'Optional': typing.Optional, │ │ open-webui[2240831]: │ │ │ ... +33 │ │ open-webui[2240831]: │ │ } │ │ open-webui[2240831]: │ │ parent_parameters = () │ │ open-webui[2240831]: │ │ private_attributes = {} │ │ open-webui[2240831]: │ │ types_namespace = { │ │ open-webui[2240831]: │ │ │ '__name__': 'open_webui.apps.rag.utils', │ │ open-webui[2240831]: │ │ │ '__doc__': None, │ │ open-webui[2240831]: │ │ │ '__package__': 'open_webui.apps.rag', │ │ open-webui[2240831]: │ │ │ '__loader__': │ │ open-webui[2240831]: │ │ <_frozen_importlib_external.SourceFileLoader │ │ open-webui[2240831]: │ │ object at 0x7fe50458c260>, │ │ open-webui[2240831]: │ │ │ '__spec__': │ │ open-webui[2240831]: │ │ ModuleSpec(name='open_webui.apps.rag.utils', │ │ open-webui[2240831]: │ │ loader=<_frozen_importlib_external.SourceFile… │ │ open-webui[2240831]: │ │ object at 0x7fe50458c260>, │ │ open-webui[2240831]: │ │ origin='/nix/store/k9na1vdi35dfl9jsgpp1azry18… │ │ open-webui[2240831]: │ │ │ '__file__': │ │ open-webui[2240831]: │ │ '/nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-… │ │ open-webui[2240831]: │ │ │ '__cached__': │ │ open-webui[2240831]: │ │ '/nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-… │ │ open-webui[2240831]: │ │ │ '__builtins__': { │ │ open-webui[2240831]: │ │ │ │ '__name__': 'builtins', │ │ open-webui[2240831]: │ │ │ │ '__doc__': 'Built-in functions, types, │ │ open-webui[2240831]: │ │ exceptions, and other objects.\n\nThis module │ │ open-webui[2240831]: │ │ provides '+346, │ │ open-webui[2240831]: │ │ │ │ '__package__': '', │ │ open-webui[2240831]: │ │ │ │ '__loader__': , │ │ open-webui[2240831]: │ │ │ │ '__spec__': │ │ open-webui[2240831]: │ │ ModuleSpec(name='builtins', loader=, │ │ open-webui[2240831]: │ │ origin='built-in'), │ │ open-webui[2240831]: │ │ │ │ '__build_class__': , │ │ open-webui[2240831]: │ │ │ │ '__import__': , │ │ open-webui[2240831]: │ │ │ │ 'abs': , │ │ open-webui[2240831]: │ │ │ │ 'all': , │ │ open-webui[2240831]: │ │ │ │ 'any': , │ │ open-webui[2240831]: │ │ │ │ ... +147 │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'logging': , │ │ open-webui[2240831]: │ │ │ ... +35 │ │ open-webui[2240831]: │ │ } │ │ open-webui[2240831]: │ ╰──────────────────────────────────────────────────────────────────────────╯ │ open-webui[2240831]: │ │ open-webui[2240831]: │ /nix/store/nxidr3cp1qwggkvcxzbfll8dkc3g3l38-python3.12-pydantic-2.8.2/lib/py │ open-webui[2240831]: │ thon3.12/site-packages/pydantic/_internal/_model_construction.py:544 in │ open-webui[2240831]: │ complete_model_class │ open-webui[2240831]: │ │ open-webui[2240831]: │ 541 │ core_config = config_wrapper.core_config(cls) │ open-webui[2240831]: │ 542 │ │ open-webui[2240831]: │ 543 │ try: │ open-webui[2240831]: │ ❱ 544 │ │ schema = gen_schema.clean_schema(schema) │ open-webui[2240831]: │ 545 │ except gen_schema.CollectedInvalid: │ open-webui[2240831]: │ 546 │ │ set_model_mocks(cls, cls_name) │ open-webui[2240831]: │ 547 │ │ return False │ open-webui[2240831]: │ │ open-webui[2240831]: │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ open-webui[2240831]: │ │ cls = │ │ open-webui[2240831]: │ │ cls_name = 'RerankCompressor' │ │ open-webui[2240831]: │ │ config_wrapper = ConfigWrapper(arbitrary_types_allowed=True, │ │ open-webui[2240831]: │ │ extra=) │ │ open-webui[2240831]: │ │ core_config = { │ │ open-webui[2240831]: │ │ │ 'title': 'RerankCompressor', │ │ open-webui[2240831]: │ │ │ 'extra_fields_behavior': │ │ open-webui[2240831]: │ │ } │ │ open-webui[2240831]: │ │ create_model_module = None │ │ open-webui[2240831]: │ │ gen_schema = │ │ open-webui[2240831]: │ │ handler = │ │ open-webui[2240831]: │ │ raise_errors = False │ │ open-webui[2240831]: │ │ schema = { │ │ open-webui[2240831]: │ │ │ 'type': 'model', │ │ open-webui[2240831]: │ │ │ 'cls': , │ │ open-webui[2240831]: │ │ │ 'schema': { │ │ open-webui[2240831]: │ │ │ │ 'type': 'model-fields', │ │ open-webui[2240831]: │ │ │ │ 'fields': { │ │ open-webui[2240831]: │ │ │ │ │ 'embedding_function': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'any'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ │ open-webui[2240831]: │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_… │ │ open-webui[2240831]: │ │ at 0x7fe4ff2f56c0> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ │ 'top_n': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'int'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ │ open-webui[2240831]: │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_… │ │ open-webui[2240831]: │ │ at 0x7fe4ff2f5760> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ │ 'reranking_function': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'any'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ │ open-webui[2240831]: │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_… │ │ open-webui[2240831]: │ │ at 0x7fe4ff2f5800> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ │ 'r_score': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'float'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ │ open-webui[2240831]: │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_… │ │ open-webui[2240831]: │ │ at 0x7fe4ff2f58a0> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ 'model_name': 'RerankCompressor', │ │ open-webui[2240831]: │ │ │ │ 'computed_fields': [] │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'custom_init': False, │ │ open-webui[2240831]: │ │ │ 'root_model': False, │ │ open-webui[2240831]: │ │ │ 'config': { │ │ open-webui[2240831]: │ │ │ │ 'title': 'RerankCompressor', │ │ open-webui[2240831]: │ │ │ │ 'extra_fields_behavior': │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ 'pydantic_js_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ functools.partial(, │ │ open-webui[2240831]: │ │ cls=, │ │ open-webui[2240831]: │ │ title=None), │ │ open-webui[2240831]: │ │ │ │ │ > │ │ open-webui[2240831]: │ │ │ │ ], │ │ open-webui[2240831]: │ │ │ │ 'pydantic_js_annotation_functions': [] │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'ref': │ │ open-webui[2240831]: │ │ 'open_webui.apps.rag.utils.RerankCompressor:10430… │ │ open-webui[2240831]: │ │ } │ │ open-webui[2240831]: │ │ types_namespace = { │ │ open-webui[2240831]: │ │ │ '__name__': 'open_webui.apps.rag.utils', │ │ open-webui[2240831]: │ │ │ '__doc__': None, │ │ open-webui[2240831]: │ │ │ '__package__': 'open_webui.apps.rag', │ │ open-webui[2240831]: │ │ │ '__loader__': │ │ open-webui[2240831]: │ │ <_frozen_importlib_external.SourceFileLoader │ │ open-webui[2240831]: │ │ object at 0x7fe50458c260>, │ │ open-webui[2240831]: │ │ │ '__spec__': │ │ open-webui[2240831]: │ │ ModuleSpec(name='open_webui.apps.rag.utils', │ │ open-webui[2240831]: │ │ loader=<_frozen_importlib_external.SourceFileLoad… │ │ open-webui[2240831]: │ │ object at 0x7fe50458c260>, │ │ open-webui[2240831]: │ │ origin='/nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv… │ │ open-webui[2240831]: │ │ │ '__file__': │ │ open-webui[2240831]: │ │ '/nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-open… │ │ open-webui[2240831]: │ │ │ '__cached__': │ │ open-webui[2240831]: │ │ '/nix/store/k9na1vdi35dfl9jsgpp1azry18p8cv82-open… │ │ open-webui[2240831]: │ │ │ '__builtins__': { │ │ open-webui[2240831]: │ │ │ │ '__name__': 'builtins', │ │ open-webui[2240831]: │ │ │ │ '__doc__': 'Built-in functions, types, │ │ open-webui[2240831]: │ │ exceptions, and other objects.\n\nThis module │ │ open-webui[2240831]: │ │ provides '+346, │ │ open-webui[2240831]: │ │ │ │ '__package__': '', │ │ open-webui[2240831]: │ │ │ │ '__loader__': , │ │ open-webui[2240831]: │ │ │ │ '__spec__': ModuleSpec(name='builtins', │ │ open-webui[2240831]: │ │ loader=, │ │ open-webui[2240831]: │ │ origin='built-in'), │ │ open-webui[2240831]: │ │ │ │ '__build_class__': , │ │ open-webui[2240831]: │ │ │ │ '__import__': , │ │ open-webui[2240831]: │ │ │ │ 'abs': , │ │ open-webui[2240831]: │ │ │ │ 'all': , │ │ open-webui[2240831]: │ │ │ │ 'any': , │ │ open-webui[2240831]: │ │ │ │ ... +147 │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'logging': , │ │ open-webui[2240831]: │ │ │ ... +35 │ │ open-webui[2240831]: │ │ } │ │ open-webui[2240831]: │ │ typevars_map = {} │ │ open-webui[2240831]: │ ╰──────────────────────────────────────────────────────────────────────────╯ │ open-webui[2240831]: │ │ open-webui[2240831]: │ /nix/store/nxidr3cp1qwggkvcxzbfll8dkc3g3l38-python3.12-pydantic-2.8.2/lib/py │ open-webui[2240831]: │ thon3.12/site-packages/pydantic/_internal/_generate_schema.py:452 in │ open-webui[2240831]: │ clean_schema │ open-webui[2240831]: │ │ open-webui[2240831]: │ 449 │ │ if collect_invalid_schemas(schema): │ open-webui[2240831]: │ 450 │ │ │ raise self.CollectedInvalid() │ open-webui[2240831]: │ 451 │ │ schema = _discriminated_union.apply_discriminators(schema) │ open-webui[2240831]: │ ❱ 452 │ │ schema = validate_core_schema(schema) │ open-webui[2240831]: │ 453 │ │ return schema │ open-webui[2240831]: │ 454 │ │ open-webui[2240831]: │ 455 │ def collect_definitions(self, schema: CoreSchema) -> CoreSchema: │ open-webui[2240831]: │ │ open-webui[2240831]: │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ open-webui[2240831]: │ │ schema = { │ │ open-webui[2240831]: │ │ │ 'type': 'model', │ │ open-webui[2240831]: │ │ │ 'cls': , │ │ open-webui[2240831]: │ │ │ 'schema': { │ │ open-webui[2240831]: │ │ │ │ 'type': 'model-fields', │ │ open-webui[2240831]: │ │ │ │ 'fields': { │ │ open-webui[2240831]: │ │ │ │ │ 'embedding_function': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'any'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_update_func at │ │ open-webui[2240831]: │ │ 0x7fe4ff2f56c0> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ │ 'top_n': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'int'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_update_func at │ │ open-webui[2240831]: │ │ 0x7fe4ff2f5760> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ │ 'reranking_function': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'any'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_update_func at │ │ open-webui[2240831]: │ │ 0x7fe4ff2f5800> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ │ 'r_score': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'float'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_update_func at │ │ open-webui[2240831]: │ │ 0x7fe4ff2f58a0> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ 'model_name': 'RerankCompressor', │ │ open-webui[2240831]: │ │ │ │ 'computed_fields': [] │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'custom_init': False, │ │ open-webui[2240831]: │ │ │ 'root_model': False, │ │ open-webui[2240831]: │ │ │ 'config': { │ │ open-webui[2240831]: │ │ │ │ 'title': 'RerankCompressor', │ │ open-webui[2240831]: │ │ │ │ 'extra_fields_behavior': │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ 'pydantic_js_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ functools.partial(, cls=, title=None), │ │ open-webui[2240831]: │ │ │ │ │ > │ │ open-webui[2240831]: │ │ │ │ ], │ │ open-webui[2240831]: │ │ │ │ 'pydantic_js_annotation_functions': [] │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'ref': │ │ open-webui[2240831]: │ │ 'open_webui.apps.rag.utils.RerankCompressor:104306592' │ │ open-webui[2240831]: │ │ } │ │ open-webui[2240831]: │ │ self = │ │ open-webui[2240831]: │ ╰──────────────────────────────────────────────────────────────────────────╯ │ open-webui[2240831]: │ │ open-webui[2240831]: │ /nix/store/nxidr3cp1qwggkvcxzbfll8dkc3g3l38-python3.12-pydantic-2.8.2/lib/py │ open-webui[2240831]: │ thon3.12/site-packages/pydantic/_internal/_core_utils.py:568 in │ open-webui[2240831]: │ validate_core_schema │ open-webui[2240831]: │ │ open-webui[2240831]: │ 565 def validate_core_schema(schema: CoreSchema) -> CoreSchema: │ open-webui[2240831]: │ 566 │ if 'PYDANTIC_SKIP_VALIDATING_CORE_SCHEMAS' in os.environ: │ open-webui[2240831]: │ 567 │ │ return schema │ open-webui[2240831]: │ ❱ 568 │ return _validate_core_schema(schema) │ open-webui[2240831]: │ 569 │ open-webui[2240831]: │ │ open-webui[2240831]: │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ open-webui[2240831]: │ │ schema = { │ │ open-webui[2240831]: │ │ │ 'type': 'model', │ │ open-webui[2240831]: │ │ │ 'cls': , │ │ open-webui[2240831]: │ │ │ 'schema': { │ │ open-webui[2240831]: │ │ │ │ 'type': 'model-fields', │ │ open-webui[2240831]: │ │ │ │ 'fields': { │ │ open-webui[2240831]: │ │ │ │ │ 'embedding_function': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'any'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_update_func at │ │ open-webui[2240831]: │ │ 0x7fe4ff2f56c0> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ │ 'top_n': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'int'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_update_func at │ │ open-webui[2240831]: │ │ 0x7fe4ff2f5760> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ │ 'reranking_function': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'any'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_update_func at │ │ open-webui[2240831]: │ │ 0x7fe4ff2f5800> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ │ 'r_score': { │ │ open-webui[2240831]: │ │ │ │ │ │ 'type': 'model-field', │ │ open-webui[2240831]: │ │ │ │ │ │ 'schema': {'type': 'float'}, │ │ open-webui[2240831]: │ │ │ │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_functions': [], │ │ open-webui[2240831]: │ │ │ │ │ │ │ 'pydantic_js_annotation_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ │ │ │ .json_schema_update_func at │ │ open-webui[2240831]: │ │ 0x7fe4ff2f58a0> │ │ open-webui[2240831]: │ │ │ │ │ │ │ ] │ │ open-webui[2240831]: │ │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ │ } │ │ open-webui[2240831]: │ │ │ │ }, │ │ open-webui[2240831]: │ │ │ │ 'model_name': 'RerankCompressor', │ │ open-webui[2240831]: │ │ │ │ 'computed_fields': [] │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'custom_init': False, │ │ open-webui[2240831]: │ │ │ 'root_model': False, │ │ open-webui[2240831]: │ │ │ 'config': { │ │ open-webui[2240831]: │ │ │ │ 'title': 'RerankCompressor', │ │ open-webui[2240831]: │ │ │ │ 'extra_fields_behavior': │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'metadata': { │ │ open-webui[2240831]: │ │ │ │ 'pydantic_js_functions': [ │ │ open-webui[2240831]: │ │ │ │ │ functools.partial(, cls=, title=None), │ │ open-webui[2240831]: │ │ │ │ │ > │ │ open-webui[2240831]: │ │ │ │ ], │ │ open-webui[2240831]: │ │ │ │ 'pydantic_js_annotation_functions': [] │ │ open-webui[2240831]: │ │ │ }, │ │ open-webui[2240831]: │ │ │ 'ref': │ │ open-webui[2240831]: │ │ 'open_webui.apps.rag.utils.RerankCompressor:104306592' │ │ open-webui[2240831]: │ │ } │ │ open-webui[2240831]: │ ╰──────────────────────────────────────────────────────────────────────────╯ │ open-webui[2240831]: ╰──────────────────────────────────────────────────────────────────────────────╯ open-webui[2240831]: SchemaError: Invalid Schema: open-webui[2240831]: model.config.extra_fields_behavior open-webui[2240831]: Input should be 'allow', 'forbid' or 'ignore' [type=literal_error, open-webui[2240831]: input_value=, input_type=Extra] open-webui[2240831]: For further information visit open-webui[2240831]: https://errors.pydantic.dev/2.8/v/literal_error systemd[1]: open-webui.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: open-webui.service: Failed with result 'exit-code'. systemd[1]: open-webui.service: Consumed 4.763s CPU time, 157.6M memory peak. Upstream has their requirements.txt for langchain set to 0.2 so I assume this is the issue. Also reverting this update fixes the issue. I'm not suggesting to downgrade but mabye we just need to wait till upstream becomes compatible, or if somebody sees the issue we could submit a fix. |
Ok I think I nailed the issue down to an interaction between However there is currently no release with a fix. |
@bachp I'm glad you found the issue. It's helpful if you could file your issue as a new bug, especially as the issue is in |
@bachp |
See #342846 |
@bachp should be fixed now :) |
Description of changes
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.