-
Notifications
You must be signed in to change notification settings - Fork 2
Feat/private memory/rag integ #419
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
base: main
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @henrypark133, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the application's capabilities by integrating a RAG-based private memory system, allowing users to create and manage vector stores for file search. It establishes a new API surface, introduces dedicated services for interacting with an external RAG service, and sets up the necessary database persistence and routing. The changes enable robust management of vector stores and their associated files, ensuring proper workspace isolation and authentication, while also providing a flexible and extensible architecture for future RAG-related features. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request introduces a significant new feature: vector store integration with a RAG service, adding new API routes, data models, service-layer logic, and database tables. However, a high-severity Broken Access Control (IDOR) vulnerability has been identified in the file batch creation logic, potentially allowing unauthorized file access due to inconsistent input verification. Additionally, several endpoints are susceptible to Mass Assignment. The review also focuses on improving the robustness of request handling in new API endpoints and cleaning up unused code. It is recommended to enforce strict validation and use typed structs for all service-layer interactions.
9d0b1c8 to
2c137cb
Compare
This comment was marked as resolved.
This comment was marked as resolved.
3e7cfc5 to
daa6786
Compare
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add #[automock] to RagServiceTrait to enable mock-based testing of vector store endpoints. Introduce 15 happy-case e2e tests covering all vector store CRUD, search, file, and file batch endpoints. Also bump transitive dep `time` 0.3.44 -> 0.3.47 to fix RUSTSEC-2026-0009. Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com>
- Add missing description field to CreateVectorStoreFilter - Remove unused RagFileMetadataEntry struct (dead code) - Forward per-file attributes/chunking_strategy overrides in batch creation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22bc855 to
15d2188
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.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Note
Medium Risk
Introduces new externally-calling RAG proxy logic and new authenticated endpoints plus a DB migration; failures or mismatched ID/pagination handling could impact API behavior, though changes are mostly additive and guarded when RAG is unconfigured.
Overview
Adds a Vector Stores API surface (CRUD, search, file attach/detach, and file-batch operations) and wires it into routing, OpenAPI, and application state via a new
vector_store_service.Introduces an optional VPC RAG integration (
RagServiceClient+ApiConfig.rag_service) and a thinVectorStoreServiceImplproxy that enforces workspace scoping via a newvector_storesref table, validates referenced files, filters request fields to avoid mass-assignment, and adds/strips new ID prefixes (vs_,vsfb_). When RAG is not configured, endpoints fail gracefully viaNotConfiguredRagService.Extends persistence and tests: adds migration/repository for
vector_stores, expands the file repository port to support batch lookup by IDs, and adds end-to-end vector store tests with injectable mock RAG; also fixes MCP-factory test wiring to preservefile_search_providerinstead of dropping it.Written by Cursor Bugbot for commit cd66e14. This will update automatically on new commits. Configure here.