SciPhi-AI / R2R

The most advanced Retrieval-Augmented Generation (RAG) system, containerized and RESTful
https://r2r-docs.sciphi.ai/
MIT License
3.65k stars 270 forks source link

refactor imports #1481

Closed emrgnt-cmplxty closed 3 weeks ago

emrgnt-cmplxty commented 3 weeks ago

[!IMPORTANT] Refactor imports across the codebase to consolidate under core.base.abstractions and ensure consistency in vector and ingestion handling.

  • Imports Refactor:
    • Consolidate imports from shared.abstractions to core.base.abstractions in ingestion.py, database.py, embedding.py, and ingestion_router.py.
    • Update imports in kg_router.py, management_router.py, and kg_workflow.py to use core.base.abstractions.
    • Adjust imports in ingestion_service.py, community_summary.py, and deduplication.py to reflect new module paths.
  • Codebase Consistency:
    • Ensure all references to IndexMeasure, IndexMethod, VectorTableName, and other abstractions are consistent across the codebase.
    • Update utils/__init__.py to import from shared.utils.base_utils and shared.utils.splitter.text.
  • SDK Adjustments:
    • Modify async_client.py and base_client.py to import R2RException from core.base.abstractions.
    • Update ingestion.py mixin to use new import paths for vector-related classes.
  • Testing:
    • Adjust conftest.py to align with new import paths for vector quantization and other configurations.

This description was created by Ellipsis for 39268dacc331ccb81f485ccf4508467a9340b25e. It will automatically update as commits are pushed.