SciPhi-AI / R2R

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

Feature/add graph to v3 #1565

Closed emrgnt-cmplxty closed 1 week ago

emrgnt-cmplxty commented 1 week ago

[!IMPORTANT] Adds graph management capabilities to the v3 API, including graph creation, entity and relationship handling, and community operations, with updated models, SDK, and test scripts.

  • Graph Feature:
    • Adds graph creation, entity, relationship, and community management to v3 API.
    • Implements create_graph, delete_graph, list_entities, create_communities, and tune_prompt in graph_router.py.
    • Updates KGService with methods for graph operations like kg_triples_extraction, kg_entity_description, and kg_clustering.
  • Models and Settings:
    • Introduces KGCreationSettings, KGEnrichmentSettings, and KGEntityDeduplicationSettings in kg.py.
    • Updates prompt names to graphrag_triples_extraction_few_shot, graphrag_entity_description, and graphrag_community_reports.
  • SDK and Client:
    • Adds GraphsSDK in graphs.py for interacting with graph endpoints.
    • Supports operations like create, delete, list_entities, and tune_prompt.
  • Testing and Examples:
    • Adds test scripts in test_v3_sdk_graph.py for graph operations.
    • Updates existing test scripts to use new graph features.
  • Miscellaneous:
    • Refactors and cleans up code in various pipes like community_summary.py and entity_description.py.
    • Updates prompt_tuning.yaml for new prompt tuning logic.

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

vercel[bot] commented 1 week 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 Nov 7, 2024 1:53am