vector-io
vector-io copied to clipboard
add : mongodb integration
MongoDB Integration for VDF Import/Export
- Purpose: Introduce utilities for importing and exporting VDF data to and from MongoDB.
- Key Changes:
- Added
.envand.venventries to.gitignorefor environment management. - Created
mongodb_README.mdfor documentation on MongoDB usage with VDF. - Implemented
ExportMongoDBandImportMongoDBclasses for data handling. - Enhanced
requirements.txtto includepymongofor MongoDB interactions. - Updated utility functions to support MongoDB-specific operations and data types.
- Added
- Impact: This integration allows seamless data transfer between VDF and MongoDB, enhancing data management capabilities.
✨ Generated with love by Kaizen ❤️
Original Description
# Add MongoDB Export Support- **Purpose: ** Add support for exporting data from MongoDB to the VDF format.
- Key Changes:
- Implemented the
ExportMongoDBclass that inherits from theExportVDBbase class. - Added functionality to connect to a MongoDB Atlas database, select a collection, and export the data to Parquet files.
- Implemented a method to flatten nested MongoDB documents and handle various BSON data types.
- Added support for detecting the vector dimension automatically if not provided.
- Integrated the exported data into the VDF metadata.
- Implemented the
- **Impact: ** This change allows users to export data from MongoDB databases to the VDF format, enabling further processing and analysis of the data.
✨ Generated with love by Kaizen ❤️
Original Description
# Add MongoDB Export Functionality- ****Purpose: ** ** Introduce a new feature to export data from MongoDB to a specified format.
- Key Changes:
- Added
.gitignoreentries for environment and testing files. - Updated
requirements.txtto includepymongo. - Created
mongodb_export.pyfor handling MongoDB data export. - Implemented argument parsing for MongoDB connection and export parameters.
- Enhanced error handling for MongoDB connection and collection selection.
- Added
- ****Impact: ** ** This addition allows users to seamlessly export data from MongoDB, improving data integration capabilities.
✨ Generated with love by Kaizen ❤️
Original Description
# Add MongoDB Export Support- ******Purpose: ** ** ** Add support for exporting data from MongoDB databases to the VDF format.
- Key Changes:
- Implemented the
ExportMongoDBclass that inherits from theExportVDBbase class. - Added functionality to connect to a MongoDB Atlas instance, retrieve data from a specified collection, and export it to Parquet files.
- Implemented logic to handle various BSON data types and flatten nested documents.
- Added support for detecting the vector dimension automatically if not provided.
- Integrated the new MongoDB export functionality into the command-line interface.
- Implemented the
- ******Impact: ** ** ** This change will allow users to export data from MongoDB databases to the VDF format, enabling them to leverage the VDF ecosystem for vector search, embeddings, and other machine learning tasks.
✨ Generated with love by Kaizen ❤️
Original Description
# Add MongoDB Export Functionality- ********Purpose: ** ** ** ** Add support for exporting data from MongoDB databases to the VDF format.
- Key Changes:
- Introduced a new
ExportMongoDBclass that inherits from the baseExportVDBclass. - Implemented methods to connect to a MongoDB database, fetch data from a specified collection, and export the data to Parquet files.
- Added support for handling various BSON data types (ObjectId, Binary, Regex, Timestamp, Decimal128, Code) during the flattening process.
- Integrated the new MongoDB export functionality into the command-line interface.
- Introduced a new
- ********Impact: ** ** ** ** Users can now export data from MongoDB databases to the VDF format, enabling seamless integration with the VDF ecosystem and downstream applications.
✨ Generated with love by Kaizen ❤️
Original Description
# Add MongoDB Export Functionality- **********Purpose: ** ** ** ** ** Introduces a new feature to export data from MongoDB into a specified format.
- Key Changes:
- Added
.cfgand environment-related entries to.gitignore. - Updated
requirements.txtto includepymongo. - Created
mongodb_export.pyfor handling MongoDB data exports. - Implemented argument parsing for MongoDB connection and export parameters.
- Enhanced utility functions to support MongoDB-specific data handling.
- Added
- **********Impact: ** ** ** ** ** This addition allows users to seamlessly export data from MongoDB, enhancing the tool's versatility.
✨ Generated with love by Kaizen ❤️
Original Description
# Add MongoDB Export Functionality- ************Purpose: ** ** ** ** ** ** Introduce functionality to export data from MongoDB to a specified format.
- Key Changes:
- Added
.cfgand environment-related entries to.gitignore. - Updated
requirements.txtto includepymongofor MongoDB support. - Implemented
ExportMongoDBclass for handling MongoDB data exports. - Added command-line argument parsing for MongoDB connection and export parameters.
- Integrated data flattening and exporting to Parquet format.
- Added
- ************Impact: ** ** ** ** ** ** This enhancement allows users to seamlessly export data from MongoDB, improving data integration capabilities.
✨ Generated with love by Kaizen ❤️
Original Description
# Add MongoDB Export Functionality- **************Purpose: ** ** ** ** ** ** ** Adds the ability to export data from a MongoDB database to the VDF format.
- Key Changes:
- Added a new
ExportMongoDBclass that inherits from theExportVDBbase class. - Implemented methods to connect to a MongoDB database, fetch data from a specified collection, and export the data to Parquet files.
- Included support for handling various BSON data types (ObjectId, Binary, Regex, Timestamp, Decimal128, Code) during the flattening process.
- Added a new
mongodbsubparser to the command-line interface to allow users to specify MongoDB connection details and export options.
- Added a new
- **************Impact: ** ** ** ** ** ** ** This change will enable users to export data from MongoDB databases to the VDF format, allowing for easier integration with the VDF ecosystem and downstream applications.
✨ Generated with love by Kaizen ❤️
Original Description
- [ ] export script - [ ] import script[!IMPORTANT] Adds MongoDB export functionality with BSON handling and Parquet export in
mongodb_export.py.
- MongoDB Export Integration:
- Adds
ExportMongoDBclass inmongodb_export.pyfor exporting data from MongoDB.- Implements
make_parser()andexport_vdb()methods for argument parsing and export logic.- Handles BSON type conversions and data flattening in
flatten_dict().- Exports data to Parquet format with vector dimension detection in
get_data().- Configuration:
- Adds
MONGODBtoDBNamesinnames.py.- Updates
db_metric_to_standard_metricinutil.pyto include MongoDB distance metrics.- Dependencies:
- Adds
pymongotorequirements.txt.This description was created by
for 6788f900fc2e64c21ba17d05d2844fab454aa712. It will automatically update as commits are pushed.