LarFii commited on
Commit
0bee9e3
·
1 Parent(s): a934827

Update README.md

Browse files
Files changed (2) hide show
  1. README.md +8 -4
  2. lightrag/__init__.py +1 -1
README.md CHANGED
@@ -26,10 +26,11 @@ This repository hosts the code of LightRAG. The structure of this code is based
26
  </div>
27
 
28
  ## 🎉 News
 
29
  - [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.
30
  - [x] [2024.11.19]🎯📢A comprehensive guide to LightRAG is now available on [LearnOpenCV](https://learnopencv.com/lightrag). Many thanks to the blog author.
31
  - [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).
32
- - [x] [2024.11.11]🎯📢LightRAG now supports [deleting entities by their names](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#delete-entity).
33
  - [x] [2024.11.09]🎯📢Introducing the [LightRAG Gui](https://lightrag-gui.streamlit.app), which allows you to insert, query, visualize, and download LightRAG knowledge.
34
  - [x] [2024.11.04]🎯📢You can now [use Neo4J for Storage](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#using-neo4j-for-storage).
35
  - [x] [2024.10.29]🎯📢LightRAG now supports multiple file types, including PDF, DOC, PPT, and CSV via `textract`.
@@ -412,10 +413,9 @@ custom_kg = {
412
  rag.insert_custom_kg(custom_kg)
413
  ```
414
 
415
- ### Delete Entity
416
-
417
  ```python
418
- # Delete Entity: Deleting entities by their names
419
  rag = LightRAG(
420
  working_dir=WORKING_DIR,
421
  llm_model_func=llm_model_func,
@@ -426,7 +426,11 @@ rag = LightRAG(
426
  ),
427
  )
428
 
 
429
  rag.delete_by_entity("Project Gutenberg")
 
 
 
430
  ```
431
 
432
  ### Multi-file Type Support
 
26
  </div>
27
 
28
  ## 🎉 News
29
+ - [x] [2024.12.31]🎯📢LightRAG now supports [deletion by document ID](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#delete).
30
  - [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.
31
  - [x] [2024.11.19]🎯📢A comprehensive guide to LightRAG is now available on [LearnOpenCV](https://learnopencv.com/lightrag). Many thanks to the blog author.
32
  - [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).
33
+ - [x] [2024.11.11]🎯📢LightRAG now supports [deleting entities by their names](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#delete).
34
  - [x] [2024.11.09]🎯📢Introducing the [LightRAG Gui](https://lightrag-gui.streamlit.app), which allows you to insert, query, visualize, and download LightRAG knowledge.
35
  - [x] [2024.11.04]🎯📢You can now [use Neo4J for Storage](https://github.com/HKUDS/LightRAG?tab=readme-ov-file#using-neo4j-for-storage).
36
  - [x] [2024.10.29]🎯📢LightRAG now supports multiple file types, including PDF, DOC, PPT, and CSV via `textract`.
 
413
  rag.insert_custom_kg(custom_kg)
414
  ```
415
 
416
+ ### Delete
 
417
  ```python
418
+
419
  rag = LightRAG(
420
  working_dir=WORKING_DIR,
421
  llm_model_func=llm_model_func,
 
426
  ),
427
  )
428
 
429
+ # Delete Entity: Deleting entities by their names
430
  rag.delete_by_entity("Project Gutenberg")
431
+
432
+ # Delete Document: Deleting entities and relationships associated with the document by doc id
433
+ rag.delete_by_doc_id("doc_id")
434
  ```
435
 
436
  ### Multi-file Type Support
lightrag/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
  from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam
2
 
3
- __version__ = "1.0.8"
4
  __author__ = "Zirui Guo"
5
  __url__ = "https://github.com/HKUDS/LightRAG"
 
1
  from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam
2
 
3
+ __version__ = "1.0.9"
4
  __author__ = "Zirui Guo"
5
  __url__ = "https://github.com/HKUDS/LightRAG"