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

python312Packages.lang*: update #341921

Merged
merged 15 commits into from
Sep 15, 2024
Merged

python312Packages.lang*: update #341921

merged 15 commits into from
Sep 15, 2024

Conversation

GaetanLepage
Copy link
Contributor

@GaetanLepage GaetanLepage commented Sep 14, 2024

Description of changes

  • python312Packages.langgraph: 0.2.19 -> 0.2.21
  • python312Packages.langgraph-checkpoint-sqlite: 1.0.2 -> 1.0.3
  • python312Packages.langchain-core: 0.2.38 -> 0.3.0
  • python312Packages.langchain-text-splitters: 0.2.4 -> 0.3.0
  • python312Packages.langchain: 0.2.16 -> 0.3.0
  • python312Packages.langchain-community: 0.2.16 -> 0.3.0
  • python312Packages.langsmith: 0.1.99 -> 0.1.120

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@GaetanLepage GaetanLepage requested review from natsukium, drupol and fabaff and removed request for drupol September 14, 2024 22:19
@GaetanLepage
Copy link
Contributor Author

@natsukium do you want me to include those changes ?

Copy link
Contributor

@sarahec sarahec left a 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.

Copy link
Contributor

@sarahec sarahec left a 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).

@sarahec
Copy link
Contributor

sarahec commented Sep 14, 2024

Result of nixpkgs-review pr 341921 run on aarch64-darwin 1

2 packages marked as broken and skipped:
  • khoj
  • khoj.dist
62 packages failed to build:
  • open-webui
  • open-webui.dist
  • pentestgpt
  • pentestgpt.dist
  • python311Packages.langchain
  • python311Packages.langchain-aws
  • python311Packages.langchain-aws.dist
  • python311Packages.langchain-azure-dynamic-sessions
  • python311Packages.langchain-azure-dynamic-sessions.dist
  • python311Packages.langchain-chroma
  • python311Packages.langchain-chroma.dist
  • python311Packages.langchain-community
  • python311Packages.langchain-community.dist
  • python311Packages.langchain-core
  • python311Packages.langchain-core.dist
  • python311Packages.langchain-huggingface
  • python311Packages.langchain-huggingface.dist
  • python311Packages.langchain-mongodb
  • python311Packages.langchain-mongodb.dist
  • python311Packages.langchain-openai
  • python311Packages.langchain-openai.dist
  • python311Packages.langchain-standard-tests
  • python311Packages.langchain-standard-tests.dist
  • python311Packages.langchain-text-splitters
  • python311Packages.langchain-text-splitters.dist
  • python311Packages.langchain.dist
  • python311Packages.langgraph
  • python311Packages.langgraph-checkpoint
  • python311Packages.langgraph-checkpoint-postgres
  • python311Packages.langgraph-checkpoint-postgres.dist
  • python311Packages.langgraph-checkpoint-sqlite
  • python311Packages.langgraph-checkpoint-sqlite.dist
  • python311Packages.langgraph-checkpoint.dist
  • python311Packages.langgraph.dist
  • python312Packages.langchain
  • python312Packages.langchain-aws
  • python312Packages.langchain-aws.dist
  • python312Packages.langchain-azure-dynamic-sessions
  • python312Packages.langchain-azure-dynamic-sessions.dist
  • python312Packages.langchain-chroma
  • python312Packages.langchain-chroma.dist
  • python312Packages.langchain-community
  • python312Packages.langchain-community.dist
  • python312Packages.langchain-huggingface
  • python312Packages.langchain-huggingface.dist
  • python312Packages.langchain-mongodb
  • python312Packages.langchain-mongodb.dist
  • python312Packages.langchain-openai
  • python312Packages.langchain-openai.dist
  • python312Packages.langchain-standard-tests
  • python312Packages.langchain-standard-tests.dist
  • python312Packages.langchain-text-splitters
  • python312Packages.langchain-text-splitters.dist
  • python312Packages.langchain.dist
  • python312Packages.langgraph
  • python312Packages.langgraph-checkpoint
  • python312Packages.langgraph-checkpoint-postgres
  • python312Packages.langgraph-checkpoint-postgres.dist
  • python312Packages.langgraph-checkpoint-sqlite
  • python312Packages.langgraph-checkpoint-sqlite.dist
  • python312Packages.langgraph-checkpoint.dist
  • python312Packages.langgraph.dist
6 packages built:
  • python311Packages.langsmith
  • python311Packages.langsmith.dist
  • python312Packages.langchain-core
  • python312Packages.langchain-core.dist
  • python312Packages.langsmith
  • python312Packages.langsmith.dist

@sarahec
Copy link
Contributor

sarahec commented Sep 14, 2024

Result of nixpkgs-review pr 341921 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • khoj
  • khoj.dist
60 packages failed to build:
  • open-webui
  • open-webui.dist
  • pentestgpt
  • pentestgpt.dist
  • python311Packages.langchain
  • python311Packages.langchain-aws
  • python311Packages.langchain-aws.dist
  • python311Packages.langchain-azure-dynamic-sessions
  • python311Packages.langchain-azure-dynamic-sessions.dist
  • python311Packages.langchain-chroma
  • python311Packages.langchain-chroma.dist
  • python311Packages.langchain-community
  • python311Packages.langchain-community.dist
  • python311Packages.langchain-huggingface
  • python311Packages.langchain-huggingface.dist
  • python311Packages.langchain-mongodb
  • python311Packages.langchain-mongodb.dist
  • python311Packages.langchain-openai
  • python311Packages.langchain-openai.dist
  • python311Packages.langchain-standard-tests
  • python311Packages.langchain-standard-tests.dist
  • python311Packages.langchain-text-splitters
  • python311Packages.langchain-text-splitters.dist
  • python311Packages.langchain.dist
  • python311Packages.langgraph
  • python311Packages.langgraph-checkpoint
  • python311Packages.langgraph-checkpoint-postgres
  • python311Packages.langgraph-checkpoint-postgres.dist
  • python311Packages.langgraph-checkpoint-sqlite
  • python311Packages.langgraph-checkpoint-sqlite.dist
  • python311Packages.langgraph-checkpoint.dist
  • python311Packages.langgraph.dist
  • python312Packages.langchain
  • python312Packages.langchain-aws
  • python312Packages.langchain-aws.dist
  • python312Packages.langchain-azure-dynamic-sessions
  • python312Packages.langchain-azure-dynamic-sessions.dist
  • python312Packages.langchain-chroma
  • python312Packages.langchain-chroma.dist
  • python312Packages.langchain-community
  • python312Packages.langchain-community.dist
  • python312Packages.langchain-huggingface
  • python312Packages.langchain-huggingface.dist
  • python312Packages.langchain-mongodb
  • python312Packages.langchain-mongodb.dist
  • python312Packages.langchain-openai
  • python312Packages.langchain-openai.dist
  • python312Packages.langchain-standard-tests
  • python312Packages.langchain-standard-tests.dist
  • python312Packages.langchain-text-splitters
  • python312Packages.langchain-text-splitters.dist
  • python312Packages.langchain.dist
  • python312Packages.langgraph
  • python312Packages.langgraph-checkpoint
  • python312Packages.langgraph-checkpoint-postgres
  • python312Packages.langgraph-checkpoint-postgres.dist
  • python312Packages.langgraph-checkpoint-sqlite
  • python312Packages.langgraph-checkpoint-sqlite.dist
  • python312Packages.langgraph-checkpoint.dist
  • python312Packages.langgraph.dist
8 packages built:
  • python311Packages.langchain-core
  • python311Packages.langchain-core.dist
  • python311Packages.langsmith
  • python311Packages.langsmith.dist
  • python312Packages.langchain-core
  • python312Packages.langchain-core.dist
  • python312Packages.langsmith
  • python312Packages.langsmith.dist

Copy link
Contributor

@sarahec sarahec left a 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.

@sarahec
Copy link
Contributor

sarahec commented Sep 14, 2024

@natsukium do you want me to include those changes ?

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.

@sarahec
Copy link
Contributor

sarahec commented Sep 14, 2024

Result of nixpkgs-review pr 341921 run on aarch64-darwin 1

2 packages marked as broken and skipped:
  • khoj
  • khoj.dist
56 packages failed to build:
  • open-webui
  • open-webui.dist
  • pentestgpt
  • pentestgpt.dist
  • python311Packages.langchain
  • python311Packages.langchain-aws
  • python311Packages.langchain-aws.dist
  • python311Packages.langchain-azure-dynamic-sessions
  • python311Packages.langchain-azure-dynamic-sessions.dist
  • python311Packages.langchain-chroma
  • python311Packages.langchain-chroma.dist
  • python311Packages.langchain-community
  • python311Packages.langchain-community.dist
  • python311Packages.langchain-mongodb
  • python311Packages.langchain-mongodb.dist
  • python311Packages.langchain-openai
  • python311Packages.langchain-openai.dist
  • python311Packages.langchain-standard-tests
  • python311Packages.langchain-standard-tests.dist
  • python311Packages.langchain-text-splitters
  • python311Packages.langchain-text-splitters.dist
  • python311Packages.langchain.dist
  • python311Packages.langgraph
  • python311Packages.langgraph-checkpoint
  • python311Packages.langgraph-checkpoint-postgres
  • python311Packages.langgraph-checkpoint-postgres.dist
  • python311Packages.langgraph-checkpoint-sqlite
  • python311Packages.langgraph-checkpoint-sqlite.dist
  • python311Packages.langgraph-checkpoint.dist
  • python311Packages.langgraph.dist
  • python312Packages.langchain
  • python312Packages.langchain-aws
  • python312Packages.langchain-aws.dist
  • python312Packages.langchain-azure-dynamic-sessions
  • python312Packages.langchain-azure-dynamic-sessions.dist
  • python312Packages.langchain-chroma
  • python312Packages.langchain-chroma.dist
  • python312Packages.langchain-community
  • python312Packages.langchain-community.dist
  • python312Packages.langchain-mongodb
  • python312Packages.langchain-mongodb.dist
  • python312Packages.langchain-openai
  • python312Packages.langchain-openai.dist
  • python312Packages.langchain-standard-tests
  • python312Packages.langchain-standard-tests.dist
  • python312Packages.langchain-text-splitters
  • python312Packages.langchain-text-splitters.dist
  • python312Packages.langchain.dist
  • python312Packages.langgraph
  • python312Packages.langgraph-checkpoint
  • python312Packages.langgraph-checkpoint-postgres
  • python312Packages.langgraph-checkpoint-postgres.dist
  • python312Packages.langgraph-checkpoint-sqlite
  • python312Packages.langgraph-checkpoint-sqlite.dist
  • python312Packages.langgraph-checkpoint.dist
  • python312Packages.langgraph.dist
12 packages built:
  • python311Packages.langchain-core
  • python311Packages.langchain-core.dist
  • python311Packages.langchain-huggingface
  • python311Packages.langchain-huggingface.dist
  • python311Packages.langsmith
  • python311Packages.langsmith.dist
  • python312Packages.langchain-core
  • python312Packages.langchain-core.dist
  • python312Packages.langchain-huggingface
  • python312Packages.langchain-huggingface.dist
  • python312Packages.langsmith
  • python312Packages.langsmith.dist

@sarahec
Copy link
Contributor

sarahec commented Sep 15, 2024

Result of nixpkgs-review pr 341921 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • khoj
  • khoj.dist
56 packages failed to build:
  • open-webui
  • open-webui.dist
  • pentestgpt
  • pentestgpt.dist
  • python311Packages.langchain
  • python311Packages.langchain-aws
  • python311Packages.langchain-aws.dist
  • python311Packages.langchain-azure-dynamic-sessions
  • python311Packages.langchain-azure-dynamic-sessions.dist
  • python311Packages.langchain-chroma
  • python311Packages.langchain-chroma.dist
  • python311Packages.langchain-community
  • python311Packages.langchain-community.dist
  • python311Packages.langchain-mongodb
  • python311Packages.langchain-mongodb.dist
  • python311Packages.langchain-openai
  • python311Packages.langchain-openai.dist
  • python311Packages.langchain-standard-tests
  • python311Packages.langchain-standard-tests.dist
  • python311Packages.langchain-text-splitters
  • python311Packages.langchain-text-splitters.dist
  • python311Packages.langchain.dist
  • python311Packages.langgraph
  • python311Packages.langgraph-checkpoint
  • python311Packages.langgraph-checkpoint-postgres
  • python311Packages.langgraph-checkpoint-postgres.dist
  • python311Packages.langgraph-checkpoint-sqlite
  • python311Packages.langgraph-checkpoint-sqlite.dist
  • python311Packages.langgraph-checkpoint.dist
  • python311Packages.langgraph.dist
  • python312Packages.langchain
  • python312Packages.langchain-aws
  • python312Packages.langchain-aws.dist
  • python312Packages.langchain-azure-dynamic-sessions
  • python312Packages.langchain-azure-dynamic-sessions.dist
  • python312Packages.langchain-chroma
  • python312Packages.langchain-chroma.dist
  • python312Packages.langchain-community
  • python312Packages.langchain-community.dist
  • python312Packages.langchain-mongodb
  • python312Packages.langchain-mongodb.dist
  • python312Packages.langchain-openai
  • python312Packages.langchain-openai.dist
  • python312Packages.langchain-standard-tests
  • python312Packages.langchain-standard-tests.dist
  • python312Packages.langchain-text-splitters
  • python312Packages.langchain-text-splitters.dist
  • python312Packages.langchain.dist
  • python312Packages.langgraph
  • python312Packages.langgraph-checkpoint
  • python312Packages.langgraph-checkpoint-postgres
  • python312Packages.langgraph-checkpoint-postgres.dist
  • python312Packages.langgraph-checkpoint-sqlite
  • python312Packages.langgraph-checkpoint-sqlite.dist
  • python312Packages.langgraph-checkpoint.dist
  • python312Packages.langgraph.dist
12 packages built:
  • python311Packages.langchain-core
  • python311Packages.langchain-core.dist
  • python311Packages.langchain-huggingface
  • python311Packages.langchain-huggingface.dist
  • python311Packages.langsmith
  • python311Packages.langsmith.dist
  • python312Packages.langchain-core
  • python312Packages.langchain-core.dist
  • python312Packages.langchain-huggingface
  • python312Packages.langchain-huggingface.dist
  • python312Packages.langsmith
  • python312Packages.langsmith.dist

@ofborg ofborg bot requested a review from sarahec September 15, 2024 00:27
Copy link
Contributor

@sarahec sarahec left a 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:

  1. langgraph-checkpoint-1.0.9 now fails testing (test_serde_jsonplus). You may need to disable the test as flaky.
  2. langchain-text-splitters-0.3.0 needs dependency httpx. Fails at the check import phase.
  3. 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.

@natsukium
Copy link
Member

@natsukium do you want me to include #334715 (comment) ?

There is no need for that. That update script was wrong when I left the comment, but it was fixed in the following PR.
#340224

@GaetanLepage
Copy link
Contributor Author

Result of nixpkgs-review pr 341921 run on x86_64-linux 1

2 packages marked as broken and skipped:
  • khoj
  • khoj.dist
68 packages built:
  • open-webui
  • open-webui.dist
  • pentestgpt
  • pentestgpt.dist
  • python311Packages.langchain
  • python311Packages.langchain-aws
  • python311Packages.langchain-aws.dist
  • python311Packages.langchain-azure-dynamic-sessions
  • python311Packages.langchain-azure-dynamic-sessions.dist
  • python311Packages.langchain-chroma
  • python311Packages.langchain-chroma.dist
  • python311Packages.langchain-community
  • python311Packages.langchain-community.dist
  • python311Packages.langchain-core
  • python311Packages.langchain-core.dist
  • python311Packages.langchain-huggingface
  • python311Packages.langchain-huggingface.dist
  • python311Packages.langchain-mongodb
  • python311Packages.langchain-mongodb.dist
  • python311Packages.langchain-openai
  • python311Packages.langchain-openai.dist
  • python311Packages.langchain-standard-tests
  • python311Packages.langchain-standard-tests.dist
  • python311Packages.langchain-text-splitters
  • python311Packages.langchain-text-splitters.dist
  • python311Packages.langchain.dist
  • python311Packages.langgraph
  • python311Packages.langgraph-checkpoint
  • python311Packages.langgraph-checkpoint-postgres
  • python311Packages.langgraph-checkpoint-postgres.dist
  • python311Packages.langgraph-checkpoint-sqlite
  • python311Packages.langgraph-checkpoint-sqlite.dist
  • python311Packages.langgraph-checkpoint.dist
  • python311Packages.langgraph.dist
  • python311Packages.langsmith
  • python311Packages.langsmith.dist
  • python312Packages.langchain
  • python312Packages.langchain-aws
  • python312Packages.langchain-aws.dist
  • python312Packages.langchain-azure-dynamic-sessions
  • python312Packages.langchain-azure-dynamic-sessions.dist
  • python312Packages.langchain-chroma
  • python312Packages.langchain-chroma.dist
  • python312Packages.langchain-community
  • python312Packages.langchain-community.dist
  • python312Packages.langchain-core
  • python312Packages.langchain-core.dist
  • python312Packages.langchain-huggingface
  • python312Packages.langchain-huggingface.dist
  • python312Packages.langchain-mongodb
  • python312Packages.langchain-mongodb.dist
  • python312Packages.langchain-openai
  • python312Packages.langchain-openai.dist
  • python312Packages.langchain-standard-tests
  • python312Packages.langchain-standard-tests.dist
  • python312Packages.langchain-text-splitters
  • python312Packages.langchain-text-splitters.dist
  • python312Packages.langchain.dist
  • python312Packages.langgraph
  • python312Packages.langgraph-checkpoint
  • python312Packages.langgraph-checkpoint-postgres
  • python312Packages.langgraph-checkpoint-postgres.dist
  • python312Packages.langgraph-checkpoint-sqlite
  • python312Packages.langgraph-checkpoint-sqlite.dist
  • python312Packages.langgraph-checkpoint.dist
  • python312Packages.langgraph.dist
  • python312Packages.langsmith
  • python312Packages.langsmith.dist

@GaetanLepage
Copy link
Contributor Author

Result of nixpkgs-review pr 341921 run on aarch64-darwin 1

2 packages marked as broken and skipped:
  • khoj
  • khoj.dist
68 packages built:
  • open-webui
  • open-webui.dist
  • pentestgpt
  • pentestgpt.dist
  • python311Packages.langchain
  • python311Packages.langchain-aws
  • python311Packages.langchain-aws.dist
  • python311Packages.langchain-azure-dynamic-sessions
  • python311Packages.langchain-azure-dynamic-sessions.dist
  • python311Packages.langchain-chroma
  • python311Packages.langchain-chroma.dist
  • python311Packages.langchain-community
  • python311Packages.langchain-community.dist
  • python311Packages.langchain-core
  • python311Packages.langchain-core.dist
  • python311Packages.langchain-huggingface
  • python311Packages.langchain-huggingface.dist
  • python311Packages.langchain-mongodb
  • python311Packages.langchain-mongodb.dist
  • python311Packages.langchain-openai
  • python311Packages.langchain-openai.dist
  • python311Packages.langchain-standard-tests
  • python311Packages.langchain-standard-tests.dist
  • python311Packages.langchain-text-splitters
  • python311Packages.langchain-text-splitters.dist
  • python311Packages.langchain.dist
  • python311Packages.langgraph
  • python311Packages.langgraph-checkpoint
  • python311Packages.langgraph-checkpoint-postgres
  • python311Packages.langgraph-checkpoint-postgres.dist
  • python311Packages.langgraph-checkpoint-sqlite
  • python311Packages.langgraph-checkpoint-sqlite.dist
  • python311Packages.langgraph-checkpoint.dist
  • python311Packages.langgraph.dist
  • python311Packages.langsmith
  • python311Packages.langsmith.dist
  • python312Packages.langchain
  • python312Packages.langchain-aws
  • python312Packages.langchain-aws.dist
  • python312Packages.langchain-azure-dynamic-sessions
  • python312Packages.langchain-azure-dynamic-sessions.dist
  • python312Packages.langchain-chroma
  • python312Packages.langchain-chroma.dist
  • python312Packages.langchain-community
  • python312Packages.langchain-community.dist
  • python312Packages.langchain-core
  • python312Packages.langchain-core.dist
  • python312Packages.langchain-huggingface
  • python312Packages.langchain-huggingface.dist
  • python312Packages.langchain-mongodb
  • python312Packages.langchain-mongodb.dist
  • python312Packages.langchain-openai
  • python312Packages.langchain-openai.dist
  • python312Packages.langchain-standard-tests
  • python312Packages.langchain-standard-tests.dist
  • python312Packages.langchain-text-splitters
  • python312Packages.langchain-text-splitters.dist
  • python312Packages.langchain.dist
  • python312Packages.langgraph
  • python312Packages.langgraph-checkpoint
  • python312Packages.langgraph-checkpoint-postgres
  • python312Packages.langgraph-checkpoint-postgres.dist
  • python312Packages.langgraph-checkpoint-sqlite
  • python312Packages.langgraph-checkpoint-sqlite.dist
  • python312Packages.langgraph-checkpoint.dist
  • python312Packages.langgraph.dist
  • python312Packages.langsmith
  • python312Packages.langsmith.dist

@GaetanLepage
Copy link
Contributor Author

Result of nixpkgs-review pr 341921 run on aarch64-linux 1

8 packages marked as broken and skipped:
  • khoj
  • khoj.dist
  • open-webui
  • open-webui.dist
  • python311Packages.langchain-chroma
  • python311Packages.langchain-chroma.dist
  • python312Packages.langchain-chroma
  • python312Packages.langchain-chroma.dist
62 packages built:
  • pentestgpt
  • pentestgpt.dist
  • python311Packages.langchain
  • python311Packages.langchain-aws
  • python311Packages.langchain-aws.dist
  • python311Packages.langchain-azure-dynamic-sessions
  • python311Packages.langchain-azure-dynamic-sessions.dist
  • python311Packages.langchain-community
  • python311Packages.langchain-community.dist
  • python311Packages.langchain-core
  • python311Packages.langchain-core.dist
  • python311Packages.langchain-huggingface
  • python311Packages.langchain-huggingface.dist
  • python311Packages.langchain-mongodb
  • python311Packages.langchain-mongodb.dist
  • python311Packages.langchain-openai
  • python311Packages.langchain-openai.dist
  • python311Packages.langchain-standard-tests
  • python311Packages.langchain-standard-tests.dist
  • python311Packages.langchain-text-splitters
  • python311Packages.langchain-text-splitters.dist
  • python311Packages.langchain.dist
  • python311Packages.langgraph
  • python311Packages.langgraph-checkpoint
  • python311Packages.langgraph-checkpoint-postgres
  • python311Packages.langgraph-checkpoint-postgres.dist
  • python311Packages.langgraph-checkpoint-sqlite
  • python311Packages.langgraph-checkpoint-sqlite.dist
  • python311Packages.langgraph-checkpoint.dist
  • python311Packages.langgraph.dist
  • python311Packages.langsmith
  • python311Packages.langsmith.dist
  • python312Packages.langchain
  • python312Packages.langchain-aws
  • python312Packages.langchain-aws.dist
  • python312Packages.langchain-azure-dynamic-sessions
  • python312Packages.langchain-azure-dynamic-sessions.dist
  • python312Packages.langchain-community
  • python312Packages.langchain-community.dist
  • python312Packages.langchain-core
  • python312Packages.langchain-core.dist
  • python312Packages.langchain-huggingface
  • python312Packages.langchain-huggingface.dist
  • python312Packages.langchain-mongodb
  • python312Packages.langchain-mongodb.dist
  • python312Packages.langchain-openai
  • python312Packages.langchain-openai.dist
  • python312Packages.langchain-standard-tests
  • python312Packages.langchain-standard-tests.dist
  • python312Packages.langchain-text-splitters
  • python312Packages.langchain-text-splitters.dist
  • python312Packages.langchain.dist
  • python312Packages.langgraph
  • python312Packages.langgraph-checkpoint
  • python312Packages.langgraph-checkpoint-postgres
  • python312Packages.langgraph-checkpoint-postgres.dist
  • python312Packages.langgraph-checkpoint-sqlite
  • python312Packages.langgraph-checkpoint-sqlite.dist
  • python312Packages.langgraph-checkpoint.dist
  • python312Packages.langgraph.dist
  • python312Packages.langsmith
  • python312Packages.langsmith.dist

@GaetanLepage
Copy link
Contributor Author

Result of nixpkgs-review pr 341921 run on x86_64-darwin 1

2 packages marked as broken and skipped:
  • khoj
  • khoj.dist
6 packages failed to build:
  • open-webui
  • open-webui.dist
  • python311Packages.langchain-huggingface
  • python311Packages.langchain-huggingface.dist
  • python312Packages.langchain-huggingface
  • python312Packages.langchain-huggingface.dist
62 packages built:
  • pentestgpt
  • pentestgpt.dist
  • python311Packages.langchain
  • python311Packages.langchain-aws
  • python311Packages.langchain-aws.dist
  • python311Packages.langchain-azure-dynamic-sessions
  • python311Packages.langchain-azure-dynamic-sessions.dist
  • python311Packages.langchain-chroma
  • python311Packages.langchain-chroma.dist
  • python311Packages.langchain-community
  • python311Packages.langchain-community.dist
  • python311Packages.langchain-core
  • python311Packages.langchain-core.dist
  • python311Packages.langchain-mongodb
  • python311Packages.langchain-mongodb.dist
  • python311Packages.langchain-openai
  • python311Packages.langchain-openai.dist
  • python311Packages.langchain-standard-tests
  • python311Packages.langchain-standard-tests.dist
  • python311Packages.langchain-text-splitters
  • python311Packages.langchain-text-splitters.dist
  • python311Packages.langchain.dist
  • python311Packages.langgraph
  • python311Packages.langgraph-checkpoint
  • python311Packages.langgraph-checkpoint-postgres
  • python311Packages.langgraph-checkpoint-postgres.dist
  • python311Packages.langgraph-checkpoint-sqlite
  • python311Packages.langgraph-checkpoint-sqlite.dist
  • python311Packages.langgraph-checkpoint.dist
  • python311Packages.langgraph.dist
  • python311Packages.langsmith
  • python311Packages.langsmith.dist
  • python312Packages.langchain
  • python312Packages.langchain-aws
  • python312Packages.langchain-aws.dist
  • python312Packages.langchain-azure-dynamic-sessions
  • python312Packages.langchain-azure-dynamic-sessions.dist
  • python312Packages.langchain-chroma
  • python312Packages.langchain-chroma.dist
  • python312Packages.langchain-community
  • python312Packages.langchain-community.dist
  • python312Packages.langchain-core
  • python312Packages.langchain-core.dist
  • python312Packages.langchain-mongodb
  • python312Packages.langchain-mongodb.dist
  • python312Packages.langchain-openai
  • python312Packages.langchain-openai.dist
  • python312Packages.langchain-standard-tests
  • python312Packages.langchain-standard-tests.dist
  • python312Packages.langchain-text-splitters
  • python312Packages.langchain-text-splitters.dist
  • python312Packages.langchain.dist
  • python312Packages.langgraph
  • python312Packages.langgraph-checkpoint
  • python312Packages.langgraph-checkpoint-postgres
  • python312Packages.langgraph-checkpoint-postgres.dist
  • python312Packages.langgraph-checkpoint-sqlite
  • python312Packages.langgraph-checkpoint-sqlite.dist
  • python312Packages.langgraph-checkpoint.dist
  • python312Packages.langgraph.dist
  • python312Packages.langsmith
  • python312Packages.langsmith.dist

@GaetanLepage GaetanLepage marked this pull request as ready for review September 15, 2024 12:29
@GaetanLepage
Copy link
Contributor Author

What a ride...
This PR is now ready according to me.
The only failures remaining are limited to x86_64-darwin and are caused by sentence-transformers being broken. It should be fixed by #341872.

@happysalada happysalada merged commit 9753a25 into NixOS:master Sep 15, 2024
37 of 39 checks passed
@GaetanLepage GaetanLepage deleted the langgraph branch September 15, 2024 13:52
@sarahec
Copy link
Contributor

sarahec commented Sep 15, 2024

@GaetanLepage thank you! Updating this stuff is indeed a lot of work.

@sarahec
Copy link
Contributor

sarahec commented Sep 15, 2024

Note: Once #342114 lands, you can set up an update by typing nix-shell maintainers/scripts/update.nix --argstr package python3Packages.langchain-core and the whole group will be updated as needed. (That may need bug fixes as tests and dependencies change, but it should be fairly quick.)

@GaetanLepage
Copy link
Contributor Author

Note: Once #342114 lands, you can set up an update by typing nix-shell maintainers/scripts/update.nix --argstr package python3Packages.langchain-core and the whole group will be updated as needed. (That may need bug fixes as tests and dependencies change, but it should be fairly quick.)

Thanks, this will definitely help !

@bachp
Copy link
Member

bachp commented Sep 16, 2024

open-webui seems not to be compatible with the 0.3.0 update.

@GaetanLepage
Copy link
Contributor Author

open-webui seems not to be compatible with the 0.3.0 update.

Does it have some trouble running ?
I am able to build it fine.

@bachp
Copy link
Member

bachp commented Sep 16, 2024

open-webui seems not to be compatible with the 0.3.0 update.

Does it have some trouble running ? I am able to build it fine.

Yes when running it produces a very long error message that ends in:

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=<Extra.forbid: 'forbid'>, input_type=Extra]
open-webui[2240831]:     For further information visit
open-webui[2240831]: https://errors.pydantic.dev/2.8/v/literal_error
Full log
systemd[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.

@bachp
Copy link
Member

bachp commented Sep 16, 2024

Ok I think I nailed the issue down to an interaction between lanchain-chroma and chromadb. There seems to be already an upstream issue chroma-core/chroma#2687

However there is currently no release with a fix.

@sarahec
Copy link
Contributor

sarahec commented Sep 16, 2024

@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 chromadb itself. If you have a reproducible case, please also file a bug with langchain.

@sarahec
Copy link
Contributor

sarahec commented Sep 17, 2024

@bachp chromadb has pactches we could cherry-pick to get a fix until the next release. Would that be worth doing? If so, please file a bug and mention it here so one of us has something to work off of.

@sarahec
Copy link
Contributor

sarahec commented Sep 18, 2024

See #342846

@sarahec
Copy link
Contributor

sarahec commented Sep 18, 2024

@bachp should be fixed now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants