chore: project scaffolding mit uv und pyproject.toml
This commit is contained in:
12
.env.example
Normal file
12
.env.example
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
NEXTCLOUD_WEBDAV_URL=https://nc.example.com/remote.php/dav/files/myuser
|
||||||
|
NEXTCLOUD_USER=myuser
|
||||||
|
NEXTCLOUD_APP_PASSWORD=changeme
|
||||||
|
OLLAMA_URL=http://ollama:11434
|
||||||
|
OLLAMA_EMBED_MODEL=qwen3-embedding:0.6b
|
||||||
|
QDRANT_URL=http://qdrant:6333
|
||||||
|
QDRANT_COLLECTION=rag_thb_studium
|
||||||
|
WEBHOOK_SECRET=changeme
|
||||||
|
INGEST_ROOT=Documents/THB/Studium
|
||||||
|
CHUNK_SIZE_WORDS=500
|
||||||
|
CHUNK_OVERLAP_WORDS=50
|
||||||
|
LOG_LEVEL=INFO
|
||||||
12
.gitignore
vendored
Normal file
12
.gitignore
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
.pytest_cache/
|
||||||
|
.venv/
|
||||||
|
venv/
|
||||||
|
.env
|
||||||
|
*.egg-info/
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
.coverage
|
||||||
|
.idea/
|
||||||
|
.vscode/
|
||||||
0
app/__init__.py
Normal file
0
app/__init__.py
Normal file
0
app/ingest/__init__.py
Normal file
0
app/ingest/__init__.py
Normal file
0
app/webhook/__init__.py
Normal file
0
app/webhook/__init__.py
Normal file
37
pyproject.toml
Normal file
37
pyproject.toml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
[project]
|
||||||
|
name = "rag-ingestor"
|
||||||
|
version = "0.1.0"
|
||||||
|
description = "Nextcloud → Qdrant RAG ingestion service"
|
||||||
|
requires-python = ">=3.12"
|
||||||
|
dependencies = [
|
||||||
|
"fastapi>=0.115",
|
||||||
|
"uvicorn[standard]>=0.32",
|
||||||
|
"httpx>=0.28",
|
||||||
|
"pydantic>=2.10",
|
||||||
|
"pydantic-settings>=2.7",
|
||||||
|
"pymupdf>=1.25",
|
||||||
|
"python-docx>=1.1",
|
||||||
|
"ollama>=0.4",
|
||||||
|
"qdrant-client>=1.12",
|
||||||
|
]
|
||||||
|
|
||||||
|
[dependency-groups]
|
||||||
|
dev = [
|
||||||
|
"pytest>=8.3",
|
||||||
|
"pytest-asyncio>=0.25",
|
||||||
|
"respx>=0.22",
|
||||||
|
]
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
asyncio_mode = "auto"
|
||||||
|
testpaths = ["tests"]
|
||||||
|
|
||||||
|
[tool.uv]
|
||||||
|
package = true
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.wheel]
|
||||||
|
packages = ["app"]
|
||||||
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
Reference in New Issue
Block a user