From 71e9267f4bad36198ada0a5175d0f137c23af018 Mon Sep 17 00:00:00 2001 From: zrguo Date: Tue, 31 Dec 2024 17:25:57 +0800 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++---- lightrag/__init__.py | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 26d41e22..fbd0fdf6 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,11 @@ This repository hosts the code of LightRAG. The structure of this code is based ## 🎉 News +- [x] [2024.12.31]🎯📢LightRAG now supports [deletion by document ID](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#delete). - [x] [2024.11.25]🎯📢LightRAG now supports seamless integration of [custom knowledge graphs](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#insert-custom-kg), empowering users to enhance the system with their own domain expertise. - [x] [2024.11.19]🎯📢A comprehensive guide to LightRAG is now available on [LearnOpenCV](https://learnopencv.com/lightrag). Many thanks to the blog author. - [x] [2024.11.12]🎯📢LightRAG now supports [Oracle Database 23ai for all storage types (KV, vector, and graph)](https://github.com/HKUDS/LightRAG/blob/main/examples/lightrag_oracle_demo.py). -- [x] [2024.11.11]🎯📢LightRAG now supports [deleting entities by their names](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#delete-entity). +- [x] [2024.11.11]🎯📢LightRAG now supports [deleting entities by their names](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#delete). - [x] [2024.11.09]🎯📢Introducing the [LightRAG Gui](https://lightrag-gui.streamlit.app), which allows you to insert, query, visualize, and download LightRAG knowledge. - [x] [2024.11.04]🎯📢You can now [use Neo4J for Storage](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#using-neo4j-for-storage). - [x] [2024.10.29]🎯📢LightRAG now supports multiple file types, including PDF, DOC, PPT, and CSV via `textract`. @@ -412,10 +413,9 @@ custom_kg = { rag.insert_custom_kg(custom_kg) ``` -### Delete Entity - +### Delete ```python -# Delete Entity: Deleting entities by their names + rag = LightRAG( working_dir=WORKING_DIR, llm_model_func=llm_model_func, @@ -426,7 +426,11 @@ rag = LightRAG( ), ) +# Delete Entity: Deleting entities by their names rag.delete_by_entity("Project Gutenberg") + +# Delete Document: Deleting entities and relationships associated with the document by doc id +rag.delete_by_doc_id("doc_id") ``` ### Multi-file Type Support diff --git a/lightrag/__init__.py b/lightrag/__init__.py index 83ed72cc..cd2ccf04 100644 --- a/lightrag/__init__.py +++ b/lightrag/__init__.py @@ -1,5 +1,5 @@ from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam -__version__ = "1.0.8" +__version__ = "1.0.9" __author__ = "Zirui Guo" __url__ = "https://github.com/HKUDS/LightRAG"