Refactor code structure for improved readability and maintainability
This commit is contained in:
parent
494ec8064e
commit
a9fb0a43f3
3 changed files with 1350 additions and 14 deletions
4
.github/workflows/azure-aca-deploy.yml
vendored
4
.github/workflows/azure-aca-deploy.yml
vendored
|
|
@ -31,8 +31,8 @@ jobs:
|
||||||
id-token: write
|
id-token: write
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: ${{ vars.IMAGE_NAME }}
|
IMAGE_NAME: ${{ vars.IMAGE_NAME }}
|
||||||
CONTAINER_APP_NAME: ${{ secrets.AZURE_CONTAINER_APP_NAME }}
|
CONTAINER_APP_NAME: ${{ vars.AZURE_CONTAINER_APP_NAME }}
|
||||||
AZURE_RESOURCE_GROUP: ${{ secrets.AZURE_RESOURCE_GROUP }}
|
AZURE_RESOURCE_GROUP: ${{ vars.AZURE_RESOURCE_GROUP }}
|
||||||
REGISTRY_LOGIN_SERVER: ${{ secrets.AZURE_REGISTRY_LOGIN_SERVER }}
|
REGISTRY_LOGIN_SERVER: ${{ secrets.AZURE_REGISTRY_LOGIN_SERVER }}
|
||||||
AZURE_REGISTRY_USERNAME: ${{ secrets.AZURE_REGISTRY_USERNAME }}
|
AZURE_REGISTRY_USERNAME: ${{ secrets.AZURE_REGISTRY_USERNAME }}
|
||||||
AZURE_REGISTRY_PASSWORD: ${{ secrets.AZURE_REGISTRY_PASSWORD }}
|
AZURE_REGISTRY_PASSWORD: ${{ secrets.AZURE_REGISTRY_PASSWORD }}
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,10 @@ build-backend = "setuptools.build_meta"
|
||||||
[project]
|
[project]
|
||||||
name = "lightrag-hku"
|
name = "lightrag-hku"
|
||||||
dynamic = ["version"]
|
dynamic = ["version"]
|
||||||
authors = [
|
authors = [{ name = "Zirui Guo" }]
|
||||||
{name = "Zirui Guo"}
|
|
||||||
]
|
|
||||||
description = "LightRAG: Simple and Fast Retrieval-Augmented Generation"
|
description = "LightRAG: Simple and Fast Retrieval-Augmented Generation"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = {text = "MIT"}
|
license = { text = "MIT" }
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
|
|
@ -23,6 +21,7 @@ classifiers = [
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aiohttp",
|
"aiohttp",
|
||||||
"configparser",
|
"configparser",
|
||||||
|
"docling>=2.58.0",
|
||||||
"future",
|
"future",
|
||||||
"json_repair",
|
"json_repair",
|
||||||
"nano-vectordb",
|
"nano-vectordb",
|
||||||
|
|
@ -64,7 +63,6 @@ api = [
|
||||||
"ascii_colors",
|
"ascii_colors",
|
||||||
"asyncpg",
|
"asyncpg",
|
||||||
"distro",
|
"distro",
|
||||||
"docling>=2.58.0,<3.0.0",
|
|
||||||
"fastapi",
|
"fastapi",
|
||||||
"httpcore",
|
"httpcore",
|
||||||
"httpx",
|
"httpx",
|
||||||
|
|
@ -126,13 +124,23 @@ Repository = "https://github.com/HKUDS/LightRAG"
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.packages.find]
|
||||||
include = ["lightrag*"]
|
include = ["lightrag*"]
|
||||||
exclude = ["data*", "tests*", "scripts*", "examples*", "dickens*", "reproduce*", "output_complete*", "rag_storage*", "inputs*"]
|
exclude = [
|
||||||
|
"data*",
|
||||||
|
"tests*",
|
||||||
|
"scripts*",
|
||||||
|
"examples*",
|
||||||
|
"dickens*",
|
||||||
|
"reproduce*",
|
||||||
|
"output_complete*",
|
||||||
|
"rag_storage*",
|
||||||
|
"inputs*",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
include-package-data = true
|
include-package-data = true
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
[tool.setuptools.dynamic]
|
||||||
version = {attr = "lightrag.__version__"}
|
version = { attr = "lightrag.__version__" }
|
||||||
|
|
||||||
[tool.setuptools.package-data]
|
[tool.setuptools.package-data]
|
||||||
lightrag = ["api/webui/**/*"]
|
lightrag = ["api/webui/**/*"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue