lightrag-hku 0.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightrag_hku-0.0.0/LICENSE +21 -0
- lightrag_hku-0.0.0/MANIFEST.in +3 -0
- lightrag_hku-0.0.0/PKG-INFO +1958 -0
- lightrag_hku-0.0.0/README.md +1886 -0
- lightrag_hku-0.0.0/lightrag/__init__.py +5 -0
- lightrag_hku-0.0.0/lightrag/api/__init__.py +1 -0
- lightrag_hku-0.0.0/lightrag/api/auth.py +109 -0
- lightrag_hku-0.0.0/lightrag/api/config.py +424 -0
- lightrag_hku-0.0.0/lightrag/api/gunicorn_config.py +164 -0
- lightrag_hku-0.0.0/lightrag/api/lightrag_server.py +897 -0
- lightrag_hku-0.0.0/lightrag/api/routers/__init__.py +10 -0
- lightrag_hku-0.0.0/lightrag/api/routers/document_routes.py +2439 -0
- lightrag_hku-0.0.0/lightrag/api/routers/graph_routes.py +178 -0
- lightrag_hku-0.0.0/lightrag/api/routers/ollama_api.py +734 -0
- lightrag_hku-0.0.0/lightrag/api/routers/query_routes.py +224 -0
- lightrag_hku-0.0.0/lightrag/api/run_with_gunicorn.py +227 -0
- lightrag_hku-0.0.0/lightrag/api/utils_api.py +344 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/_basePickBy-zcTWmF8I.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/_baseUniq-Coqzfado.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/architectureDiagram-SUXI7LT5-kgrRF4Cf.js +36 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/blockDiagram-6J76NXCF-Chfv6a7G.js +122 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/c4Diagram-6F6E4RAY-B4XUATl4.js +10 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/chunk-353BL4L5-CR8qX5CO.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/chunk-67H74DCK-CIrK_RBz.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/chunk-AACKK3MU-mRStUlsv.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/chunk-BFAMUDN2-Cm57CA8s.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/chunk-E2GYISFI-Du9g7EeC.js +15 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/chunk-OW32GOEJ-C5pOkIhC.js +220 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/chunk-SKB7J2MH-CX-6qXaF.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/chunk-SZ463SBG-B3Q_dfR2.js +165 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/classDiagram-M3E45YP4-DKtAiWMM.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/classDiagram-v2-YAWTLIQI-DKtAiWMM.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/clone-D1fuhfq3.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/cytoscape.esm-CfBqOv7Q.js +191 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/dagre-JOIXM2OF-B1CqCeXy.js +4 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/diagram-5UYTHUR4-Bq7e4V0K.js +24 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/diagram-VMROVX33-CL8nPVMB.js +24 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/diagram-ZTM2IBQH-YBNtjfoo.js +43 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/erDiagram-3M52JZNH-DN0W8XWj.js +60 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/feature-documents-4TV9qUPI.js +87 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/feature-graph-BipNuM18.css +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/feature-graph-CS4MyqEv.js +724 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/feature-retrieval-BwXSap2b.js +10 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/flowDiagram-KYDEHFYC-Bro2D2mZ.js +162 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/ganttDiagram-EK5VF46D-BNbgMU5n.js +267 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/gitGraphDiagram-GW3U2K7C-C6g75jYv.js +65 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/graph-lXMBdjQ3.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/graph-vendor-B-X5JegA.js +312 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/index-BOxJ2b27.js +151 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/index-CafJWW1u.css +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/index-VdaexpWA.js +3 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/infoDiagram-LHK5PUON-D1Fqp1w7.js +2 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/journeyDiagram-EWQZEKCU--RceaKbM.js +139 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/kanban-definition-ZSS6B67P-BwGtcLKU.js +89 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/katex-B1t2RQs_.css +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/katex-Bs9BEMzR.js +261 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/layout-BWO25eL4.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/markdown-vendor-DmIvJdn7.js +49 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/mermaid-vendor-B20mDgAo.js +217 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/mindmap-definition-6CBA2TL7-CO8UILc9.js +95 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/pieDiagram-NIOCPIFQ-CSm1JULy.js +30 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/quadrantDiagram-2OG54O6I-j5yQBfMM.js +7 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/react-vendor-DEwriMA6.js +28 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/requirementDiagram-QOLK2EJ7-ClDw_aOM.js +64 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/sankeyDiagram-4UZDY2LN-Dilpaf_-.js +10 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/sequenceDiagram-SKLFT4DO-Gp4aPgFb.js +122 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/stateDiagram-MI5ZYTHO-kwBNzc6R.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/stateDiagram-v2-5AN5P6BG-DkT60tdC.js +1 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/timeline-definition-MYPXXCX6-CXabRGVZ.js +61 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/treemap-75Q7IDZK-64OceOGQ.js +128 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/ui-vendor-CeCm8EER.js +53 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/utils-vendor-BysuhMZA.js +6 -0
- lightrag_hku-0.0.0/lightrag/api/webui/assets/xychartDiagram-H2YORKM3-Dlbi025A.js +7 -0
- lightrag_hku-0.0.0/lightrag/api/webui/favicon.png +0 -0
- lightrag_hku-0.0.0/lightrag/api/webui/index.html +27 -0
- lightrag_hku-0.0.0/lightrag/api/webui/logo.svg +1 -0
- lightrag_hku-0.0.0/lightrag/base.py +780 -0
- lightrag_hku-0.0.0/lightrag/constants.py +88 -0
- lightrag_hku-0.0.0/lightrag/exceptions.py +98 -0
- lightrag_hku-0.0.0/lightrag/kg/__init__.py +125 -0
- lightrag_hku-0.0.0/lightrag/kg/deprecated/chroma_impl.py +338 -0
- lightrag_hku-0.0.0/lightrag/kg/faiss_impl.py +541 -0
- lightrag_hku-0.0.0/lightrag/kg/json_doc_status_impl.py +351 -0
- lightrag_hku-0.0.0/lightrag/kg/json_kv_impl.py +285 -0
- lightrag_hku-0.0.0/lightrag/kg/memgraph_impl.py +1091 -0
- lightrag_hku-0.0.0/lightrag/kg/milvus_impl.py +1333 -0
- lightrag_hku-0.0.0/lightrag/kg/mongo_impl.py +2084 -0
- lightrag_hku-0.0.0/lightrag/kg/nano_vector_db_impl.py +404 -0
- lightrag_hku-0.0.0/lightrag/kg/neo4j_impl.py +1556 -0
- lightrag_hku-0.0.0/lightrag/kg/networkx_impl.py +499 -0
- lightrag_hku-0.0.0/lightrag/kg/postgres_impl.py +4621 -0
- lightrag_hku-0.0.0/lightrag/kg/qdrant_impl.py +488 -0
- lightrag_hku-0.0.0/lightrag/kg/redis_impl.py +1088 -0
- lightrag_hku-0.0.0/lightrag/kg/shared_storage.py +1320 -0
- lightrag_hku-0.0.0/lightrag/lightrag.py +2944 -0
- lightrag_hku-0.0.0/lightrag/llm/__init__.py +0 -0
- lightrag_hku-0.0.0/lightrag/llm/anthropic.py +320 -0
- lightrag_hku-0.0.0/lightrag/llm/azure_openai.py +171 -0
- lightrag_hku-0.0.0/lightrag/llm/bedrock.py +321 -0
- lightrag_hku-0.0.0/lightrag/llm/binding_options.py +651 -0
- lightrag_hku-0.0.0/lightrag/llm/hf.py +160 -0
- lightrag_hku-0.0.0/lightrag/llm/jina.py +147 -0
- lightrag_hku-0.0.0/lightrag/llm/llama_index_impl.py +201 -0
- lightrag_hku-0.0.0/lightrag/llm/lmdeploy.py +147 -0
- lightrag_hku-0.0.0/lightrag/llm/lollms.py +159 -0
- lightrag_hku-0.0.0/lightrag/llm/nvidia_openai.py +66 -0
- lightrag_hku-0.0.0/lightrag/llm/ollama.py +175 -0
- lightrag_hku-0.0.0/lightrag/llm/openai.py +487 -0
- lightrag_hku-0.0.0/lightrag/llm/siliconcloud.py +69 -0
- lightrag_hku-0.0.0/lightrag/llm/zhipu.py +205 -0
- lightrag_hku-0.0.0/lightrag/namespace.py +26 -0
- lightrag_hku-0.0.0/lightrag/operate.py +3758 -0
- lightrag_hku-0.0.0/lightrag/prompt.py +331 -0
- lightrag_hku-0.0.0/lightrag/rerank.py +354 -0
- lightrag_hku-0.0.0/lightrag/tools/__init__.py +0 -0
- lightrag_hku-0.0.0/lightrag/tools/check_initialization.py +180 -0
- lightrag_hku-0.0.0/lightrag/tools/lightrag_visualizer/__init__.py +0 -0
- lightrag_hku-0.0.0/lightrag/tools/lightrag_visualizer/graph_visualizer.py +1221 -0
- lightrag_hku-0.0.0/lightrag/types.py +29 -0
- lightrag_hku-0.0.0/lightrag/utils.py +2590 -0
- lightrag_hku-0.0.0/lightrag/utils_graph.py +1116 -0
- lightrag_hku-0.0.0/lightrag_hku.egg-info/PKG-INFO +1958 -0
- lightrag_hku-0.0.0/lightrag_hku.egg-info/SOURCES.txt +189 -0
- lightrag_hku-0.0.0/lightrag_hku.egg-info/dependency_links.txt +1 -0
- lightrag_hku-0.0.0/lightrag_hku.egg-info/entry_points.txt +3 -0
- lightrag_hku-0.0.0/lightrag_hku.egg-info/requires.txt +52 -0
- lightrag_hku-0.0.0/lightrag_hku.egg-info/top_level.txt +2 -0
- lightrag_hku-0.0.0/pyproject.toml +105 -0
- lightrag_hku-0.0.0/setup.cfg +4 -0
- lightrag_hku-0.0.0/setup.py +6 -0
- lightrag_hku-0.0.0/tests/test_graph_storage.py +1256 -0
- lightrag_hku-0.0.0/tests/test_lightrag_ollama_chat.py +855 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 LightRAG Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|