-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Added github query engine! #50
Conversation
WalkthroughThe changes involve enhancing the system's query capabilities by introducing a custom retriever for handling vector store queries efficiently and integrating a new Changes
Poem
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (2)
Files skipped from review as they are similar to previous changes (1)
Additional comments not posted (1)
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 (
|
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
Out of diff range and nitpick comments (5)
tests/unit/test_github_query_engine.py (2)
14-14
: Consider removing the
15-15
: Ensure that the test checks more properties ofGitHubQueryEngine
to verify its correct setup and functionality.tests/unit/test_base_engine.py (1)
8-22
: Consider enhancing the test by verifying that the index is loaded correctly and that no exceptions are thrown during the setup.utils/query_engine/github.py (1)
11-30
: The implementation ofGitHubQueryEngine
is robust and aligns with the design requirements. Consider adding more detailed documentation for theprepare
method to explain its process and components.bot/retrievers/custom_retriever.py (1)
16-59
: The_build_node_list_from_query_result
method is correctly implemented with robust error handling. Consider adding more detailed comments to explain the logic, especially for handling different node types.
The issue given from codeClimate is just for the copied code from llama-index library. We would skip it. |
subquery.py
Outdated
github_query_engine = GitHubQueryEngine(community_id=community_id).prepare() | ||
tool_metadata = ToolMetadata( | ||
name="GitHub", | ||
description="Hosts code repositories and project materials from the GitHub platform.", |
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.
We only access the conversations about the code (PR, issues) and not the actual code. Maybe that should be reflected in the description?
"Hosts conversations from Github issues and push requests from the selected repositories"
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.
As we're processing commits too, maybe updating that to this could be better?
"Hosts commits and conversations from Github issues and pull requests from the selected repositories"
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.
Most if this looks good. I only had a small comment about the platform description. I'll already approve to not hold you up.
Summary by CodeRabbit
New Features
CustomVectorStoreRetriever
for improved handling of legacy and new versions in vector store queries.GitHubQueryEngine
to manage GitHub-specific data queries alongside other sources.Bug Fixes
Tests
BaseEngine
andGitHubQueryEngine
classes to ensure their correct setup and functionality.Refactor
LevelBasedPlatformQueryEngine
to inherit from new base classes, streamlining its setup and functionality.