-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Fix the potential duplicate embeddings in the RAG module #1224
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Description updated to latest commit (eb564bb)
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1224 +/- ##
==========================================
+ Coverage 70.60% 70.66% +0.06%
==========================================
Files 314 314
Lines 18714 18753 +39
==========================================
+ Hits 13213 13252 +39
Misses 5501 5501 ☔ View full report in Codecov by Sentry. |
User description
Features
get_retriver
rebuild index, but not reuse the embeddings actually.Feature Docs
Influence
Result
Other
Type
enhancement, bug_fix
Description
RAGExample
class with detailed docstrings and added exception handling to improve robustness.SimpleEngine
to use a transformation-based approach instead of a direct index, enhancing flexibility and maintainability.ConfigBasedFactory
and modified value retrieval to prevent unnecessary exceptions.RetrieverFactory
to optimize retriever creation based on configurations.Changes walkthrough
rag_pipeline.py
Enhance RAGExample with Docstrings and Exception Handling
examples/rag_pipeline.py
methods.
simple.py
Refactor SimpleEngine to Use Transformations Instead of Direct Index
metagpt/rag/engines/simple.py
VectorStoreIndex
and shifted to atransformation-based architecture.
_from_nodes
to create an engine instance from nodetransformations.
base.py
Improve Error Handling and Configuration Value Retrieval in Factories
metagpt/rag/factories/base.py
ConfigBasedFactory
to provide clearer errormessages.
_val_from_config_or_kwargs
to return None instead of raisingKeyError.
retriever.py
Enhance Retriever Factory with Dynamic Index Handling
metagpt/rag/factories/retriever.py
configuration.
test_simple.py
Update Tests for SimpleEngine Refactoring
tests/metagpt/rag/engines/test_simple.py
SimpleEngine
regardingtransformations.
VectorStoreIndex
.test_base.py
Update Factory Base Tests for Configuration Handling
tests/metagpt/rag/factories/test_base.py
raising KeyError.
test_retriever.py
Enhance Tests for Retriever Factory's Dynamic Index Handling
tests/metagpt/rag/factories/test_retriever.py