instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
LaurentMazare__tch-rs__416
LaurentMazare/tch-rs
416
defect
ee005c62fb024441329646b43c83eeabe64b6a30
7d0e980301592faf5ec2e75184addd68f6c74ce5
VarStore extensions
Hello, This PR is a first attempt of implementation of the ideas discussed in https://github.com/LaurentMazare/tch-rs/issues/415. I implemented: - VarStore-level casting between the different precision levels for Float types - VarStore-level migration between devices - Path-level casting between the different pr...
diff --git a/src/nn/var_store.rs b/src/nn/var_store.rs index 8c7f6eed..d60db5fa 100644 --- a/src/nn/var_store.rs +++ b/src/nn/var_store.rs @@ -196,6 +196,35 @@ impl VarStore { } } + /// Casts all float-like variable of a var store to half-precision (Half kind). + pub fn half(&mut self) { + ...
1
1
1
[{"id": "G0", "claim": "Provide a single function taking a Kind argument, exposed to end users, instead of duplicating the kind-conversion code four times.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
LaurentMazare__tch-rs__441
LaurentMazare/tch-rs
441
defect
e75e1bb48b6cd5890b342655d7c74d4e81f81281
99de82a9a6ef2fb06d2a9260debf73e5dcef9ca8
Add Read+Seek trait and Write trait support
see also: https://github.com/LaurentMazare/tch-rs/issues/438
diff --git a/src/nn/var_store.rs b/src/nn/var_store.rs index 37646b895..89559a71d 100644 --- a/src/nn/var_store.rs +++ b/src/nn/var_store.rs @@ -1,6 +1,6 @@ //! Variable stores. use super::Init; -use crate::tensor::Tensor; +use crate::tensor::{Tensor, ReadStream}; use crate::{Device, Kind, TchError}; use std::colle...
3
3
1
[{"id": "G0", "claim": "Adding a new public ReadStream trait instead of relying on the existing Read and Seek traits makes it harder for users to pass types they do not define themselves, so the API should rely on Read + Seek.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
LaurentMazare__tch-rs__486
LaurentMazare/tch-rs
486
defect
077a9a235068b9d044851f1986b12aca5a6e64cd
4c525c764727ca75e0a1e1e7628fee7e904b1ca9
Orthogonal weight initialization, RNN weight and bias config
This PR adds Orthogonal Matrix weight initialization to nn::Init and exposes weight and bias initialization in RNNConfig. Orthogonal matrix initialization is useful in reinforcement learning and used extensively in policy-based methods. The init code is based on the [pytorch code](https://pytorch.org/docs/stable/_mo...
diff --git a/src/nn/init.rs b/src/nn/init.rs index 81b1cef0..214b6776 100644 --- a/src/nn/init.rs +++ b/src/nn/init.rs @@ -15,6 +15,9 @@ pub enum Init { /// Kaiming uniform initialization. KaimingUniform, + + /// Orthogonal initialization + Orthogonal { gain: f64 }, } /// Creates a new float tenso...
2
2
0
[{"id": "G0", "claim": "Fix the typo in the new f_orthogonal doc comment on src/nn/var_store.rs line 533: `Creats` should be `Creates`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The same `Creats` -> `Creates` typo from the earlier review is s...
null
LaurentMazare__tch-rs__496
LaurentMazare/tch-rs
496
defect
2d914bf7dcbefc10450f9325acc5e5750a572fb4
f5c6733cc16b2d6c659c3f98cb4adb307e849688
Addition of VarStore merging capabilities
Addition of merge capabilities for `VarStore`: - an input `Vec` of `VarStore` is consumed and the variables are moved into a new combined `VarStore` - optional prefixes can be provided and prepended to the `VarStore` variables, for example to avoid key conflicts. Fixes https://github.com/LaurentMazare/tch-rs/issue...
diff --git a/src/nn/var_store.rs b/src/nn/var_store.rs index 8e856b84..47ee0be5 100644 --- a/src/nn/var_store.rs +++ b/src/nn/var_store.rs @@ -3,6 +3,7 @@ use super::Init; use crate::tensor::Tensor; use crate::wrappers::stream::ReadSeekAdapter; use crate::{Device, Kind, TchError}; +use std::collections::hash_map::En...
1
1
1
[{"id": "G0", "claim": "The `Arc::try_unwrap` call in `merge` has no guarantee of success and could panic at runtime if another clone of the `Arc` exists; the variables should instead be cloned (or otherwise accessed safely) so the merge operation cannot panic.", "category": "correctness", "verdict": "supported", "prio...
null
LaurentMazare__tch-rs__60
LaurentMazare/tch-rs
60
defect
5a231d9036f8a00057979b18bf38116f760b1e87
05f4b1c13a13308430a15bc5bfc052441b6473ac
Basic tensor indexing
This PR aims to provide an `Tensor::i()` for convenient indexing. It covers integer (i64), Range*, slice of integers and new axis insertion. The following illustrates the usage. ```rust use tch::{Tensor, IndexOp, NewAxis}; let tensor = Tensor::arange1(0, 2 * 3 * 5 * 7, opt).view(&[2, 3, 5, 7]); let result = ten...
diff --git a/src/lib.rs b/src/lib.rs index b95b55c07..878ebb1a8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,9 @@ pub use wrappers::manual_seed; pub use wrappers::scalar::Scalar; mod tensor; -pub use tensor::{no_grad, no_grad_guard, NoGradGuard, Reduction, Tensor}; +pub use tensor::{ + no_grad, no_grad_...
6
5
0
[{"id": "G0", "claim": "Write a fallible version f_indexer(...) and have indexer(...) call it plus unwrap, like other tensor functions.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Count the new-axis specifiers with index_spec.iter().filter(|x| x == &I...
null
LaurentMazare__tch-rs__733
LaurentMazare/tch-rs
733
defect
084d378403205eb1c1edfb5a7f19c94225362b06
2433ec2207655f4e3ed425d80becdfacc6fcca85
add correction and update test for onehot()
I found that my code failed when run on a GPU because the tensor::onehot() fn was hardcoded to use Device::Cpu. This PR changes onehot() to use the same device as the tensor it is applied to. The onehot test is modifies to confirm the new behavior. In the test, the device is set to Mps to confirm that it is not...
diff --git a/src/tensor/mod.rs b/src/tensor/mod.rs index f1249ca2..dd1a32d3 100644 --- a/src/tensor/mod.rs +++ b/src/tensor/mod.rs @@ -227,7 +227,7 @@ impl Tensor { /// [N1, ..., Nk, labels]. The returned tensor uses float values. /// Elements of the input vector are expected to be between 0 and labels-1. ...
2
2
2
[{"id": "G0", "claim": "onehot() should return a float-kind tensor rather than the kind of the input tensor, as its documentation states.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Keep the original onehot test as it was, and only add a new test...
null
LaurenzV__hayro__834
LaurenzV/hayro
834
defect
104e09531f5809b20278024e0ef4e03da6cfff49
a0bc7ee927ccd47eda7023f0bdeb48d54aaa9219
hayro-svg: Ability to specify background color
fixes #714
diff --git a/Cargo.lock b/Cargo.lock index d718898dc..fc7eec8a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -614,6 +614,7 @@ name = "hayro-svg" version = "0.3.0" dependencies = [ "base64", + "color", "hayro-interpret", "image 0.25.9", "kurbo 0.12.0", diff --git a/Cargo.toml b/Cargo.toml index 1889f506b..b8692...
3
3
3
[{"id": "G0", "claim": "Make the SVG background transparent by default instead of white.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Write the background-color style attribute only when the color is not fully transparent.", "category": "correctness", ...
null
LaurenzV__krilla__200
LaurenzV/krilla
200
defect
3350bd3e4c2d03a5d7376b8728df0f46bb499b7b
cc544b67dbb4c83ad6939eb3ab75eb9da09e564c
Add PageLayout to Metadata
This MR exposes the /PageLayout property of the Document Catalog through the document metadata and adds it to the metadata_full snapshot tests. I added copied the struct definition for `PageLayout` from `pdf-writer`, analogously to TextDirection (the other option would be to `pub use` the type from `pdf-writer`)
diff --git a/crates/krilla-tests/src/metadata.rs b/crates/krilla-tests/src/metadata.rs index a8656aa77..9aac631c8 100644 --- a/crates/krilla-tests/src/metadata.rs +++ b/crates/krilla-tests/src/metadata.rs @@ -1,4 +1,4 @@ -use krilla::metadata::{DateTime, Metadata, TextDirection}; +use krilla::metadata::{DateTime, Metad...
1
1
1
[{"id": "G0", "claim": "For the two page layouts that require PDF 1.5, a check is needed whether the document's PDF version is high enough, and if not the page layout attribute should not be written.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
LaurenzV__krilla__203
LaurenzV/krilla
203
defect
c9409ededf8cd0555fee03e47c55e1dfa8173e04
63fb31a2109b221cbec403b89a796a78bfd7d388
Add option to automatically chose whether to compress embedded files
Continuing from https://github.com/typst/typst/issues/5762, is this what you had in mind? If yes I would go ahead, update the tests and make this ready for review.
diff --git a/crates/krilla/src/interchange/embed.rs b/crates/krilla/src/interchange/embed.rs index c10d30349..bb6005a9d 100644 --- a/crates/krilla/src/interchange/embed.rs +++ b/crates/krilla/src/interchange/embed.rs @@ -41,8 +41,9 @@ pub struct EmbeddedFile { /// The raw data of the embedded file. pub data: ...
2
2
1
[{"id": "G0", "claim": "The doc comment for `compress` should say `If None, krilla will use its own logic for determining whether to compress the file or not` instead of describing the improvement heuristic.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
LaurenzV__krilla__245
LaurenzV/krilla
245
defect
c67068682b55ec930b25887777762817cdea9d58
af343511031196c1c2ca064b3980a119e0c336f7
Add `Strong` and `Em` `TagKind`s
In PDF 2.0 these are natively supported. For older versions create a role mapping. Also do this for the existing `Title` structure element. I don't know if this is something we want to do in general, but it seemed simple enough.
diff --git a/crates/krilla-tests/src/tagging.rs b/crates/krilla-tests/src/tagging.rs index ae5d5c26b..1ad0ae704 100644 --- a/crates/krilla-tests/src/tagging.rs +++ b/crates/krilla-tests/src/tagging.rs @@ -577,6 +577,43 @@ fn tagging_div_and_border_color(document: &mut Document) { document.set_tag_tree(tag_tree); ...
4
2
0
[{"id": "G0", "claim": "The new Strong and Em kinds return PdfVersion::Pdf15 from the minimum-version match, but the reviewer expects PdfVersion::Pdf14 or PdfVersion::Pdf20 (or a comment explaining why 1.5).", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
LaurenzV__krilla__277
LaurenzV/krilla
277
defect
a45b7417acca6077ec35441730cf9f75fdfd936b
a11c0af3e057594de8a67cef0a1ac3dbfc8df7b4
Raise Missing*AltText error when alt text is empty
This aligns with the [veraPDF rule](https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFUA-Part-1-rules#rule-73-1) to check for the presence of alt text
diff --git a/crates/krilla-tests/src/validate.rs b/crates/krilla-tests/src/validate.rs index f29ad4821..e8fca8bb4 100644 --- a/crates/krilla-tests/src/validate.rs +++ b/crates/krilla-tests/src/validate.rs @@ -491,6 +491,82 @@ fn validate_pdf_a4e_full_example(document: &mut Document) { validate_pdf_full_example(doc...
1
1
0
[{"id": "G0", "claim": "Use `is_none_or(...)` (e.g. `self.alt.is_none_or(alt.is_empty)`) instead of the added match-with-guard blocks when checking for missing or empty alt text and heading title, here and in the other cases.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
Layr-Labs__d-inference__166
Layr-Labs/d-inference
166
defect
2f65bb4196fe19484d811cd1b3505645aff2c411
47a3c866922e76e60d0b4958e144bf444b08578f
fix: add typed response structs for all OpenAI-compatible endpoints
Replaces `map[string]any` response construction across the API with typed structs. **Chat completions** `chatCompletionMessage`, `chatCompletionChoice`, `chatCompletionUsage`, `chatCompletionResponse` **Responses API** `responsesUsage`, `responsesUsageDetail`, `responsesIncompleteDetail`, `responsesResponse` **GET /...
diff --git a/coordinator/api/consumer.go b/coordinator/api/consumer.go index 82d5833ca..df6fdeb5d 100644 --- a/coordinator/api/consumer.go +++ b/coordinator/api/consumer.go @@ -34,6 +34,8 @@ import ( "github.com/eigeninference/d-inference/coordinator/store" "github.com/google/uuid" "nhooyr.io/websocket" + + "gith...
2
2
2
[{"id": "G0", "claim": "Tagging cached_tokens and reasoning_tokens with omitempty changes the wire format: usage-detail objects now emit {} instead of explicit zeros, which can break OpenAI-compatible clients that read these numeric fields for billing or telemetry.", "category": "correctness", "verdict": "supported", "...
null
Layr-Labs__d-inference__178
Layr-Labs/d-inference
178
defect
f4219c4ff274ec92a6009d72b719d3c93989e284
e3f8842f030d1164d5328ff23155d518fa715503
chore: remove deprecated Solana/wallet-based provider payouts
Clean cherry-pick of the Solana/wallet removal from #155 onto current master. Removes all deprecated Solana/wallet-based provider payout functionality, superseded by Stripe Connect Express. The BIP39 mnemonic is retained for coordinator X25519 encryption key derivation. ## Changes (25 files, +213/-632) ### Coordinat...
diff --git a/coordinator/api/billing_integration_test.go b/coordinator/api/billing_integration_test.go index 70abc161f..c64f10455 100644 --- a/coordinator/api/billing_integration_test.go +++ b/coordinator/api/billing_integration_test.go @@ -29,8 +29,6 @@ import ( "nhooyr.io/websocket" ) -const billingTestWalletAdd...
4
4
4
[{"id": "G0", "claim": "handleComplete reads p.AccountID directly for pricing without taking p.Mu(), racing with account-linking writes that happen under that mutex, which can cause a data race and intermittent mispricing; use the locked providerPricingKeys accessor.", "category": "correctness", "verdict": "supported",...
null
Layr-Labs__d-inference__99
Layr-Labs/d-inference
99
defect
f7dab6fa994abda2cbcb132f9ea28c727909af8f
c851cfc47d2e8244ceb457bb1ed5178bb8c7ac98
Harden release registration and binary hash policy
## Summary This PR hardens the pre-existing release/binary-hash trust path before the verifier work: - fail closed when a known-good binary hash policy is configured but provider registration/challenge omits a usable attested binary hash - normalize and validate release metadata before storing it - verify release art...
diff --git a/coordinator/internal/api/edge_case_test.go b/coordinator/internal/api/edge_case_test.go index a571d4c0a..909aef09f 100644 --- a/coordinator/internal/api/edge_case_test.go +++ b/coordinator/internal/api/edge_case_test.go @@ -7,9 +7,14 @@ package api // (no real backends needed) and run in CI. import ( +...
8
1
1
[{"id": "G0", "claim": "CodeQL flags verifyReleaseArtifact for uncontrolled data used in a network request: the URL of the artifact download request is built from the user-provided release.URL.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "verifyRelea...
null
Layr-Labs__eigensdk-go__124
Layr-Labs/eigensdk-go
124
defect
4d7d39fac2ea2c8edf764f37d3f92498d5c1acc1
fd95f52cb2e8fe0264fe16c1e5c0c60205743de8
[HotWallet] Add `txsender`
This PR introduces a new interface `txsender`, which supports a few methods: - `SendTransaction`: signs a raw transaction and broadcasts it to the network - `GetTransactionReceipt `: retrieves the receipt if available - ~~`SenderAddress`: address of the transaction sender~~ It also refactors the `TxManager` to us...
diff --git a/chainio/clients/builder.go b/chainio/clients/builder.go index 174669e00..eaf6a3b51 100644 --- a/chainio/clients/builder.go +++ b/chainio/clients/builder.go @@ -1,11 +1,14 @@ package clients import ( + "crypto/ecdsa" "errors" + "math/big" "github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregist...
7
5
2
[{"id": "G0", "claim": "Send returns \"\" instead of the transaction hash, so the TxID it returns cannot be used with the WaitForTransactionReceipt logic; it should return tx.Hash() or similar.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Add a TO...
null
Layr-Labs__eigensdk-go__131
Layr-Labs/eigensdk-go
131
defect
4d7d39fac2ea2c8edf764f37d3f92498d5c1acc1
314ac9f76eaa0cd8f9fc29d19cb34c09ff9210f0
[HotWallet] Implement Fireblocks TxSender
This PR introduces Fireblocks TxSender which uses fireblocks client to implement an MPC tx sender
diff --git a/chainio/clients/builder.go b/chainio/clients/builder.go index 174669e00..63e170f06 100644 --- a/chainio/clients/builder.go +++ b/chainio/clients/builder.go @@ -1,11 +1,14 @@ package clients import ( + "crypto/ecdsa" "errors" + "math/big" "github.com/Layr-Labs/eigensdk-go/chainio/clients/avsregist...
2
2
1
[{"id": "G0", "claim": "WaitForTransactionReceipt should not live on the EthClient interface now that the txsender exposes it; the EthClient interface should be dropped.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The interface renamed to GethClient s...
null
Layr-Labs__eigensdk-go__160
Layr-Labs/eigensdk-go
160
defect
d57bfdd5ab62233bda38f585f5d5051b3eb94f59
5f558cd3c0110126f7560bc2699a46726eb32fb8
[Fireblocks] Pass in gas info when calling contract
It used to rely on Fireblocks' gas estimation by passing in `HIGH` as `feeLevel` parameter when creating a transaction. However, this estimation doesn't guarantee that replacement (boosting) transaction increases the gas cost by > 15% than the previous transaction, which is a requirement for replacing a pending transa...
diff --git a/chainio/clients/fireblocks/client_test.go b/chainio/clients/fireblocks/client_test.go index 7f9e763e5..8a17c28ee 100644 --- a/chainio/clients/fireblocks/client_test.go +++ b/chainio/clients/fireblocks/client_test.go @@ -54,7 +54,10 @@ func TestContractCall(t *testing.T) { destinationAccountID, "0", ...
2
1
1
[{"id": "G0", "claim": "The new ContractCallRequest field `PriorityFee` should be named `MaxPriorityFee` per EIP-1559, since it corresponds to the max priority fee.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SendTransaction should also support legacy...
null
Layr-Labs__eigensdk-go__19
Layr-Labs/eigensdk-go
19
defect
9d3410db9c620d4bca1ab1311ae1b44bfc7e71fa
6bd3b4e2d9a894d2028cb8059e4f79305291487d
updated economic metrics to reflect new spec
Fixes # . ### Motivation <!-- Does this solve a bug? Enable a new use-case? Improve an existing behavior? Concrete examples are helpful here. --> ### Solution <!-- What is the solution here from a high level. What are the key technical decisions and why were they made? --> ### Open questions <!-- (opti...
diff --git a/chainio/avsregistry/reader.go b/chainio/avsregistry/reader.go index d7a15c6de..3a8260066 100644 --- a/chainio/avsregistry/reader.go +++ b/chainio/avsregistry/reader.go @@ -2,11 +2,13 @@ package avsregistry import ( "context" + "math" "github.com/Layr-Labs/eigensdk-go/chainio/clients" "github.com...
5
1
0
[{"id": "G0", "claim": "The commented-out delegatedShares code left in the pull request (the struct comment and descriptor, the Describe line, the Collect block, and the commented-out test mock expectations) is no longer needed and should be removed.", "category": "maintainability", "verdict": "uncertain", "priority": ...
null
Layr-Labs__eigensdk-go__198
Layr-Labs/eigensdk-go
198
defect
47c41ef999a9811356d0f62ed4eba8681072f80e
0f16b5ff23ca752acbfb2203ae10ce7b70cde0f2
[fireblocks] Add a way to cancel transaction
Adding support for canceling transaction in flight. This method can cancel transactions that have not been broadcasted to the network (either because it's still gathering cosignatures or other MPC operations)
diff --git a/chainio/clients/fireblocks/cancel_transaction.go b/chainio/clients/fireblocks/cancel_transaction.go new file mode 100644 index 000000000..84810b1dd --- /dev/null +++ b/chainio/clients/fireblocks/cancel_transaction.go @@ -0,0 +1,28 @@ +package fireblocks + +import ( + "context" + "encoding/json" + "fmt" + "...
1
1
0
[{"id": "G0", "claim": "In CancelTransaction the variable holding \"/v1/transactions/%s/cancel\" is a path, not a url, so it should not be named `url`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__227
Layr-Labs/eigensdk-go
227
defect
feeb72bd188af6d5d3fb20e9f9c9c9924a68dc4e
da162b7c95bb0d7e047a824962642f812d79bacd
[fireblocks] Add transfer method
This PR adds a transfer functionality to Fireblocks wallet.
diff --git a/chainio/clients/fireblocks/client.go b/chainio/clients/fireblocks/client.go index daa19bd01..6e52fd202 100644 --- a/chainio/clients/fireblocks/client.go +++ b/chainio/clients/fireblocks/client.go @@ -36,7 +36,11 @@ type Client interface { // ContractCall makes a ContractCall request to the Fireblocks API...
1
1
0
[{"id": "G0", "claim": "The error message on line 267 should now read \"error sending a transaction\" since the method no longer only calls contracts.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__283
Layr-Labs/eigensdk-go
283
defect
2c8b1d5299d315174f54446c88cb2f8820af107f
c3d40ed88f3c7969de9b73cfe644801e620011d0
refactor avs registry
Fixes # . ### What Changed? - Refactor using config - Change interface naming ( a breaking change sadly) ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/chainio/clients/avsregistry/bindings.go b/chainio/clients/avsregistry/bindings.go index 40c6d0e2e..3e34786ba 100644 --- a/chainio/clients/avsregistry/bindings.go +++ b/chainio/clients/avsregistry/bindings.go @@ -25,6 +25,8 @@ type ContractBindings struct { BlsApkRegistryAddr gethcommon.Address ...
5
5
0
[{"id": "G0", "claim": "The fourteen variable declarations at the top of NewBindingsFromConfig should be collapsed into a single grouped var block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message returned when creating the Servi...
null
Layr-Labs__eigensdk-go__323
Layr-Labs/eigensdk-go
323
defect
bdeff567ff4a2b92315077f4d76e0abfb599ef94
8e3cb571837ca0db637c1334906e9b1d4f0d4112
feat: send txn without waiting for tx receipt
Fixes #324 . ### What Changed? <!-- Describe the changes made in this pull request --> ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/chainio/clients/avsregistry/writer.go b/chainio/clients/avsregistry/writer.go index 9609d4b44..df56d83b1 100644 --- a/chainio/clients/avsregistry/writer.go +++ b/chainio/clients/avsregistry/writer.go @@ -201,6 +201,7 @@ func (w *ChainWriter) RegisterOperatorInQuorumWithAVSRegistryCoordinator( blsKeyPair ...
1
1
0
[{"id": "G0", "claim": "Add a function comment on SimpleTxManager.Send explaining that when waitForReceipt is false it returns a dummy tx receipt with just a tx hash, so users of this API are aware of it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__334
Layr-Labs/eigensdk-go
334
defect
6f4461db7e82e073ffd96a3d7534071387ecab64
981593b8544f980cf5208addc0df9d87dd2b5794
fest: support start/stop blocks for querying operator info(pubkey and socket)
Fixes #259 and #312. ### What Changed? <!-- Describe the changes made in this pull request --> ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/services/bls_aggregation/blsagg_test.go b/services/bls_aggregation/blsagg_test.go index 40fa992f9..211cb4487 100644 --- a/services/bls_aggregation/blsagg_test.go +++ b/services/bls_aggregation/blsagg_test.go @@ -1150,6 +1150,8 @@ func TestIntegrationBlsAgg(t *testing.T) { avsClients.AvsRegistryChainSub...
1
1
1
[{"id": "G0", "claim": "The new start/stop block parameters should be passed via an extensible Opts struct instead of added as positional function arguments, so client code stops breaking every time a parameter is added.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__360
Layr-Labs/eigensdk-go
360
defect
ed4b05c876105c03f67ca3714d9df8d62e13a38e
e3bf1e46de6e3dbc0f091a20b708b3883919d477
Add AvsRegistry tests
Adds tests for the AvsRegistry. ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/chainio/clients/avsregistry/writer_test.go b/chainio/clients/avsregistry/writer_test.go new file mode 100644 index 000000000..77ca8acd0 --- /dev/null +++ b/chainio/clients/avsregistry/writer_test.go @@ -0,0 +1,109 @@ +package avsregistry + +import ( + "context" + "log/slog" + "os" + "testing" + "time" + + ...
2
2
0
[{"id": "G0", "claim": "The anvil state file name in reader_test.go should live in a constant or a test config struct instead of an inline literal.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test setup code in reader_test.go should be ex...
null
Layr-Labs__eigensdk-go__403
Layr-Labs/eigensdk-go
403
defect
7d2cd162ffe864eabef1d9fc9350602b6c0b7593
577e26ef0df0d2a90687a3153804c769169c9c29
feat: bls signer abstraction
Fixes # . ### What Changed? - Introducing a separate module for the signer. We are thinking of making eigensdk a multi module for better version management and usage experience. - Re-using the signer folder (which is deprecated) for new signer abstraction ### Reviewer Checklist - [ ] Code is well-documented ...
diff --git a/crypto/bls/attestation.go b/crypto/bls/attestation.go index 4de764d5d..77ec287fe 100644 --- a/crypto/bls/attestation.go +++ b/crypto/bls/attestation.go @@ -13,7 +13,10 @@ import ( "github.com/consensys/gnark-crypto/ecc/bn254" "github.com/consensys/gnark-crypto/ecc/bn254/fp" "github.com/consensys/gnar...
3
2
2
[{"id": "G0", "claim": "The pull request's new signer code should come with some tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In signer/bls/cerberus/cerberus.go the new code crashes the process with log.Fatalf instead of returning an error.", "...
null
Layr-Labs__eigensdk-go__427
Layr-Labs/eigensdk-go
427
defect
a0cf13a02ec6777ec40c237e8b2c48ee6b3ce78e
7468df49bae4ba1a9b7dd2fcb42db43a00c64979
test: `elcontracts.ChainWriter` slashing functions
### What Changed? <!-- Describe the changes made in this pull request --> Introduces the following changes * Add tests for the all the untested `elcontracts.ChainWriter` slashing methods: * `SetClaimerFor` * `SetOperatorAVSSplit` * `SetOperatorPISplit` * `ModifyAllocations` * `SetAllocationDelay` * `Remo...
diff --git a/Makefile b/Makefile index 6b5f81ee3..e4df31e21 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ mocks: ## generates mocks .PHONY: tests tests: ## runs all tests - go test -race ./... -timeout=1m + go test -race ./... -timeout=3m .PHONY: tests-cover tests-cover: ## run all tests with test cove...
6
6
0
[{"id": "G0", "claim": "The test should use require.Equal instead of require.True(t, receipt.Status == SUCCESS_STATUS).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests should use go-ethereum's receipt status constant instead of defining...
null
Layr-Labs__eigensdk-go__430
Layr-Labs/eigensdk-go
430
defect
a0cf13a02ec6777ec40c237e8b2c48ee6b3ce78e
dc867d164bad00c3403120517b9524905f399bc8
test: add admin and appointees test for reader
### What Changed? This PR aims to increase test coverage of `reader.go`. New tested functions: - `ListPendingAdmins` - `ListAdmins` - `IsPendingAdmin` - `IsAdmin` - `ListAppointees` - `ListAppointeePermissions` ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventi...
diff --git a/chainio/clients/elcontracts/reader_test.go b/chainio/clients/elcontracts/reader_test.go index d3d1fdb06..b13a9c740 100644 --- a/chainio/clients/elcontracts/reader_test.go +++ b/chainio/clients/elcontracts/reader_test.go @@ -3,15 +3,37 @@ package elcontracts_test import ( "context" "math/big" + "os" ...
3
3
0
[{"id": "G0", "claim": "The newly added test constants should specify how these keys were generated and if/how they are related.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The IsPendingAdmin checks inside the 'list pending admins when empty' a...
null
Layr-Labs__eigensdk-go__436
Layr-Labs/eigensdk-go
436
defect
e530fc16bfd7fb0f79621fac5dfeb9ff883fd680
ef30f18a5bfb7055558870387e831b8209dc6818
test: `elcontracts.ChainWriter` claim functions (slashing)
### What Changed? This PR introduces the following changes * Renames the `earnerAddress` param to `recipientAddress` in the `ChainWriter` `ProcessClaim` and `ProcessClaims` methods. * Add tests for the following untested elcontracts.ChainWriter slashing methods: * `ProcessClaim` * `ProcessClaims` * The fo...
diff --git a/Makefile b/Makefile index e4df31e21..e36cf3839 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ mocks: ## generates mocks .PHONY: tests tests: ## runs all tests - go test -race ./... -timeout=3m + go test -race ./... -timeout=4m .PHONY: tests-cover tests-cover: ## run all tests with test cove...
2
2
0
[{"id": "G0", "claim": "The test hardcodes an unexplained earner address \"0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6\" instead of a named value, and the reviewer asks what this address is.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newT...
null
Layr-Labs__eigensdk-go__437
Layr-Labs/eigensdk-go
437
defect
7672096f6248359c093369a6bc20e63ea3f989b3
aab1903dc68bf7b4da368b09bc22e59018460d85
test: `chainReader` shares and operatorSets functions
### What Changed? This PR aims to increase the test coverage of `reader.go`. Tested functions: - `GetOperatorsForOperatorSet` - `GetNumOperatorsForOperatorSet` - `GetOperatorSetsForOperator` - `GetNumOperatorSetsForOperator` - `GetStrategiesForOperatorSet` - `GetSlashableShares` - `GetSlashableSharesForOper...
diff --git a/Makefile b/Makefile index e36cf3839..08b4b02d5 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ mocks: ## generates mocks .PHONY: tests tests: ## runs all tests - go test -race ./... -timeout=4m + go test -race ./... -timeout=5m .PHONY: tests-cover tests-cover: ## run all tests with test cove...
3
3
0
[{"id": "G0", "claim": "The allocation constants inside TestOperatorSetsAndSlashableShares should be declared outside the test or as variables instead of const.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The literal uint64(1) used for receip...
null
Layr-Labs__eigensdk-go__441
Layr-Labs/eigensdk-go
441
defect
0671041199986ed384b7982d8dbab07c3fb9225f
b08032ad3f6f8daeec6845daea67f6bb493a9ecd
test: use read clients builder
### What Changed? This PR adds coverage to test Reader Clients builder. Creates an intermediate function to use the builder in the chain reader tests. Increases `chainio/clients/elcontracts/builder.go` Coverage from 45.5% to 81.8% ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [nami...
diff --git a/chainio/clients/elcontracts/reader_test.go b/chainio/clients/elcontracts/reader_test.go index c5a2ce07f..cb9e26b4d 100644 --- a/chainio/clients/elcontracts/reader_test.go +++ b/chainio/clients/elcontracts/reader_test.go @@ -18,7 +18,7 @@ import ( ) func TestChainReader(t *testing.T) { - clients, anvilH...
1
1
0
[{"id": "G0", "claim": "The comment above BuildTestReadClients should say it builds the ChainIO ReadClients for read-only testing instead of saying it builds the ChainIO Clients.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__448
Layr-Labs/eigensdk-go
448
defect
700c6bb4ada1490cd10f6d6744bfade8163c6f10
f4f198a0e7df597018e0b7c7fc2cd2028d413960
fix: add attribute nil verifications in chainReader
### What Changed? Some `chainReader` methods currently does not verify that some attributes are not nil before accessing them. This PR aims to fix this and add some test cases covering it. Also renames a variable that had a generic name for a more proper one. Note: This PR respects structure from #447 and it's r...
diff --git a/chainio/clients/elcontracts/reader.go b/chainio/clients/elcontracts/reader.go index 972b627d1..7ea8d3f9c 100644 --- a/chainio/clients/elcontracts/reader.go +++ b/chainio/clients/elcontracts/reader.go @@ -116,6 +116,9 @@ func (r *ChainReader) GetStakerShares( ctx context.Context, stakerAddress gethcommo...
3
2
0
[{"id": "G0", "claim": "The new nil-check error returns in the chainReader should use errors.Wrap instead of errors.New.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the variables in TestInvalidConfig are not going to be used, their assignment and t...
null
Layr-Labs__eigensdk-go__458
Layr-Labs/eigensdk-go
458
defect
2a2964569a738bec1be9dfe4094e7e704d82b596
c86b82f691afd3d1d433806ad1ec65b2fed1555f
test: `avsregistry` add new tests cases for reader methods
### What Changed? - Added a helper function to create a `chainReader` for `avsregistry`. This enables testing scenarios like using an empty configuration. - Added missing tests identified in the coverage report. - Introduced additional tests to ensure that `chainReader` methods properly handle errors when an inval...
diff --git a/chainio/clients/avsregistry/reader_test.go b/chainio/clients/avsregistry/reader_test.go index 375551a2d..366800880 100644 --- a/chainio/clients/avsregistry/reader_test.go +++ b/chainio/clients/avsregistry/reader_test.go @@ -2,19 +2,33 @@ package avsregistry_test import ( "context" + "fmt" "math/big"...
1
1
0
[{"id": "G0", "claim": "Remove the expectError flag from the invalid-configuration test table, since every case expects an error, and instead require an error unconditionally for each case.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__487
Layr-Labs/eigensdk-go
487
defect
c99bbac9e65f0618a38e8279dfc8b7a9e848cac7
787de57d65235c65a359dc8d5c7b62c6997b04c0
refactor: `bls_aggregation` new struct `TaskSignature`
### What Changed? This PR introduces a small refactor by encapsulating related parameters into a new struct and simplifying function interfaces. - Create a new struct `TaskSignature` with a constructor method. This struct encapsulates the parameters used by `ProcessNewSignature()`. ```go type TaskSignature stru...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 907e0968a..909b2998c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,4 +13,29 @@ Each version will have a separate `Breaking Changes` section as well. To describ * fix: change requested pr url in changelog's workflow by @maximopalopoli in <https://github.com/Layr-Labs...
2
2
0
[{"id": "G0", "claim": "The constructor name `NewTaskSiganture` is misspelled (should be `NewTaskSignature`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CHANGELOG example uses the misspelled constructor `NewTaskSiganture` (should be `New...
null
Layr-Labs__eigensdk-go__512
Layr-Labs/eigensdk-go
512
defect
e8fc75155a1e861e6241a5f3147bddef6624833e
c84f16a4f5eb44d377d5a567d746815e6b9f7f23
feat: add set slashable stake lookahead function
### What Changed? This PR adds set slashable stake lookahead function, and a test case where the value is modified through a binding get request. ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old...
diff --git a/chainio/clients/avsregistry/writer.go b/chainio/clients/avsregistry/writer.go index e0d05af53..2e875b175 100644 --- a/chainio/clients/avsregistry/writer.go +++ b/chainio/clients/avsregistry/writer.go @@ -495,3 +495,27 @@ func (w *ChainWriter) UpdateSocket( } return receipt, nil } + +// Receives the qu...
1
1
0
[{"id": "G0", "claim": "The standalone test function's name should denote that it is testing the look ahead period.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__529
Layr-Labs/eigensdk-go
529
defect
52cc060b37daa8751cf170eba67fdd46aee70cd1
d2babdceb0a22bbe12737a303beaf947072afed6
feat: add create total delegated stake quorum function
### What Changed? This PR adds the createTotalDelegatedStakeQuorum function, and a test case where a new quorum is created and registryCoordinator's quorumCount increases. Also aims to fix partially issue #518. ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](h...
diff --git a/chainio/clients/avsregistry/writer.go b/chainio/clients/avsregistry/writer.go index f12331672..9036cf0b4 100644 --- a/chainio/clients/avsregistry/writer.go +++ b/chainio/clients/avsregistry/writer.go @@ -528,3 +528,37 @@ func (w *ChainWriter) SetRewardsInitiator( } return receipt, nil } + +// This fun...
1
1
0
[{"id": "G0", "claim": "The CreateTotalDelegatedStakeQuorum doc comment should be rewritten like PR #531's: describe the function as creating a quorum that tracks total delegated stake, what parameters it receives, and that it returns the transaction receipt on success.", "category": "documentation", "verdict": "suppor...
null
Layr-Labs__eigensdk-go__531
Layr-Labs/eigensdk-go
531
defect
6be70db23216938d98391cc46428ceef8ee40807
aab8e66489d5e0a6de95cff63ecf9dcc900381d6
feat: add create slashable stake quorum func
### What Changed? Adds CreateSlashableStakeQuorum and a test case adding a slashable stake quorum and verifying registry coordinator's quorum number has increased. Also aims to fix partially issue #518 ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://g...
diff --git a/chainio/clients/avsregistry/writer.go b/chainio/clients/avsregistry/writer.go index b88c7027e..24233d296 100644 --- a/chainio/clients/avsregistry/writer.go +++ b/chainio/clients/avsregistry/writer.go @@ -552,3 +552,40 @@ func (w *ChainWriter) SetSlashableStakeLookahead( } return receipt, nil } + +// T...
3
3
1
[{"id": "G0", "claim": "The function's doc comment should be rewritten to the shorter, clearer wording suggested (Creates a new quorum that tracks slashable stake for operators ...).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A comment should ...
null
Layr-Labs__eigensdk-go__536
Layr-Labs/eigensdk-go
536
defect
3abf50bca2035a4f333016458b6a0a7cae6d6699
22be7a157c8ba13a786fca555f1e14dfe70f72ab
feat: implement `StakeRegistry` view functions
Fixes # . ### What Changed? Add all the view functions to avsregistry reader: - `weightOfOperatorForQuorum` - `strategyParamsLength` - `strategyParamsByIndex` - `getStakeHistoryLength` - `getStakeHistory` - `getLatestStakeUpdate` - `getStakeUpdateAtIndex` - `getStakeAtBlockNumber` - `getStakeUpdateIndexAtB...
diff --git a/chainio/clients/avsregistry/reader.go b/chainio/clients/avsregistry/reader.go index 40f438480..752194963 100644 --- a/chainio/clients/avsregistry/reader.go +++ b/chainio/clients/avsregistry/reader.go @@ -275,6 +275,203 @@ func (r *ChainReader) GetOperatorStakeInQuorumsOfOperatorAtCurrentBlock( return quo...
7
7
0
[{"id": "G0", "claim": "The new WeightOfOperatorForQuorum function is missing a documentation comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out operator setup code left in the test setup should be removed.", "category": "ma...
null
Layr-Labs__eigensdk-go__539
Layr-Labs/eigensdk-go
539
defect
afbaa4155868bc2676e3bb7ffd630903350c0737
406294a6476f70b3eadc06a0ee5b98b99ac04986
feat: add set operator set params function
### What Changed? This PR adds SetOperatorSetParams function, and also a test case where the params are modified and the value is the expected. Also aims to fix partially issue #518 ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_g...
diff --git a/chainio/clients/avsregistry/writer.go b/chainio/clients/avsregistry/writer.go index fc033ed90..c0bd6e562 100644 --- a/chainio/clients/avsregistry/writer.go +++ b/chainio/clients/avsregistry/writer.go @@ -647,3 +647,29 @@ func (w *ChainWriter) EjectOperator( } return receipt, nil } + +// Sets the opera...
1
1
0
[{"id": "G0", "claim": "The error message in SetOperatorSetParams says \"SetSlashableStakeLookahead\" instead of \"SetOperatorSetParams\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__554
Layr-Labs/eigensdk-go
554
defect
6c75e8991c6fe656043f00f0c4d55cb85750a2f7
79088ee4c5f99590b903315a6c0226ed6f182a54
added setMinimumStakeForQuorum
Fixes # . ### What Changed? Added support for setMinimumStakeForQuorum function. ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/chainio/clients/avsregistry/writer.go b/chainio/clients/avsregistry/writer.go index cebffb9b1..d104eef49 100644 --- a/chainio/clients/avsregistry/writer.go +++ b/chainio/clients/avsregistry/writer.go @@ -406,6 +406,27 @@ func (w *ChainWriter) SetSlashableStakeLookahead( return receipt, nil } +func (w ...
3
2
0
[{"id": "G0", "claim": "The test variable contractBlsRegistryCoordinator is a typo and should be named contractRegistryCoordinator, as the suggestion block proposes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The stakeRegistry address could ...
null
Layr-Labs__eigensdk-go__563
Layr-Labs/eigensdk-go
563
defect
dd1cd5bda45eccf9ad3d025cf71adf02b54628f8
7318a149cf88f61d3cdd4ddd30c9699da04f901a
AllocationManagerStorage functions
Fixes # . ### What Changed? Adds AllocationManagerStorage functions ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/chainio/clients/elcontracts/reader.go b/chainio/clients/elcontracts/reader.go index 3f862f755..5f8bcf4e8 100644 --- a/chainio/clients/elcontracts/reader.go +++ b/chainio/clients/elcontracts/reader.go @@ -414,10 +414,7 @@ func (r *ChainReader) GetOperatorSetSplit( return r.rewardsCoordinator.GetOperatorSe...
4
4
0
[{"id": "G0", "claim": "The replacement doc comment for GetAllocatableMagnitude drops the original's error-condition documentation, and the reviewer asks why the change was made.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer question...
null
Layr-Labs__eigensdk-go__568
Layr-Labs/eigensdk-go
568
defect
be1e225f8104741de30046fa5e9fbd3a1e7235a8
b381f09c0fc7e26b95e9c61b498ca7b827c58738
feat: implement new method `AddStrategies`
### What Changed? This PR implements `addStrategies` in `avsregistry/writer` Related to #521 ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/chainio/clients/avsregistry/writer.go b/chainio/clients/avsregistry/writer.go index 66741e8cd..cd6aba4e3 100644 --- a/chainio/clients/avsregistry/writer.go +++ b/chainio/clients/avsregistry/writer.go @@ -810,6 +810,30 @@ func (w *ChainWriter) SetEjectionCooldown( return receipt, nil } +// Adds new str...
1
1
0
[{"id": "G0", "claim": "In TestAddStrategies the strategy address should not be the third anvil address; use a constant like \"0x1\" so readers see its value is not important.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__569
Layr-Labs/eigensdk-go
569
defect
be1e225f8104741de30046fa5e9fbd3a1e7235a8
2055f10bc300ab34b9bf4b555fe40e58575b1b6b
feate: implement method `RemoveStrategies`
### What Changed? This PR implements `RemoveStrategies` in `avsregistry/writer` Related to https://github.com/Layr-Labs/eigensdk-go/issues/521 ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old...
diff --git a/chainio/clients/avsregistry/writer.go b/chainio/clients/avsregistry/writer.go index 66741e8cd..b0378f787 100644 --- a/chainio/clients/avsregistry/writer.go +++ b/chainio/clients/avsregistry/writer.go @@ -843,6 +843,32 @@ func (w *ChainWriter) UpdateAVSMetadataURI( return receipt, nil } +// Removes str...
2
2
0
[{"id": "G0", "claim": "Fix the typo in the WrapError message (\"form\" -> \"from\") and pass the error object instead of calling Error(), which just serializes the error.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use StrategyParamsLength i...
null
Layr-Labs__eigensdk-go__579
Layr-Labs/eigensdk-go
579
defect
69e7d28de82da2b712671ed1af358ed4a1ca1131
b4a29b1dca04e0dc658a09addd978792a7ad09a9
chore: unify error creation using wrapError
### What Changed? This PR takes the commits from original wrap_errors branch (#391), updates to up-to-date dev, and changes the changelog adding the changes made in that branch. It also replaces more `fmt.Errorf` usages, some times directly using `errors.New` and some other times using `utils.wrapError`. ### Rev...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f2c49b77..001f6f681 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ Each version will have a separate `Breaking Changes` section as well. To describ * Fixed BLS aggregation for multiple quorums by @TomasArrachea in [#394](https://github.com/Layr-Labs/eig...
1
1
0
[{"id": "G0", "claim": "Asks whether the pull request should use the standard library errors package instead of adding the github.com/cockroachdb/errors dependency in chainio/clients/builder.go.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__656
Layr-Labs/eigensdk-go
656
defect
a8a170b7e6b40e71e8f14d8980f743b466bf9fbc
e5a2088799623c322ecfbe61299e380f84dbf254
feat: add indexing task processor
### What Changed? This PR moves the task handling logic from the SDK aggregator to the new indexing task processor. It also removes unnecessary code from the aggregator creation on the AVS side, so now the AVS only needs to pass the task manager contract's ABI. ### Reviewer Checklist - [ ] Code is well-documented ...
diff --git a/aggregator/aggregator.go b/aggregator/aggregator.go index 75d3c9d9d..86a94f811 100644 --- a/aggregator/aggregator.go +++ b/aggregator/aggregator.go @@ -4,10 +4,9 @@ import ( "context" "fmt" "math/big" - "sync" - "time" "github.com/Layr-Labs/eigensdk-go/logging" + taskprocessor "github.com/Layr-La...
4
4
1
[{"id": "G0", "claim": "The aggregator should keep depending on a TaskProcessor interface, with IndexingTaskProcessor implementing that interface, rather than taking the concrete *IndexingTaskProcessor type.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
Layr-Labs__eigensdk-go__672
Layr-Labs/eigensdk-go
672
defect
90c972f6cc29e43a9e7ba77a15d6dbfff70f8477
489abb7170b20cad523de7b25a4f187781837c13
feat(v2): add indexing challenger processor
### What Changed? The idea is to add a generic challenger processor implementation. This implementation needs a response validation function and a challenge raiser to communicate with the on-chain contract. ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://...
diff --git a/aggregator/aggregator.go b/aggregator/aggregator.go index 5eea438cf..9ff99e5d2 100644 --- a/aggregator/aggregator.go +++ b/aggregator/aggregator.go @@ -115,12 +115,12 @@ func (agg *Aggregator[Input, Output]) Start(ctx context.Context) error { return nil case blsAggServiceResp := <-agg.blsAggregation...
3
3
1
[{"id": "G0", "claim": "NewChallengerRaiserFromContract exposes the unbuildable taskManagerAbiContract type, so it should not be exported; embed the wrapper's construction inside NewChallengerRaiserFromAbi instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
Layr-Labs__eigensdk-go__712
Layr-Labs/eigensdk-go
712
defect
754a46c3fcd745d902e41bbe457d8aaa8df7832a
a3bfcfc4fdd8630f6f7fd7813edd6a2518fd9c0e
feat(v2): add TOML tags for the challenger config
### What Changed? This PR adds TOML serialization tags to the challenger SDK config. ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/challenger/challenger.go b/challenger/challenger.go index 6be6a4a54..8ddf988ee 100644 --- a/challenger/challenger.go +++ b/challenger/challenger.go @@ -49,15 +49,17 @@ type Challenger[Input any, Output any] struct { // NewChallenger creates a new Aggregator with the provided config and a challenger proc...
1
1
0
[{"id": "G0", "claim": "The challenger config should receive an EthHttpUrl instead of an EthClient (and the EthWsUrl it was built around).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Layr-Labs__eigensdk-go__714
Layr-Labs/eigensdk-go
714
defect
754a46c3fcd745d902e41bbe457d8aaa8df7832a
78e7d6f377aa696a3b80954f754c6a80f098f008
feat(v2): add TOML tags to the task spammer config
### What Changed? This PR adds TOML serialization tags to the task spammer SDK config. ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/challenger/challenger.go b/challenger/challenger.go index 6be6a4a54..8ddf988ee 100644 --- a/challenger/challenger.go +++ b/challenger/challenger.go @@ -49,15 +49,17 @@ type Challenger[Input any, Output any] struct { // NewChallenger creates a new Aggregator with the provided config and a challenger proc...
2
2
0
[{"id": "G0", "claim": "Split the inline comment off onto its own line so `time_between_tasks = 10_000_000_000` is no longer followed by a trailing comment in examples/awesome-vault-service/config/config.toml.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim":...
null
Layr-Labs__eigensdk-go__722
Layr-Labs/eigensdk-go
722
defect
5d633c14ba2df1d13795503bb0015719b9a9b3a8
5437947a37f6c47ee7bcacddbd15b66b27f8e5ff
refactor(v2): rename task processor occurrences to aggregator processor
### What Changed? This PR renames all task processor occurrences to aggregator processor, including: - The task processor folder and package - The TaskProcessor interface - The IndexingTaskProcessor type ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://...
diff --git a/aggregator/README.md b/aggregator/README.md index 8c9469f84..82120a211 100644 --- a/aggregator/README.md +++ b/aggregator/README.md @@ -47,7 +47,7 @@ This flow ensures tasks are initialized, signatures collected, and the final res } ``` -2. **Provide a Task Processor**: Provide a st...
3
3
1
[{"id": "G0", "claim": "Move the aggregator-processor contents into the aggregator package and rename AggregatorProcessor to Processor so it is used as aggregator.Processor, and do the same for the challenger.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim"...
null
Layr-Labs__eigensdk-go__727
Layr-Labs/eigensdk-go
727
defect
9fe7cba1c00d7051cef2432a4b505fbca21a27cb
f5bf4604e71173c21d6ad7208c512a8e397ca997
feat(v2): handle more ECDSA signing cases
### What Changed? This PR handles more cases when creating the ECDSA signer on operator registration. ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effective_go#names) - [ ] Code deprecates any old functionality before removing it
diff --git a/examples/awesome-vault-service/config/config.toml b/examples/awesome-vault-service/config/config.toml index ed8b7ba52..c33b708bd 100644 --- a/examples/awesome-vault-service/config/config.toml +++ b/examples/awesome-vault-service/config/config.toml @@ -42,7 +42,7 @@ delegation_manager_address = "0x9fe467366...
6
6
1
[{"id": "G0", "claim": "The example TOML config should use the multi-line [ecdsa_signer] section syntax instead of the inline dictionary.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment above KeystorePath should read 'Path to the ECDSA keystor...
null
Layr-Labs__eigensdk-go__729
Layr-Labs/eigensdk-go
729
defect
7a24254837aaa69282d8b98695f534003b7a1163
90e78db26ddd946bc182e0418ca69b7d83b7db59
test(v2): generalize AVS integration tests
### What Changed? This PR removes the repeated code between the incredible squaring and the dot product example integration tests by moving that code to generic builders for the entities. ### Reviewer Checklist - [ ] Code is well-documented - [ ] Code adheres to Go [naming conventions](https://go.dev/doc/effectiv...
diff --git a/integration-tests/avs_test_generator.go b/integration-tests/avs_test_generator.go new file mode 100644 index 000000000..9addbbf3d --- /dev/null +++ b/integration-tests/avs_test_generator.go @@ -0,0 +1,293 @@ +package integration_test + +import ( + "context" + "iter" + "math/big" + "testing" + "time" + + "g...
5
4
1
[{"id": "G0", "claim": "The RegistryCoordinatorAddress field of AvsConfig should be common.Address like the other AVS address fields.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The BlsKeystorePassword field of AvsConfig is unused and should be remove...
null
Layr-Labs__eigensdk-rs__156
Layr-Labs/eigensdk-rs
156
defect
f3a9f3299a26366931c6b25761abdb1c8cfc72cd
a7b1a35d3c484e48f1d5fbb37879fb794986525a
operator socket support in services
closes #141
diff --git a/Cargo.lock b/Cargo.lock index 68f5bb5f6..9f864c4cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -741,12 +741,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "anyhow" -version = "1.0.88" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e1496f8fb1fbf27268...
4
4
0
[{"id": "G0", "claim": "FakeOperatorInfoService::get_operator_socket should not return a Result since it always returns Ok.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The manual creation of `bytes` from x and y can be replaced with a one-line iterato...
null
Layr-Labs__eigensdk-rs__250
Layr-Labs/eigensdk-rs
250
defect
36ac6cd05d6cc26f0d9d24e66bb3978758bed8f2
9222b6a08d5a21548cf419d3f83c9e318fe8332f
fix: use rewards coordinator in get split functions
### What Changed? In get_operator_avs_split and get_operator_pi_split was being used delegation manager address to instantiate rewards coordinator. Now is used rewards coordinator's address. ### Reviewer Checklist - [ ] New features are tested and documented - [ ] PR updates the changelog with a description of ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index de7d88df0..8af6dbea4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ Each version will have a separate `Breaking Changes` section as well. To describ ### Breaking changes ### Removed +### Other Changes +- fix: use rewards coordinator on get operator avs/...
4
4
0
[{"id": "G0", "claim": "The changelog entry announcing the `ELChainReader::new` parameter change should be listed under \"Breaking changes\" rather than \"Other Changes\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "`AvsRegistryChainWriter::bui...
null
Layr-Labs__eigensdk-rs__254
Layr-Labs/eigensdk-rs
254
defect
eccb56e032aa1e8a003f692db3c545a6ddbd943f
aad5ef997cb8aad9cb21e2691e51dfc91746d310
refactor: `bls_aggr` encapsulate task initialization params in `TaskMetadata`
### What Changed? This PR introduces a refactor in task initialization by encapsulating related parameters into a new struct and simplifying function interfaces. - Create a new struct `TaskMetadata` with a constructor `TaskMetadata::new` to initialize a new task and `with_window_duration` to set the window duration...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c014ed50c..11a409975 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,23 @@ Each version will have a separate `Breaking Changes` section as well. To describ ### Breaking changes +* refactor: update interface on `bls aggregation` in [#254](https://github.com/...
15
14
0
[{"id": "G0", "claim": "The new `TaskMetadata` struct is missing its struct-level documentation comment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The constructor doc should enclose `TaskMetadata` in brackets so rustdoc links the symbol.", "c...
null
Layr-Labs__eigensdk-rs__280
Layr-Labs/eigensdk-rs
280
defect
cd287d853c54f70a70b8d2045ba24760c89f00a2
28ac0dbcd443017fd155c6dceaf618c3ac31bdb9
feat: Operator methods missing, form Go SDK
Fixes # `types/operator` is missing the following functions - `Operator.Validate` - `OperatorPubkeys.ToContractPubkeys` - `OperatorIdFromContractG1Pubkey` - `OperatorIdFromKeyPair` - `G1PubkeyFromContractG1Pubkey` ### What Changed? <!-- Describe the changes made in this pull request --> ### Reviewer...
diff --git a/CHANGELOG.md b/CHANGELOG.md index aa31f4172..efd62e452 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,31 @@ Those changes in added, changed or breaking changes, should include usage exampl .unwrap(); ``` +* Added functions `new()` and `validate()` to `Operator` struct in [#280](htt...
6
4
0
[{"id": "G0", "claim": "The Regex::new(...).expect(\"regex is valid\") calls built inline in OperatorMetadata::validate should be avoided, since they recompile the patterns on every call and would panic if a pattern were invalid.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduce...
null
Layr-Labs__eigensdk-rs__363
Layr-Labs/eigensdk-rs
363
defect
cd287d853c54f70a70b8d2045ba24760c89f00a2
6e8516f978fdb372342070e6ce752d6209c5b997
refactor: separate interface and service in `bls_aggr`
### What Changed? This PR refactors the BLS Aggregator by separating its interface from the internal service logic. - Add new struct `ServiceHandle` to serve as the interface for communicating with the BLS Aggregator service. This interface provides two new methods - `initialize_task`: Sends a message to the BLS A...
diff --git a/CHANGELOG.md b/CHANGELOG.md index aa31f4172..2142dda82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -84,6 +84,61 @@ Those changes in added, changed or breaking changes, should include usage exampl * `TaskMetadata.task_created_block` field changed to `u64` [#362](https://github.com/Layr-Labs/eigensdk-...
3
3
1
[{"id": "G0", "claim": "In the CHANGELOG 'After' example, the call to bls_agg_service.start() should be moved above the TaskMetadata::new construction.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The aggregate_receiver field of AggregateReceive...
null
Layr-Labs__eigensdk-rs__422
Layr-Labs/eigensdk-rs
422
defect
b130a6e0abd60c009bb4de994ce07a536a5b7e9a
a3b42c79466c4bed37e325cd199c06aea97c3500
test: wait for transaction before doing call
Fixes # ### What Changed? This PR adds some missing calls to `wait_transaction` in tests. It also fixes two tests that were passing even though their sent transactions failed. ### Reviewer Checklist - [ ] New features are tested and documented - [ ] PR updates the changelog with a description of changes -...
diff --git a/crates/chainio/clients/avsregistry/src/writer.rs b/crates/chainio/clients/avsregistry/src/writer.rs index 5fa84e305..d5620de5d 100644 --- a/crates/chainio/clients/avsregistry/src/writer.rs +++ b/crates/chainio/clients/avsregistry/src/writer.rs @@ -1858,11 +1858,17 @@ mod tests { multiplier: U9...
2
2
1
[{"id": "G0", "claim": "The tests `writer::tests::test_register_operator` and `writer::tests::test_register_operator_preslashing` are failing because their registration transaction fails.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Consider movin...
null
Layr-Labs__eigensdk-rs__505
Layr-Labs/eigensdk-rs
505
defect
c99ceed273afb67bc52de89fcdc5fe39049ed978
caf16a6d19372c84719976c522f892b77ec32c31
feat(v2): implement `ResponseCalculator` trait
### What Changed? This PR adds a new `ResponseCalculator` trait to encapsulate the `compute_response` logic. - Adds a new `response_calculator.rs` file to the `task_manager` crate. - Adds a standard `FunctionResponseCalculator` struct that implements `ResponseCalculator`. - Moves `failing_response_calculator` from ...
diff --git a/Cargo.lock b/Cargo.lock index c72231e71..c2f225d1f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1321,7 +1321,7 @@ name = "awesome-vault-service" version = "0.1.0" dependencies = [ "alloy", - "eigen-operator", + "eigen-task-manager", "eigensdk", "eyre", "rand 0.8.5", @@ -3139,6 +3139,7 @@ dependen...
6
6
0
[{"id": "G0", "claim": "Simplify FunctionResponseCalculator to a tuple struct over F with the trait bounds moved to the impl, and provide separate constructors for sync functions (wrapped into async) and async functions.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
LazoVelko__Pokemon-Terminal__130
LazoVelko/Pokemon-Terminal
130
defect
f83821a683c9e74b6c264c49a989c834a67a5f18
b035b4f21269debe74b75c074570c6e4cb20a15b
Implements adapter pattern to wallpappers
Continues the discussion from #129 So I changed the structure a little to help with the reflection it's currently on the following structure ```text pokemonterminal/wallpaper ├── adapters │ ├── darwin.py │ ├── gnome.py │ └── __init__.py └── __init__.py ``` It is already 100% functional on Gnome, I trie...
diff --git a/pokemonterminal/scripter.py b/pokemonterminal/scripter.py index ef879439..2191628a 100644 --- a/pokemonterminal/scripter.py +++ b/pokemonterminal/scripter.py @@ -1,37 +1,8 @@ # Used for creating, running and analyzing applescript and bash scripts. - -import os import sys -import subprocess from pokemo...
3
3
2
[{"id": "G0", "claim": "The unsupported-desktop message should read \"isn't supported at this time\" rather than \"by this time\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Darwin adapter crashes on Mac with NameError: name '_DarwinProvid...
null
LazoVelko__Pokemon-Terminal__86
LazoVelko/Pokemon-Terminal
86
defect
9c0c43a344109db0c8570a062d8f10d459de0bb4
710428229a5adea75c556e289d31713b1bf9003d
get_all and get_[region] fixed.
Some more bug fixes from my #70 disaster that were discovered in #82. That's why we needed unit testing in the first place, feeling real guilty, and sorry :sweat: This PR also includes the changes in #85.
diff --git a/database.py b/database.py index 63f7bdde..caec461d 100644 --- a/database.py +++ b/database.py @@ -129,7 +129,7 @@ def get_sinnoh(self): def get_extra(self): # Get all the Extra Pokemon images available. - return self.__get_region(None) + return [p for p in self.__pokemon_list ...
2
2
0
[{"id": "G0", "claim": "Lines 233-236 of database.py should be rewritten to build the Extra directory with os.path.join and derive the name with os.path.splitext instead of the hard-to-read string slicing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", ...
null
LazoVelko__Pokemon-Terminal__94
LazoVelko/Pokemon-Terminal
94
defect
682ab32c3f8415ce94a9ab31bc1872dabffa45dd
51d05491dd0992044a98db478bf5a14f40485846
Command engine rework
This is not done yet, I'm creating the PR so I could get some input, and maybe testing from you guys as it progress, move the discussion from #79 to here. This is my TODO list so far. - [x] Clear command - [x] Random pokemon - [x] Name filtering - [x] Random pokemon from region - [x] Random pokemon of type - [x...
diff --git a/database.py b/database.py index 91314cbe..8a0ee4ff 100644 --- a/database.py +++ b/database.py @@ -57,20 +57,20 @@ def __str__(self): class Database: """The Database object is a container for all the supported Pokemon.""" - __POKEMON_TYPES = ('normal', 'fire', 'fighting', 'water', 'flying', - ...
5
4
2
[{"id": "G0", "claim": "The pull request's Python 3.6 f-strings mean .travis.yml must be changed from 3.5 to 3.6 or CI will complain on every build.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "TypeFilter.matches should return `value in (pokemon.g...
null
LazoVelko__Pokemon-Terminal__97
LazoVelko/Pokemon-Terminal
97
defect
682ab32c3f8415ce94a9ab31bc1872dabffa45dd
125d174e013e4dc9b0a9136702072a08d22d5257
Create the pokemon_list outside of the Database (round II)
A second attempt at #73 **without** the tuple store idea... As discussed in #73, my sense is that a separate `load_all_pokemon.py` file that manages reading the data files and creating a list of all pokemon (standard + extra) would help a lot. This PR is trying to isolate the complexity of the data ingestion proces...
diff --git a/load_all_pokemon.py b/load_all_pokemon.py new file mode 100644 index 00000000..e4fc8656 --- /dev/null +++ b/load_all_pokemon.py @@ -0,0 +1,89 @@ +#!/usr/bin/env python3 + +import collections +import os +from database import Pokemon + +SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) +DATA_DIR = os....
1
1
0
[{"id": "G0", "claim": "Using enumerate(in_file, 1) would eliminate the need to add 1 to the index to form the id.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
LazyAGI__LazyLLM__1016
LazyAGI/LazyLLM
1,016
defect
4de6bf5ed32418e236a3bee4e1c98d87ddccd7b5
a571207f12af887005bc7b23bc4a14e7b4b3449d
Add operators for text to qa pipeline
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/lazyllm/tools/data/__init__.py b/lazyllm/tools/data/__init__.py index de26b23ea..4b65aa9e5 100644 --- a/lazyllm/tools/data/__init__.py +++ b/lazyllm/tools/data/__init__.py @@ -2,6 +2,7 @@ import lazyllm from .base_data import LazyLLMDataBase, data_register from .operators import demo_ops # noqa: F401 +...
12
11
2
[{"id": "G0", "claim": "The default num_perm=10 is too low for MinHash and degrades dedup quality, so the default should be raised to at least 128.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The default chunk_size=10 is too small and yields chun...
null
LazyAGI__LazyLLM__1024
LazyAGI/LazyLLM
1,024
defect
953aff3b800389da49317497a8854f752c64e701
8b4337ef778a2a4a37da9fcc6327593787dd66be
Add code generation ops
## 📌 PR 内容 / PR Description - 添加 codegen_ops以及添加测例。 ## ✅ 变更类型 / Type of Change <!-- 勾选对应选项 / Check the relevant options --> - [ ] 修复 Bug / Bug fix (non-breaking change that fixes an issue) - [X] 新功能 / New feature (non-breaking change that adds functionality) - [ ] 重构 / Refactor (no functionality change, code...
diff --git a/lazyllm/tools/data/operators/codegen_ops.py b/lazyllm/tools/data/operators/codegen_ops.py new file mode 100644 index 0000000000..3a6ecda66b --- /dev/null +++ b/lazyllm/tools/data/operators/codegen_ops.py @@ -0,0 +1,218 @@ +from ..base_data import data_register +import re +from typing import Tuple + + +Code...
5
5
2
[{"id": "G0", "claim": "In CodeQualityScoreFilter.forward the `or score_int == 0` condition makes items with a score of 0 always pass the filter regardless of min_score, and that condition should be removed so a score of 0 is judged only by the min/max range.", "category": "correctness", "verdict": "supported", "priori...
null
LazyAGI__LazyLLM__1034
LazyAGI/LazyLLM
1,034
defect
11a5cb2a1cd3cc44275c6bd209694f12638bb571
6d6eaa10d5a02e8a3d9bba1f603110a181700dcd
Add FieldExtractor & SchemaExtractor, redesign PromptLibrary
## 📌 PR 内容 / PR Description This PR introduces two new operators to the data processing module: FieldExtractor and SchemaExtractor. Additionally, the PromptLibrary has been redesigned to support not only the original actor-prompts but also prompts for output processing modules. These changes enhance the flexibility a...
diff --git a/docs/en/API Reference/data_process.md b/docs/en/API Reference/data_process.md index 28a913ce1..eea6d5b5d 100644 --- a/docs/en/API Reference/data_process.md +++ b/docs/en/API Reference/data_process.md @@ -12,6 +12,15 @@ members: exclude-members: +### LLM JSON Operators + +::: lazyllm.tools.dat...
10
10
5
[{"id": "G0", "claim": "DataPrompt.add_prompt mutates the shared cls._prompts dictionary without locking, which can race when multiple threads add prompts for the same new language, and a class-level lock should protect all modifications to cls._prompts.", "category": "correctness", "verdict": "supported", "priority": ...
null
LazyAGI__LazyLLM__1045
LazyAGI/LazyLLM
1,045
defect
e387c66b111cb5b5132b9665aab31bf5146b08a5
154e45905c616a74c6b0500f8ccb2dce94488a88
[Feat]support interleaved input for image_editing type
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/LazyLLM-Env b/LazyLLM-Env index 1a455bbd8..a13029661 160000 --- a/LazyLLM-Env +++ b/LazyLLM-Env @@ -1 +1 @@ -Subproject commit 1a455bbd840f43f12960ee95b3bed6d7b051aefb +Subproject commit a130296616ad6638e4ce1622c32906d4a608da44 diff --git a/lazyllm/module/servermodule.py b/lazyllm/module/servermodule.py in...
5
4
1
[{"id": "G0", "claim": "The URL conditional in _is_image_path is redundant because the extension check is identical for URLs and local paths, and should be simplified into a single return statement.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
LazyAGI__LazyLLM__1061
LazyAGI/LazyLLM
1,061
defect
d12caa82f7820f8af9deabb216fa0047c20a682a
dce9402a130ac31a1439412d3a71f5bb39729803
Fix: fix failure of reparsing whole doc
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - 修复重解析整个文件时解析失败的错误 ## ✅ 变更类型 / Type of Change <!-- 勾选对应选项 / Check the relevant options --> - [x] 修复 Bug / Bug fix (non-breaking change that fixes an issue) - [ ] 新功能 / New feature (non-breaking change that adds f...
diff --git a/lazyllm/tools/rag/parsing_service/impl.py b/lazyllm/tools/rag/parsing_service/impl.py index cd520663d..e662364c9 100644 --- a/lazyllm/tools/rag/parsing_service/impl.py +++ b/lazyllm/tools/rag/parsing_service/impl.py @@ -90,6 +90,21 @@ def store(self) -> _DocumentStore: def reader(self) -> DirectoryRea...
2
2
2
[{"id": "G0", "claim": "When input_files is an empty list, _prepare_doc_inputs indexes normalized_metadatas[0] and raises IndexError; add a check at the function start to handle empty input_files.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `...
null
LazyAGI__LazyLLM__1075
LazyAGI/LazyLLM
1,075
defect
86f3008a00e0705a437f4a7ce521b24fbb4d7cac
2fbab0bfb813069621518c7b51c1f326c5f6caf0
add ppl for lazyllm.data
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - 主要添加 pt 和 sft 过程中涉及到的纯文本预训练pipeline、phi4风格数据生成的pipeline、多模态图像处理pipeline、结构化数据生成pipeline以及长上下文数据构造pipeline。 ## ✅ 变更类型 / Type of Change <!-- 勾选对应选项 / Check the relevant options --> - [ ] 修复 Bug / Bug fix (non-breaking ...
diff --git a/docs/en/API Reference/data_process.md b/docs/en/API Reference/data_process.md index ae040d3b0..403754a8c 100644 --- a/docs/en/API Reference/data_process.md +++ b/docs/en/API Reference/data_process.md @@ -226,3 +226,9 @@ ::: lazyllm.tools.data.pipelines.preference_pipelines members: exclude-mem...
2
2
1
[{"id": "G0", "claim": "In build_phi4_pt_pipeline the llm parameter is logically required, so its None default should be removed to make llm a mandatory argument and keep the code robust.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "'build_demo_pi...
null
LazyAGI__LazyLLM__1080
LazyAGI/LazyLLM
1,080
defect
5b30224e744985d5b013c12304d40d355e322678
4e937cd2b1fa75c1e5b0869c63aa07d88f2444a5
add claude support
# 📌 PR 内容 / PR Description - Add `ClaudeChat` supplier in `supplier/claude.py` — supports chat, streaming, and tool calls via Anthropic native Messages API (`/v1/messages`) - Add `_prepare_request_data` hook to `OnlineChatModuleBase` so subclasses can transform the request body before sending - Add `format` parameter...
diff --git a/lazyllm/components/prompter/builtinPrompt.py b/lazyllm/components/prompter/builtinPrompt.py index 2d705ed34..66ac30ab2 100644 --- a/lazyllm/components/prompter/builtinPrompt.py +++ b/lazyllm/components/prompter/builtinPrompt.py @@ -183,6 +183,24 @@ def _generate_prompt_dict_impl(self, instruction, input, u...
3
3
3
[{"id": "G0", "claim": "Using `__format__` as a class attribute triggers Python name mangling, so `self.__format__` in the base class always resolves to the base's own 'openai' attribute and a subclass like ClaudeChat cannot override the format; rename the attribute (e.g. to `_format`) in both the base class and the su...
null
LazyAGI__LazyLLM__227
LazyAGI/LazyLLM
227
defect
5c4aead6d0b570ebfafb61ecd9bb513177e1b691
cc9428fec6d50b5c6f2dde5c671b8d5cdd07882e
Implement NodeConstructor for SqlTool and SqlCall
Implement NodeConstructor and add TestEngine method for sqlcall
diff --git a/LazyLLM-Env b/LazyLLM-Env index c408f86b45..1e1887d7ed 160000 --- a/LazyLLM-Env +++ b/LazyLLM-Env @@ -1 +1 @@ -Subproject commit c408f86b45df6682b7ebb943929c65dc0583eab9 +Subproject commit 1e1887d7edf57fc3590497938f444290f3029130 diff --git a/lazyllm/engine/engine.py b/lazyllm/engine/engine.py index ec45f0...
8
4
2
[{"id": "G0", "claim": "The new SQL module class should be named to distinguish it from SqlTool (reviewer suggested `SqlCallModule`), since the current name does not show the difference.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Engine-based tests s...
null
LazyAGI__LazyLLM__306
LazyAGI/LazyLLM
306
defect
8e0d7916467bb7038f2dec09327483727778770d
3a4008c4845d9005eb2a9a934e3f09815c7cb3d9
Support Reranker: setence-sf and infinity, and some bugs fixed
Support Reranker: - supported by Infinity - supported by Sentence Transformers Bugs fixed: - `Document` no attr: `_manager` - After bind `ModuleBase` object, `isinstance(xx, ModuleBase)` = False, this will cause cannot add into submodules. example: ![image](https://github.com/user-attachments/assets/b8681fdf...
diff --git a/lazyllm/components/auto/autodeploy.py b/lazyllm/components/auto/autodeploy.py index 2093fb78a..c1f4aa84a 100644 --- a/lazyllm/components/auto/autodeploy.py +++ b/lazyllm/components/auto/autodeploy.py @@ -19,16 +19,18 @@ def __new__(cls, base_model, source=lazyllm.config['model_source'], trust_remote ...
4
4
1
[{"id": "G0", "claim": "ModuleReranker should stay in the registration mechanism: register_reranker should support registering classes so that Reranker(\"ModuleReranker\") returns an instance of the registered class instead of the hardcoded `if self._name == \"ModuleReranker\":` branch.", "category": "design", "verdict...
null
LazyAGI__LazyLLM__421
LazyAGI/LazyLLM
421
defect
df3f2c15264e84792dafc11df2c33a72d0354f5d
eaf6d48eccc48501f4ef68ed1273dce992e27aac
Supported Relevance Score after Reranker, and Add Online Reranker of GLM.
- Supported relevance score after reranker by addied it to instance of DocNode; - https://github.com/LazyAGI/LazyLLM/issues/381 - 8 of https://github.com/LazyAGI/LazyLLM/issues/155 - Add online reranker of GLM.
diff --git a/lazyllm/components/deploy/infinity.py b/lazyllm/components/deploy/infinity.py index 531dbf006..8a84e23d0 100644 --- a/lazyllm/components/deploy/infinity.py +++ b/lazyllm/components/deploy/infinity.py @@ -92,4 +92,4 @@ def extract_result(x, inputs): res_list = res_list[0] retur...
2
1
0
[{"id": "G0", "claim": "Add a with_score method that returns a copy of the DocNode with the given relevance_score, instead of mutating the node.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Confirm whether the Retriever can show scores and add score su...
null
LazyAGI__LazyLLM__453
LazyAGI/LazyLLM
453
defect
1f1d83c4b9018fb494ae3df9a1dd0d49bee5c1b8
61d4e46f9dcdb5bf01eb2ba8924fbf121c7ff01e
Supportd distributed ray for vllm
![image](https://github.com/user-attachments/assets/93009ffe-f9a8-4a16-90b8-b5e6093db8d6)
diff --git a/lazyllm/components/deploy/__init__.py b/lazyllm/components/deploy/__init__.py index 2334267ba..6b77328de 100644 --- a/lazyllm/components/deploy/__init__.py +++ b/lazyllm/components/deploy/__init__.py @@ -4,6 +4,7 @@ from .vllm import Vllm from .lmdeploy import LMDeploy from .infinity import Infinity +fr...
5
5
4
[{"id": "G0", "claim": "The version check comparing the vllm version to \"0.5.0\" as a string is wrong, e.g. '0.5.0' < '0.11.0' would be False.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The RemoteLauncher included in the isinstance check of rea...
null
LazyAGI__LazyLLM__460
LazyAGI/LazyLLM
460
defect
eb542f8fb5ec1996181a9c9934bb270ef7c55fe2
57d0c9562ca2c0fb64d87b526d87021c3791244f
RAG-Generator-Metrics: ResponseRelevancy and Faithfulness
Add metrics for generator of RAG: - Response Relevancy - Faithfulness --- Response Relevancy: ![image](https://github.com/user-attachments/assets/9f2a2131-f744-48ba-8c68-3e01ebfe3bdc) Faithfulness: ![image](https://github.com/user-attachments/assets/52ab8054-a810-404e-968d-2ac6d25afe19) ProgressBar: ![i...
diff --git a/lazyllm/tools/eval/__init__.py b/lazyllm/tools/eval/__init__.py new file mode 100644 index 000000000..f9b2c743c --- /dev/null +++ b/lazyllm/tools/eval/__init__.py @@ -0,0 +1,6 @@ +from .rag_generator_metrics import ResponseRelevancy, Faithfulness + +__all__ = [ + "ResponseRelevancy", + "Faithfulness"...
8
8
1
[{"id": "G0", "claim": "BaseEvaluator should provide a `process_one_data` that calls an overridable abstract `_process_one_data_impl` instead of using the EvalMeta metaclass to wrap subclass methods, because the metaclass over-complicates the code.", "category": "design", "verdict": "supported", "priority": "P2", "scop...
null
LazyAGI__LazyLLM__481
LazyAGI/LazyLLM
481
defect
ce161a5e732289a03b9dea1f4ed156cc5cab35ee
1d5c9f0b79e1206596350f626e09232108c65a41
1、Add import operation for compile_func 2、Add checks for dangerous operations
![image](https://github.com/user-attachments/assets/8f7a872f-2611-430f-bf1c-3dbb957b77de) ![企业微信截图_17436621825135](https://github.com/user-attachments/assets/3701f859-d65a-4750-a82b-467d97649018) ![image](https://github.com/user-attachments/assets/6da8120e-5636-46c3-921c-42d0db0b3ee5)
diff --git a/lazyllm/common/utils.py b/lazyllm/common/utils.py index d2119752b..bd0aedd6d 100644 --- a/lazyllm/common/utils.py +++ b/lazyllm/common/utils.py @@ -28,14 +28,65 @@ def check_path( makedirs(dir_path, exist_ok=True) return path +class SecurityVisitor(ast.NodeVisitor): + """Detects pote...
2
1
1
[{"id": "G0", "claim": "The visit_* method names of the new SecurityVisitor should be lowercase.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add test cases using `with pytest.raises` to ensure the dangerous-operation error logic is correct and reports t...
null
LazyAGI__LazyLLM__484
LazyAGI/LazyLLM
484
defect
c41f67cc4ca316d98f5bbbfddc33c3651d5d3904
525044f1fe43e531e9604a123dd4a16c684a04a7
Add SFT for Embedding and Reranker Models by FlagEmbedding
## Feature Supported SFT for Embedding and Reranker models. ![image](https://github.com/user-attachments/assets/a7daa9f1-3435-4d4c-950a-1e9942aac0ad) DOCS ![image](https://github.com/user-attachments/assets/01109797-bc30-4f8b-86be-8b2464fd6039)
diff --git a/docs/en/API Reference/components.md b/docs/en/API Reference/components.md index ad6624fc9..fc234f612 100644 --- a/docs/en/API Reference/components.md +++ b/docs/en/API Reference/components.md @@ -12,6 +12,10 @@ options: heading_level: 3 +::: lazyllm.components.finetune.FlagembeddingFinetune...
1
1
0
[{"id": "G0", "claim": "Rename the newly added public property after_finetune_model_path to finetune_model_path as previously discussed, and give the pre-existing _finetuned_model_path attribute a more fitting name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
LazyAGI__LazyLLM__752
LazyAGI/LazyLLM
752
defect
6755ffb27ebaf1d980c7e3097ac315143c1d9930
850cd7c7969cbb7250ad2724a01d512f5ef4c1f1
[Imporvement]: Modify parallel embedding for batch node upserting in RAG
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - 优化RAG过程中批量embedding的逻辑,支持线上模型的批量请求 - embed_wrapper改为了class,支持直接获取内部callable的变量 - 增强MapStore:传入uri时,增删改查以sqlite优先,以支持使用Doc Processor时多进程调用的数据共享(而非只在内存中读写) ## ✅ 变更类型 / Type of Change <!-- 勾选对应选项 / Check the relevant...
diff --git a/lazyllm/module/llms/onlinemodule/base/onlineEmbeddingModuleBase.py b/lazyllm/module/llms/onlinemodule/base/onlineEmbeddingModuleBase.py index 19ffd4f16..d7eb85614 100644 --- a/lazyllm/module/llms/onlinemodule/base/onlineEmbeddingModuleBase.py +++ b/lazyllm/module/llms/onlinemodule/base/onlineEmbeddingModul...
2
2
1
[{"id": "G0", "claim": "The per-element type validation in _normalize (_is_vector/_is_matrix) is expensive and only serves error reporting, so it should be skipped in normal mode and replaced with a TODO to check in a future debug mode.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "in...
null
LazyAGI__LazyLLM__776
LazyAGI/LazyLLM
776
defect
ee681c496ca4d69e0d86bab59832a5455fd0e740
6f275112d0ffb9b7fed931655bdc8409ba2b7704
[Optimization] Solve the repeated initialization of bm25
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> This pull request introduces several optimizations and improvements to the LazyLLM project. The primary changes include: ### 1. Optimization of BM25 Initialization: Fixed the issue of repeated initialization of BM25, wh...
diff --git a/docs/en/API Reference/tools.md b/docs/en/API Reference/tools.md index 67575959d..eedad1bcd 100644 --- a/docs/en/API Reference/tools.md +++ b/docs/en/API Reference/tools.md @@ -8,7 +8,7 @@ members: [connect_sql_manager, get_sql_manager, extract_db_schema, update_database, create_kb_group, activate_gr...
6
5
3
[{"id": "G0", "claim": "Make the store usable from existing configurations after the ChromadbStore→ChromaStore rename, so that config/usage sites accept both the old chromadb naming and the new chroma one — for example by keeping ChromadbStore and defining ChromaStore as its subclass.", "category": "design", "verdict":...
null
LazyAGI__LazyLLM__78
LazyAGI/LazyLLM
78
defect
dffcc65ed9c05252674385499fd145f7b5994a89
d244a9c0fe054e0641c2358092a770e340c890ca
Fixed bug: lost prompt, loop.run_in_executor not support kargs
1. lost prompt; 2. async of loop.run_in_executor not support kargs; 3. ` image` ref before assign
diff --git a/README.CN.md b/README.CN.md index 5ab6331b4..226bc7ea0 100644 --- a/README.CN.md +++ b/README.CN.md @@ -72,7 +72,7 @@ prompt = '你将扮演一个人工智能问答助手的角色,完成一项对 </details> ```python -documents = Document(dataset_path='/file/to/yourpath', embed=TrainableModule('bge-large-zh-v1.5')) +documents = Document(dataset_...
1
1
1
[{"id": "G0", "claim": "Add a test case that shares B from a TrainableModule A that has a Prompt, verifies B's prompt equals A's original prompt, then modifies A's prompt and verifies B's prompt does not change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
LazyAGI__LazyLLM__781
LazyAGI/LazyLLM
781
defect
642f228ef064bfa8de19758f85a9299470d7768f
2838a623d69144e1b797ea9fea5d67e86e843280
[Optimization] Enable Default Params Injection in Milvus Database
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - This PR introduces the functionality of enabling default parameters injection in the Milvus component. **Default Params Injection:** Added a feature to inject default index parameters into the Milvus database. This sim...
diff --git a/lazyllm/tools/rag/store/vector/milvus_store.py b/lazyllm/tools/rag/store/vector/milvus_store.py index d401c9151..92dec9fe3 100644 --- a/lazyllm/tools/rag/store/vector/milvus_store.py +++ b/lazyllm/tools/rag/store/vector/milvus_store.py @@ -20,7 +20,21 @@ MILVUS_UPSERT_BATCH_SIZE = 500 MILVUS_PAGINATION_O...
8
6
5
[{"id": "G0", "claim": "In `_ensure_params_defaults`, a missing `index_type` should raise an exception instead of only logging an error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "`_ensure_params_defaults` should also be applied when `index_kwar...
null
LazyAGI__LazyLLM__790
LazyAGI/LazyLLM
790
defect
f13f9c2741f521dfc24795318ea9571c0b3f92b8
d0d4b38d0dfc2d7ec3af23175bc400fbae1f8e6e
fix validate_api_key
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/lazyllm/module/llms/onlinemodule/supplier/deepseek.py b/lazyllm/module/llms/onlinemodule/supplier/deepseek.py index 77a09b947..5486285c4 100644 --- a/lazyllm/module/llms/onlinemodule/supplier/deepseek.py +++ b/lazyllm/module/llms/onlinemodule/supplier/deepseek.py @@ -1,4 +1,5 @@ from urllib.parse import u...
4
3
1
[{"id": "G0", "claim": "The pull request should not contain Chinese-language comments (and docstrings); they must be translated into English.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Single quotes should be preferred over double quotes in ...
null
LazyAGI__LazyLLM__793
LazyAGI/LazyLLM
793
defect
2da48657ded2c3fadb05c29e9f29844f47acd9eb
74e9a3ea785f163f3e0c3d2b84eeda68f0028ffd
[Feature] Siliconflow series online model support
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/lazyllm/module/llms/onlinemodule/chat.py b/lazyllm/module/llms/onlinemodule/chat.py index 2587a47d6..cee439b26 100644 --- a/lazyllm/module/llms/onlinemodule/chat.py +++ b/lazyllm/module/llms/onlinemodule/chat.py @@ -8,6 +8,7 @@ from .supplier.qwen import QwenModule from .supplier.doubao import DoubaoModu...
10
10
4
[{"id": "G0", "claim": "Rename the multimodal base class SiliconFlowBase to SiliconFlowMultiModal.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reorder the imports, fill in the VLM_MODEL_PREFIX list, and adjust code style to prefer single quot...
null
LazyAGI__LazyLLM__808
LazyAGI/LazyLLM
808
defect
55d03a2368820a9764c4221e2579d5293c05c954
c008fb29e9735260ae7f4fdc4efc38325c24d507
[Bugfix] add embed key preprocess for milvus
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - 给milvus store添加用户输入store_conf中embed key的预处理 1. store_conf内的embedding需要包含所有Document的embed_key 2. store_conf只有一个embedding,且没有给embed key,添加默认__default__ 3. store_conf有多个embedding,且只有一个没有给embed key,会添加缺少的embed key 4. stor...
diff --git a/lazyllm/tools/rag/store/vector/milvus_store.py b/lazyllm/tools/rag/store/vector/milvus_store.py index f5c63097ed..d983319926 100644 --- a/lazyllm/tools/rag/store/vector/milvus_store.py +++ b/lazyllm/tools/rag/store/vector/milvus_store.py @@ -92,6 +92,7 @@ def connect(self, embed_dims: Optional[Dict[str, in...
6
5
1
[{"id": "G0", "claim": "validate_milvus_embed_keys should uniformly traverse all index_kwargs and use _embed_datatypes to add the sparse/dense info, raising an error when a user-provided configuration is inconsistent with _embed_datatypes and filling it in otherwise.", "category": "correctness", "verdict": "supported",...
null
LazyAGI__LazyLLM__818
LazyAGI/LazyLLM
818
defect
fae68c6defcd192f5a9f981e4571a1bedbc47bdf
241fa7d83c3cfcf7f1f30a7fba33e5027507490d
Onlinechatmodule type auto recognition
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/lazyllm/module/llms/onlinemodule/map.py b/lazyllm/module/llms/onlinemodule/map.py new file mode 100644 index 0000000000..284793e1c1 --- /dev/null +++ b/lazyllm/module/llms/onlinemodule/map.py @@ -0,0 +1,94 @@ +import lazyllm +import logging +logger = logging.getLogger(__name__) + +MODEL_MAPPING = { + # ...
8
8
6
[{"id": "G0", "claim": "The MODEL_MAPPING list is far too small; pull the complete model list from every provider into it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new model-type logic should follow the existing implementation in lazyllm/c...
null
LazyAGI__LazyLLM__840
LazyAGI/LazyLLM
840
defect
4f9a7ab2d495ea74aac49de689034340720a5b37
14a106c953e6698e6ff7a165ab6ba607cf469dc8
[Refactor] Integrate ability of watching change of files for test cases
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index da226591ed..27810a2391 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,6 @@ on: paths-ignore: - "**.md" - ".git*" - - "docs/assets/**" - "docs/**" pull_request: branches:...
10
6
1
[{"id": "G0", "claim": "The reviewer questions why the 'docs/assets/**' entry was removed from the workflow's paths-ignore list.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add a newline at the end of .github/workflows/main.yml.", "category": "main...
null
LazyAGI__LazyLLM__841
LazyAGI/LazyLLM
841
defect
4f9a7ab2d495ea74aac49de689034340720a5b37
9255ddca91812ba44a5de8456d0fec057896577c
[Feature] MiniMax series online model support
## 📌 PR 内容 / PR Description - 增加MiniMax API适配 ## 🔍 相关 Issue / Related Issue - ## ✅ 变更类型 / Type of Change - [ ] 修复 Bug / Bug fix (non-breaking change that fixes an issue) - [x] 新功能 / New feature (non-breaking change that adds functionality) - [ ] 重构 / Refactor (no functionality change, code structure optim...
diff --git a/.github/workflows/macOS_test.yml b/.github/workflows/macOS_test.yml index 2058ac68b..076675e2a 100644 --- a/.github/workflows/macOS_test.yml +++ b/.github/workflows/macOS_test.yml @@ -317,6 +317,7 @@ jobs: LAZYLLM_DOUBAO_MODEL_NAME: ${{ secrets.LAZYLLM_DOUBAO_MODEL_NAME }} LAZYLLM_SILIC...
6
6
2
[{"id": "G0", "claim": "The CI workflow environments should also export LAZYLLM_MINIMAX_MODEL_NAME, not only LAZYLLM_MINIMAX_API_KEY, as the other suppliers do.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Delete the self._return_trace branches in...
null
LazyAGI__LazyLLM__857
LazyAGI/LazyLLM
857
defect
85c921c08e21492c2c575ea6c56d68b213777e70
33c87cc910a82593f291573f80aaba9074ec9d7f
[Bug fix] File Encoding Auto-detection in TxtReader
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - 在LazyLLMReaderBase类内添加了检测文件编码格式,并根据实际文件格式进行读取。 - 实现过程中修了DirectoryReader内的一个类和实例初始化的bug - 添加大量编码检测流程优化 ## 🔍 相关 Issue / Related Issue <!-- 例如:Fix #123 / Close #456 --> - <img width="630" height="138" alt="image" src...
diff --git a/lazyllm/thirdparty/modules.py b/lazyllm/thirdparty/modules.py index 8cb05950c..f3c312184 100644 --- a/lazyllm/thirdparty/modules.py +++ b/lazyllm/thirdparty/modules.py @@ -7,4 +7,5 @@ 'zlib', 'struct', 'olefile', 'spacy', 'tarfile', 'boto3', 'botocore', 'paddleocr', 'volcenginesdkarkruntime', ...
4
4
3
[{"id": "G0", "claim": "Remove sqlalchemy from the third-party module allowlist added in modules.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "charset_normalizer.from_path(file_path).best() may return None so accessing .encoding can raise; ...
null
LazyAGI__LazyLLM__88
LazyAGI/LazyLLM
88
defect
e70f706443e885e3235bcf220e556f14029bbfae
54476e9cfd87aac8d71f50870761b40be3bd6daa
Support MultiModal and LMDeploy
- Support MultiModal : - llava-1.5-7b, llava-1.5-13b - internvl-chat-2b-v1-5, internvl-chat-v1-5 - Support LMDeploy ![image](https://github.com/user-attachments/assets/93f79198-24a2-424e-9b67-726d742ef0bf)
diff --git a/lazyllm/components/deploy/__init__.py b/lazyllm/components/deploy/__init__.py index f93ee2fa6..a6de56715 100644 --- a/lazyllm/components/deploy/__init__.py +++ b/lazyllm/components/deploy/__init__.py @@ -2,6 +2,8 @@ from .relay import RelayServer, FastapiApp from .lightllm import Lightllm from .vllm imp...
2
2
1
[{"id": "G0", "claim": "Add a special marker string to identify inputs that need files parsing instead of trying to json.loads every string.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Wrap the flow in a ServerModule and verify it works, with the test...
null
LazyAGI__LazyLLM__891
LazyAGI/LazyLLM
891
defect
ecfd204d67d89ebbf1660754010e77500e614d93
39611375fb7223dcd5ee3f86f0ebcb454b416743
add PowerMem support for memory module
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/.env.memory b/.env.memory new file mode 100644 index 000000000..829518fed --- /dev/null +++ b/.env.memory @@ -0,0 +1,223 @@ +# ============================================================================= +# PowerMem Configuration Template +# ================================================================...
9
8
4
[{"id": "G0", "claim": "The .env.memory template still uses the old PowerMem configuration keys and needs to be adapted to the latest powermem 0.2.0 .env.example format.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "PowerMemMemory should hand back ...
null
LazyAGI__LazyLLM__898
LazyAGI/LazyLLM
898
defect
1d00fde70143d74499059b07fa74cfcdf5c1f5b1
83b231db383799bc505e7956bc01a0e97a71c9c6
add ppio supplier for OnlineChatModule
## 📌 PR 内容 / PR Description 添加 PPIO (派欧云) 在线聊天模块集成,支持通过 OpenAI 兼容的 API 接口使用 PPIO 提供的在线模型服务。 ## 🔍 相关 Issue / Related Issue - ## ✅ 变更类型 / Type of Change - [x] 新功能 / New feature (non-breaking change that adds functionality) ## 🧪 如何测试 / How Has This Been Tested? 1. 设置环境变量 `LAZYLLM_PPIO_API_KEY=your_api_key...
diff --git a/examples/chatbot_ppio.py b/examples/chatbot_ppio.py new file mode 100644 index 000000000..6d0f7dc44 --- /dev/null +++ b/examples/chatbot_ppio.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +''' +PPIO (Paiou Cloud) chatbot example. + +Before running, set environment variable: +export LAZYLLM_PPIO_API_KEY=your...
3
3
1
[{"id": "G0", "claim": "The class-level documentation should instead go in lazyllm/lazyllm/docs/module.py in both Chinese and English and be added via add_example, and the module should be exported in docs/en/API Reference/module.md and docs/zh/API Reference/module.md, with no documentation in the code.", "category": "...
null
LazyAGI__LazyLLM__899
LazyAGI/LazyLLM
899
defect
1d00fde70143d74499059b07fa74cfcdf5c1f5b1
4a436571d239c20d642f3938454e001f1d5cdefa
add PaddleocrPDFReader
## 📌 PR 内容 / PR Description paddleocrPDFReader ## 🔍 相关 Issue / Related Issue ## ✅ 变更类型 / Type of Change <!-- 勾选对应选项 / Check the relevant options --> - [ ] 修复 Bug / Bug fix (non-breaking change that fixes an issue) - [x] 新功能 / New feature (non-breaking change that adds functionality) - [ ] 重构 / Refactor (...
diff --git a/lazyllm/docs/tools.py b/lazyllm/docs/tools.py index 71b416e1a..a6196f885 100644 --- a/lazyllm/docs/tools.py +++ b/lazyllm/docs/tools.py @@ -1993,6 +1993,62 @@ class TestSchema(BaseModel): Defaults to None. ''') +add_chinese_doc('rag.readers.PaddleOCRPDFReader', '''\ +基于PaddleOCR服务的PDF解析器,通过调用Pa...
3
2
0
[{"id": "G0", "claim": "Add a lazyllm config entry (e.g. lazyllm.config.add('paddle_ocr_url', ...)) so the PaddleOCR service URL is configurable.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add deployment instructions to the PaddleOCRPDFReader documen...
null
LazyAGI__LazyLLM__911
LazyAGI/LazyLLM
911
defect
35e1d431d2364dddb52017c1a640da8f01fa5c6d
e676c28de18baf93457d3d30f4bc357920aa4e11
feat: add support for aiping service
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/lazyllm/module/llms/onlinemodule/base/onlineChatModuleBase.py b/lazyllm/module/llms/onlinemodule/base/onlineChatModuleBase.py index 4d7f4f224..ed01dfb16 100644 --- a/lazyllm/module/llms/onlinemodule/base/onlineChatModuleBase.py +++ b/lazyllm/module/llms/onlinemodule/base/onlineChatModuleBase.py @@ -135,6 +...
6
6
3
[{"id": "G0", "claim": "The added Chinese inline comment in _merge_stream_result is meaningless and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The base URL should not be set through a direct os.environ.get environment vari...
null
LazyAGI__LazyLLM__922
LazyAGI/LazyLLM
922
defect
9199f71007045d9c4ad8e20d4921ece1922e3a23
3e65332bba07c8e43b2f2e65f1dc299fe273c81b
[Refactor] `tools`: lazy import modules and deps check
## 📌 PR 内容 / PR Description - `tools`内部的模块添加延迟加载 - 各个模块在加载前检查必备依赖库是否安装 ## 🔍 相关 Issue / Related Issue <!-- 例如:Fix #123 / Close #456 --> - ## ✅ 变更类型 / Type of Change <!-- 勾选对应选项 / Check the relevant options --> - [ ] 修复 Bug / Bug fix (non-breaking change that fixes an issue) - [x] 新功能 / New feature (non-b...
diff --git a/lazyllm/common/dep_check.py b/lazyllm/common/dep_check.py new file mode 100644 index 000000000..8dd297faf --- /dev/null +++ b/lazyllm/common/dep_check.py @@ -0,0 +1,31 @@ +import importlib.metadata +from typing import List +from lazyllm.common import LOG + +def check_package_installed(package_name: str | L...
3
3
2
[{"id": "G0", "claim": "A fallback is needed and get_pip_install_cmd must no longer be able to return None, so that missing packages are always reported with a proper install command.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new dependency...
null
LazyAGI__LazyLLM__926
LazyAGI/LazyLLM
926
defect
7a6cb1381119efebdaffd97195cd4a095e62d38e
f284192e2029b9bf4ddb306ce6c5c21dfeff8da9
Add OnlineModule to Unify All Online Modules
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/lazyllm/__init__.py b/lazyllm/__init__.py index 588209164..85d41167a 100644 --- a/lazyllm/__init__.py +++ b/lazyllm/__init__.py @@ -15,7 +15,7 @@ from .module import (ModuleBase, ModuleBase as Module, UrlModule, TrainableModule, ActionModule, ServerModule, TrialModule, register as ...
12
11
6
[{"id": "G0", "claim": "The OnlineModule docs/init expose duplicated parameters (base_url vs embed_url, model vs embed_model_name); keep only model and url and forward internally, and mark the url parameter as Optional.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1...
null
LazyAGI__LazyLLM__930
LazyAGI/LazyLLM
930
defect
250112dedf514874cdb97e8662e3d3ebd9eb3085
1ef39ddd477d08931f3ff18fc4d6621518066ba5
[Feature] Enhance Automodel
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/lazyllm/docs/module.py b/lazyllm/docs/module.py index 803da918de..ac6c3c41ca 100644 --- a/lazyllm/docs/module.py +++ b/lazyllm/docs/module.py @@ -1448,21 +1448,33 @@ ''') add_chinese_doc('AutoModel', '''\ -用于部署在线 API 模型或本地模型的模块,支持加载在线推理模块或本地可微调模块。 +用于快速创建在线推理模块 OnlineModule 或本地 TrainableModule 的工厂类。它会优...
19
19
3
[{"id": "G0", "claim": "The `id` parameter handling is redundant - module_kwargs.pop('id', None) is meaningless - and the parameter should be renamed to config_id.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Parameter naming should be unified...
null
LazyAGI__LazyLLM__934
LazyAGI/LazyLLM
934
defect
da7df5955af70d4c758a5641c0826749348ac48d
28f8f9847c3ec2471a84e85cd2d66d662f325d1c
[Feature] Document support getting nodes from store
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - 支持使用document从存储直接获取过滤条件内的DocNodes - DocNode新增number属性 ## ✅ 变更类型 / Type of Change <!-- 勾选对应选项 / Check the relevant options --> - [ ] 修复 Bug / Bug fix (non-breaking change that fixes an issue) - [x] 新功能 / New featu...
diff --git a/lazyllm/docs/tools.py b/lazyllm/docs/tools.py index 5c08357f9..cc643cbcc 100644 --- a/lazyllm/docs/tools.py +++ b/lazyllm/docs/tools.py @@ -740,6 +740,62 @@ str: The generated ``schema_set_id``. ''') +add_chinese_doc('Document.get_nodes', '''\ +按条件获取节点列表。 + +Args: + uids (Optional[List[str]]): 指...
4
4
2
[{"id": "G0", "claim": "In `_remove_uid`'s else branch the index sets (backed by defaultdict) are culled with `set.remove()`, which raises KeyError when the uid is not present; use `discard()` there as well to avoid a potential runtime error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
LazyAGI__LazyLLM__942
LazyAGI/LazyLLM
942
defect
4453aef4305b93c856796f39b0306c39f0cacf60
5328619783024668ece86784b7d138c4bcd0c92a
[FIx] fix default embed key missing for remote UrlDocument
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - 修复了使用urldocument检索时不传入embed_keys检索失败的问题 - Retriever模块内部针对UrlDocument增加了参数校验与embedkeys自动补齐 - 在./lazyllm/examples下新增rag_with_parsing_service示例,展示如何使用远程注册、远程检索 ## 🔍 相关 Issue / Related Issue <!-- 例如:Fix #123 / Close #4...
diff --git a/examples/rag_with_parsing_service/document.py b/examples/rag_with_parsing_service/document.py new file mode 100644 index 000000000..3ca0f350e --- /dev/null +++ b/examples/rag_with_parsing_service/document.py @@ -0,0 +1,63 @@ +import os +import tempfile +import threading +from lazyllm.tools.rag.parsing_serv...
2
2
1
[{"id": "G0", "claim": "When several Documents with different embed keys are passed and embed_keys is None, the value computed by _validate_remote_vec_retr_params for one UrlDocument leaks through the global embed_keys into the next Document instead of each Document getting its own default key; the Retriever should mai...
null
LazyAGI__LazyLLM__954
LazyAGI/LazyLLM
954
defect
037bc9714d634aa099ae132d9f6e668e0cf52fc1
c9c1685b53e64ef2241ff1b8481b1dce61b7193d
feat:use similarity BM25 text search for MapStore
## Summary Implement full-text search functionality for `MapStore` using BM25 algorithm with caching support. ## Changes - Replace `NotImplementedError` with functional `search()` method - Add BM25 index cache with thread-safe access (`_bm25_cache`, `_bm25_cache_lock`) - Implement `_search_by_text()` using BM25 algori...
diff --git a/lazyllm/docs/tools.py b/lazyllm/docs/tools.py index 5c08357f9..28ca44cba 100644 --- a/lazyllm/docs/tools.py +++ b/lazyllm/docs/tools.py @@ -10202,15 +10202,15 @@ def _lazy_load_data(self, file_paths: list, **kwargs) -> Iterable[DocNode]: add_chinese_doc('rag.store.hybrid.MapStore', """\ 基于SQLite的Map存储类,继...
7
7
4
[{"id": "G0", "claim": "Vector-based retrieval is unnecessary at the MapStore layer, so the store should stay minimal and focused on BM25-based full-text search only, leaving broader retrieval to higher-level store/index implementations.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introd...
null
LazyAGI__LazyLLM__972
LazyAGI/LazyLLM
972
defect
7a447dcbc1ff0ceee2af143beb14e55cec0759b8
e5e6cee47eb1f589175f7ffcd7503f7929a0037f
[Bugfix] Fix bug in ci (Online Model and Schemaextract)
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - 修复ci中部分模型初始化的错误 - 修复SchemaExtractor中删除文件的错误 ## ✅ 变更类型 / Type of Change <!-- 勾选对应选项 / Check the relevant options --> - [x] 修复 Bug / Bug fix (non-breaking change that fixes an issue) - [ ] 新功能 / New feature (non-brea...
diff --git a/lazyllm/engine/engine.py b/lazyllm/engine/engine.py index 50b7b0109..43383e2ae 100644 --- a/lazyllm/engine/engine.py +++ b/lazyllm/engine/engine.py @@ -745,7 +745,7 @@ def make_online_vqa(source: str = None, base_model: Optional[str] = None, prompt stream: bool = False, token: Optional...
1
1
0
[{"id": "G0", "claim": "The expression `default_key or None` in select_source_with_default_key is redundant because default_key is already None when the key is absent from config, and it would turn an empty-string config value into None with possible side effects, so the function should return `default_key` directly.",...
null
LazyAGI__LazyLLM__977
LazyAGI/LazyLLM
977
defect
42944214af14d7479fdc6c1100a9068f3843a352
e074907ae42b4e81f646967972ac15e4c5fab481
[Feature] C++ Extension: Introduce scaffolding of build and test
<!-- 在提交PR之前,请认真阅读以下规则。 1. 我们每行的字符限制是120,提交代码前请在保持语义清晰的基础上,尽你所能的压缩代码行数 2. 我们强制要求单引号优先;但由于一些历史提交的文件并没有做相关要求,因此代码仓库中还存在一些不规范的代码,如果你修改到某个文件,请顺便处理整个文件,变成单引号优先。 3. 我们禁止在代码中使用print,请在提交之前删除所有的print语句 4. 我们禁止无意义的注释,包括重复一遍函数名,翻译代码,显而易见。注释应该讲“为什么这么写”,即对一大段代码讲解执行逻辑、设计思路、参考来源或解决了什么问题。 5. 在提交PR之前,请在你的分支上执行如下命令 ```bash pip...
diff --git a/.github/workflows/cpp_ext.yml b/.github/workflows/cpp_ext.yml new file mode 100644 index 000000000..896d20685 --- /dev/null +++ b/.github/workflows/cpp_ext.yml @@ -0,0 +1,56 @@ +name: C++ Extension Test +on: + workflow_dispatch: + push: + # branches: + # - main + paths-ignore: + - "**.md"...
7
4
1
[{"id": "G0", "claim": "The `find_package(Python3 COMPONENTS ...)` call lists the `Development` component twice, which is likely a typo and could cause issues on some systems.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Using `file(GLOB_RECURSE)`...
null
LazyAGI__LazyLLM__980
LazyAGI/LazyLLM
980
defect
fca7ec4a6b7661fe7ab3a62ce657794414155fa8
d7af184e58a4972e6296bb120b9b152c24ab080e
feat(rag): Add ref support for node groups
## 📌 PR 内容 / PR Description <!-- 简要描述本次 PR 的改动点 / Briefly describe the changes in this PR --> - 为 RAG 模块的 node group 添加 `ref` 引用功能,允许节点组引用其他节点组中的节点 - 在所有存储后端(MapStore、OceanBase、SenseCore、ElasticSearch、OpenSearch)添加 `ref` 字段支持 - 使用拓扑排序处理节点组之间的依赖关系 - 在 transform 中传递 ref 节点给转换函数 ## 🔍 相关 Issue / Related Issue <!-- 例如:Fi...
diff --git a/lazyllm/tools/rag/doc_impl.py b/lazyllm/tools/rag/doc_impl.py index 70c9d0fff..d70aac024 100644 --- a/lazyllm/tools/rag/doc_impl.py +++ b/lazyllm/tools/rag/doc_impl.py @@ -108,11 +108,28 @@ def _init_node_groups(self): self._activated_groups = set([g for g in self._activated_groups if g in node_gr...
8
6
6
[{"id": "G0", "claim": "The DocNode.ref getter can put None values into self._ref when a referenced node is not found, contradicting the List['DocNode'] type hint and risking a downstream AttributeError, and it re-resolves and reassigns self._ref on every access; filtering the None values out would be safer.", "categor...
null