-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement prototype of agent grpc server #2492
Conversation
WalkthroughWalkthroughThe recent updates have significantly enhanced the Rust agent's capabilities by integrating new dependencies and expanding gRPC functionalities across various operations like indexing, inserting, removing, searching, updating, and upserting. The agent's server is now asynchronous with Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
[CHATOPS:HELP] ChatOps commands.
|
0c207af
to
75afe44
Compare
Deploying vald with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
rust/Cargo.lock
is excluded by!**/*.lock
Files selected for processing (12)
- rust/bin/agent/Cargo.toml (1 hunks)
- rust/bin/agent/src/handler.rs (1 hunks)
- rust/bin/agent/src/handler/common.rs (1 hunks)
- rust/bin/agent/src/handler/index.rs (1 hunks)
- rust/bin/agent/src/handler/insert.rs (1 hunks)
- rust/bin/agent/src/handler/remove.rs (1 hunks)
- rust/bin/agent/src/handler/search.rs (1 hunks)
- rust/bin/agent/src/handler/update.rs (1 hunks)
- rust/bin/agent/src/handler/upsert.rs (1 hunks)
- rust/bin/agent/src/main.rs (1 hunks)
- rust/libs/proto/Cargo.toml (1 hunks)
- rust/libs/proto/src/lib.rs (1 hunks)
Files skipped from review as they are similar to previous changes (12)
- rust/bin/agent/Cargo.toml
- rust/bin/agent/src/handler.rs
- rust/bin/agent/src/handler/common.rs
- rust/bin/agent/src/handler/index.rs
- rust/bin/agent/src/handler/insert.rs
- rust/bin/agent/src/handler/remove.rs
- rust/bin/agent/src/handler/search.rs
- rust/bin/agent/src/handler/update.rs
- rust/bin/agent/src/handler/upsert.rs
- rust/bin/agent/src/main.rs
- rust/libs/proto/Cargo.toml
- rust/libs/proto/src/lib.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (8)
- rust/bin/agent/src/handler.rs (1 hunks)
- rust/bin/agent/src/handler/common.rs (1 hunks)
- rust/bin/agent/src/handler/index.rs (1 hunks)
- rust/bin/agent/src/handler/insert.rs (1 hunks)
- rust/bin/agent/src/handler/remove.rs (1 hunks)
- rust/bin/agent/src/handler/search.rs (1 hunks)
- rust/bin/agent/src/handler/update.rs (1 hunks)
- rust/bin/agent/src/handler/upsert.rs (1 hunks)
Files skipped from review as they are similar to previous changes (7)
- rust/bin/agent/src/handler.rs
- rust/bin/agent/src/handler/common.rs
- rust/bin/agent/src/handler/index.rs
- rust/bin/agent/src/handler/insert.rs
- rust/bin/agent/src/handler/remove.rs
- rust/bin/agent/src/handler/update.rs
- rust/bin/agent/src/handler/upsert.rs
Additional comments not posted (12)
rust/bin/agent/src/handler/search.rs (12)
20-25
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
search
method.
28-33
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
search_by_id
method.
38-44
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
stream_search
method.
49-55
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
stream_search_by_id
method.
57-63
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
multi_search
method.
65-71
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
multi_search_by_id
method.
73-79
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
linear_search
method.
81-87
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
linear_search_by_id
method.
92-98
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
stream_linear_search
method.
103-110
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
stream_linear_search_by_id
method.
112-118
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
multi_linear_search
method.
120-126
: Placeholder implementation detected.Ensure that there is a tracking issue or detailed TODO comment for implementing the
multi_linear_search_by_id
method.
55e681e
to
61f68f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review Details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
rust/Cargo.lock
is excluded by!**/*.lock
Files selected for processing (12)
- rust/bin/agent/Cargo.toml (1 hunks)
- rust/bin/agent/src/handler.rs (1 hunks)
- rust/bin/agent/src/handler/common.rs (1 hunks)
- rust/bin/agent/src/handler/index.rs (1 hunks)
- rust/bin/agent/src/handler/insert.rs (1 hunks)
- rust/bin/agent/src/handler/remove.rs (1 hunks)
- rust/bin/agent/src/handler/search.rs (1 hunks)
- rust/bin/agent/src/handler/update.rs (1 hunks)
- rust/bin/agent/src/handler/upsert.rs (1 hunks)
- rust/bin/agent/src/main.rs (1 hunks)
- rust/libs/proto/Cargo.toml (1 hunks)
- rust/libs/proto/src/lib.rs (1 hunks)
Files skipped from review as they are similar to previous changes (12)
- rust/bin/agent/Cargo.toml
- rust/bin/agent/src/handler.rs
- rust/bin/agent/src/handler/common.rs
- rust/bin/agent/src/handler/index.rs
- rust/bin/agent/src/handler/insert.rs
- rust/bin/agent/src/handler/remove.rs
- rust/bin/agent/src/handler/search.rs
- rust/bin/agent/src/handler/update.rs
- rust/bin/agent/src/handler/upsert.rs
- rust/bin/agent/src/main.rs
- rust/libs/proto/Cargo.toml
- rust/libs/proto/src/lib.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for late review 🙏
LGTM!
Description
implement agent prototype of gRPC server using tonic.
I use
todo
macros in the implementation of the API functions.Related Issue
Versions
Checklist
Special notes for your reviewer
Summary by CodeRabbit
New Features
Enhancements
Documentation