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

Feature/port kg to handler #1473

Closed emrgnt-cmplxty closed 3 weeks ago

emrgnt-cmplxty commented 3 weeks ago

[!IMPORTANT] Refactor knowledge graph handling by replacing KGProvider with KGHandler, updating configurations, and aligning tests with the new structure.

  • Refactor KG Handling:
    • Replace KGProvider with KGHandler in database.py, kg.py, and postgres.py.
    • Remove KGConfig and KGProvider references from __init__.py, abstractions.py, kg_router.py, management_router.py, builder.py, factory.py, config.py, kg_workflow.py, kg_service.py, management_service.py, retrieval_service.py, clustering.py, community_summary.py, deduplication.py, deduplication_summary.py, entity_description.py, prompt_tuning.py, storage.py, triples_extraction.py, kg_search_pipe.py, r2r_auth.py, supabase.py, collection.py, document.py, tokens.py, user.py, vector.py, file.py, r2r_prompts.py, script.py.mako, migrate_to_asyncpg.py, pyproject.toml, conftest.py, test_document_db.py, test_kg_logic.py.
    • Update DatabaseProvider to use KGHandler for KG operations.
  • Testing and Configuration:
    • Update tests in test_document_db.py and test_kg_logic.py to align with KGHandler changes.
    • Modify conftest.py to support new KGHandler structure.
    • Update pyproject.toml to reflect dependency changes.
  • Miscellaneous:
    • Remove deprecated alembic dependency from pyproject.toml.

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

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yc_demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 6:21pm
yc-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2024 6:21pm
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **recommendation_platform** | ⬜️ Ignored ([Inspect](https://vercel.com/my-team-88dd52c0/recommendation_platform/R9QmZJEh2ypoMVjpyVeW66ciP6jD)) | | | Oct 24, 2024 6:21pm |