adding source checks and source_text option#67
adding source checks and source_text option#67djarecka wants to merge 11 commits intosensein:improvementfrom
Conversation
…into ups/improvement
…into ups/improvement
…into ups/improvement
…if it is an existing path; adding click.Paths to all options that should be existing texts
Summary of ChangesHello @djarecka, 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 refactors how input sources are handled within the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
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.
Code Review
The pull request introduces a separate source_text option and adds path existence checks for the source argument in the CLI, which improves input validation. However, there is a critical bug in StructSenseFlow.__init__ where the variable processed_data is used but its definition has been commented out, leading to a NameError. Additionally, the run_agent command in the CLI remains inconsistent with the updated extract command, and error handling in process_input_data has been reduced. Please address the NameError in app.py as a priority.
We do not support batch content, i.e., like all files in folder but we do support text content (raw) + txt file. all passed with source argument. Initially, we had different argument but we went back. |
|
@tekrajchhetri - I was asking about teh folder, since that was in the description, but will removed. Could you please comment on the idea of separating the files from the text to avoid confusion. If you prefer we can introduc |
|
@djarecka I have no preference on it. Either way is fine. |
…into add_source_checks
…es the files that are passed with source argument; removing the text processing from StructSenseFlow and doing the processing before; updating cli.run_agent
… to api (but keep it in a separate function); adding the same arguments to StructSenseFlow as in cli: source and source_text
…ssed properly; removing src/tests from gitignore
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## improvement #67 +/- ##
==============================================
Coverage ? 13.78%
==============================================
Files ? 21
Lines ? 4920
Branches ? 0
==============================================
Hits ? 678
Misses ? 4242
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
tekrajchhetri
left a comment
There was a problem hiding this comment.
@djarecka could you also update the readme so that it aligns with the changes made?
which one? I updated at least one Readme |
@tekrajchhetri - this is just the beginning of the PR, but I want you to know what I'm thinking about and give me your feedback. As mentioned in #62, I believe that if
sourcedoesn't check if the file is an existing file path can lead to running structsense on the name of the path instead of real file by mistake (it definitely happened to me when running the tutorial).I suggest (and started changing) that:
source_textif we want to provide the text instead of file,sourceprovidedprocess_input_dataonly for files before passing it toStructSenseFlowAlso, I noticed that you say that
sourcecan be a folder, but I don't think you support this option, am I right?btw. I just noticed that there are some additional changes of the formatting due to the pre-commit, I could try to later remove it, but we definitely should run pre-commit on everything once #62 is merged