diff --git a/README.md b/README.md index 9fbd97cd..8fdf4439 100644 --- a/README.md +++ b/README.md @@ -1254,6 +1254,33 @@ Valid modes are: +## Troubleshooting + +### Common Initialization Errors + +If you encounter these errors when using LightRAG: + +1. **`AttributeError: __aenter__`** + - **Cause**: Storage backends not initialized + - **Solution**: Call `await rag.initialize_storages()` after creating the LightRAG instance + +2. **`KeyError: 'history_messages'`** + - **Cause**: Pipeline status not initialized + - **Solution**: Call `await initialize_pipeline_status()` after initializing storages + +3. **Both errors in sequence** + - **Cause**: Neither initialization method was called + - **Solution**: Always follow this pattern: + ```python + rag = LightRAG(...) + await rag.initialize_storages() + await initialize_pipeline_status() + ``` + +### Model Switching Issues + +When switching between different embedding models, you must clear the data directory to avoid errors. The only file you may want to preserve is `kv_store_llm_response_cache.json` if you wish to retain the LLM cache. + ## LightRAG API The LightRAG Server is designed to provide Web UI and API support. **For more information about LightRAG Server, please refer to [LightRAG Server](./lightrag/api/README.md).** @@ -1519,7 +1546,47 @@ def extract_queries(file_path): -## Star History +## π Related Projects + +*Ecosystem & Extensions* + +
|
+
+
+ πΈ
+
+ RAG-Anything+ Multimodal RAG + + |
+
+
+
+ π₯
+
+ VideoRAG+ Extreme Long-Context Video RAG + + |
+
+
+
+ β¨
+
+ MiniRAG+ Extremely Simple RAG + + |
+