Closed ranfysvalle02 closed 3 months ago
@Hk669 @thinkall made a fresh pull request, with cleaner commit history. I did a lot of "learning" on that last pull request :)
I think we are pretty close to getting MongoDB into Autogen
Test is still skipped:
https://github.com/microsoft/autogen/actions/runs/9621000866/job/26540852406?pr=2996#step:11:26
Need to update contrib-tests.yml
Attention: Patch coverage is 0.92593%
with 107 lines
in your changes missing coverage. Please review.
Project coverage is 26.01%. Comparing base (
89c2f20
) to head (5f89f21
). Report is 3 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
autogen/agentchat/contrib/vectordb/mongodb.py | 0.00% | 104 Missing :warning: |
autogen/agentchat/contrib/vectordb/base.py | 25.00% | 3 Missing :warning: |
:exclamation: There is a different number of reports uploaded between BASE (89c2f20) and HEAD (5f89f21). Click for more details.
HEAD has 27 uploads more than BASE
| Flag | BASE (89c2f20) | HEAD (5f89f21) | |------|------|------| |unittests|1|28|
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
@thinkall - I think there is something going on with testing retrieval?
test/test_retrieve_utils.py ............s. [ 56%]
test/agentchat/contrib/retrievechat/test_pgvector_retrievechat.py s [ 60%]
test/agentchat/contrib/retrievechat/test_qdrant_retrievechat.py s.. [ 72%]
test/agentchat/contrib/retrievechat/test_retrievechat.py s. [ 80%]
test/agentchat/contrib/vectordb/test_mongodb.py s [ 88%]
---------- coverage: platform linux, python 3.10.14-final-0 ----------
Coverage XML written to file coverage.xml
======================== 20 passed, 5 skipped in 52.41s ========================
I polluted this PR :( sorry -- lets try this one last time
I polluted this PR :( sorry -- lets try this one last time
There is no need to worry about the commit history. Make a new PR will lost the track history.
Why are these changes needed?
MongoDB has been ranked as the best vector database(https://www.mongodb.com/blog/post/atlas-vector-search-commands-highest-developer-nps-retool-state-ai-2023-survey) in the Retool AI report, so it is quite important to add MongoDB vector search as an option for Autogen RAG.
You can easily start the MongoDB vector search on a free tier M0 MongoDB Atlas cluster. Free tier cluster provides the full functionality of the MongoDB vector search. https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-overview/
But why is MongoDB such a standout? Well, there are a few key reasons.
As such, implementing MongoDB as a Retrieval Agent can unlock new potential in your AI applications, bringing the full power of vector storage to bear.
Related issue number: 711
Closes #711
Checks