admin-api-lib 3.2.0__py3-none-any.whl → 3.4.0__py3-none-any.whl
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.
- admin_api_lib/api_endpoints/file_uploader.py +2 -1
- admin_api_lib/api_endpoints/source_uploader.py +1 -1
- admin_api_lib/api_endpoints/uploader_base.py +1 -3
- admin_api_lib/apis/admin_api.py +2 -2
- admin_api_lib/impl/api_endpoints/default_document_reference_retriever.py +3 -5
- admin_api_lib/impl/api_endpoints/default_file_uploader.py +12 -14
- admin_api_lib/impl/api_endpoints/default_source_uploader.py +9 -7
- admin_api_lib-3.4.0.dist-info/METADATA +130 -0
- {admin_api_lib-3.2.0.dist-info → admin_api_lib-3.4.0.dist-info}/RECORD +10 -10
- {admin_api_lib-3.2.0.dist-info → admin_api_lib-3.4.0.dist-info}/WHEEL +1 -1
- admin_api_lib-3.2.0.dist-info/METADATA +0 -24
|
@@ -8,6 +8,7 @@ from admin_api_lib.api_endpoints.uploader_base import UploaderBase
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class FileUploader(UploaderBase):
|
|
11
|
+
"""File uploader endpoint of the admin API."""
|
|
11
12
|
|
|
12
13
|
@abstractmethod
|
|
13
14
|
async def upload_file(
|
|
@@ -16,7 +17,7 @@ class FileUploader(UploaderBase):
|
|
|
16
17
|
file: UploadFile,
|
|
17
18
|
) -> None:
|
|
18
19
|
"""
|
|
19
|
-
|
|
20
|
+
Upload a source file for content extraction.
|
|
20
21
|
|
|
21
22
|
Parameters
|
|
22
23
|
----------
|
|
@@ -7,9 +7,7 @@ class UploaderBase:
|
|
|
7
7
|
"""Base class for uploader API endpoints."""
|
|
8
8
|
|
|
9
9
|
def __init__(self):
|
|
10
|
-
"""
|
|
11
|
-
Initialize the UploaderBase.
|
|
12
|
-
"""
|
|
10
|
+
"""Initialize the UploaderBase."""
|
|
13
11
|
self._background_threads = []
|
|
14
12
|
|
|
15
13
|
def _prune_background_threads(self) -> list[Thread]:
|
admin_api_lib/apis/admin_api.py
CHANGED
|
@@ -149,7 +149,7 @@ async def upload_file(
|
|
|
149
149
|
request: Request,
|
|
150
150
|
) -> None:
|
|
151
151
|
"""
|
|
152
|
-
|
|
152
|
+
Upload user selected sources.
|
|
153
153
|
|
|
154
154
|
Parameters
|
|
155
155
|
----------
|
|
@@ -181,7 +181,7 @@ async def upload_source(
|
|
|
181
181
|
key_value_pair: List[KeyValuePair] = Body(None, description="The key-value pairs for the source"),
|
|
182
182
|
) -> None:
|
|
183
183
|
"""
|
|
184
|
-
|
|
184
|
+
Upload user selected sources.
|
|
185
185
|
|
|
186
186
|
Parameters
|
|
187
187
|
----------
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import io
|
|
4
4
|
import logging
|
|
5
|
-
import traceback
|
|
6
5
|
|
|
7
6
|
from fastapi import HTTPException, Response, status
|
|
8
7
|
|
|
@@ -54,10 +53,9 @@ class DefaultDocumentReferenceRetriever(DocumentReferenceRetriever):
|
|
|
54
53
|
self._file_service.download_file(identification, document_buffer)
|
|
55
54
|
logger.debug("DONE retrieving document with id: %s", identification)
|
|
56
55
|
document_data = document_buffer.getvalue()
|
|
57
|
-
except Exception
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
)
|
|
56
|
+
except Exception:
|
|
57
|
+
# Log full stack trace without embedding the exception object in the message (G200)
|
|
58
|
+
logger.exception("Error retrieving document with id: %s.", identification)
|
|
61
59
|
raise ValueError(f"Document with id '{identification}' not found.")
|
|
62
60
|
finally:
|
|
63
61
|
document_buffer.close()
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
"""Module for the default file uploader implementation."""
|
|
2
|
+
|
|
1
3
|
import logging
|
|
2
4
|
from pathlib import Path
|
|
3
|
-
import traceback
|
|
4
5
|
import urllib
|
|
5
6
|
import tempfile
|
|
6
7
|
import asyncio
|
|
@@ -78,7 +79,7 @@ class DefaultFileUploader(FileUploader):
|
|
|
78
79
|
file: UploadFile,
|
|
79
80
|
) -> None:
|
|
80
81
|
"""
|
|
81
|
-
|
|
82
|
+
Upload a source file for content extraction.
|
|
82
83
|
|
|
83
84
|
Parameters
|
|
84
85
|
----------
|
|
@@ -109,7 +110,7 @@ class DefaultFileUploader(FileUploader):
|
|
|
109
110
|
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=str(e))
|
|
110
111
|
except Exception as e:
|
|
111
112
|
self._key_value_store.upsert(source_name, Status.ERROR)
|
|
112
|
-
logger.
|
|
113
|
+
logger.exception("Error while uploading %s", source_name)
|
|
113
114
|
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e))
|
|
114
115
|
|
|
115
116
|
def _log_task_exception(self, task: asyncio.Task) -> None:
|
|
@@ -124,19 +125,16 @@ class DefaultFileUploader(FileUploader):
|
|
|
124
125
|
if task.done() and not task.cancelled():
|
|
125
126
|
try:
|
|
126
127
|
task.result() # This will raise the exception if one occurred
|
|
127
|
-
except Exception
|
|
128
|
-
logger.
|
|
129
|
-
logger.debug("Background task exception traceback: %s", traceback.format_exc())
|
|
128
|
+
except Exception:
|
|
129
|
+
logger.exception("Background task failed with exception.")
|
|
130
130
|
|
|
131
131
|
def _prune_background_tasks(self) -> None:
|
|
132
|
-
"""
|
|
133
|
-
Remove completed background tasks from the list.
|
|
134
|
-
"""
|
|
132
|
+
"""Remove completed background tasks from the list."""
|
|
135
133
|
self._background_tasks = [task for task in self._background_tasks if not task.done()]
|
|
136
134
|
|
|
137
135
|
def _check_if_already_in_processing(self, source_name: str) -> None:
|
|
138
136
|
"""
|
|
139
|
-
|
|
137
|
+
Check if the source is already in processing state.
|
|
140
138
|
|
|
141
139
|
Parameters
|
|
142
140
|
----------
|
|
@@ -196,9 +194,9 @@ class DefaultFileUploader(FileUploader):
|
|
|
196
194
|
await asyncio.to_thread(self._rag_api.upload_information_piece, rag_information_pieces)
|
|
197
195
|
self._key_value_store.upsert(source_name, Status.READY)
|
|
198
196
|
logger.info("Source uploaded successfully: %s", source_name)
|
|
199
|
-
except Exception
|
|
197
|
+
except Exception:
|
|
200
198
|
self._key_value_store.upsert(source_name, Status.ERROR)
|
|
201
|
-
logger.
|
|
199
|
+
logger.exception("Error while uploading %s", source_name)
|
|
202
200
|
|
|
203
201
|
def _add_file_url(self, file_name: str, base_url: str, chunked_documents: list[Document]):
|
|
204
202
|
document_url = f"{base_url.rstrip('/')}/document_reference/{urllib.parse.quote_plus(file_name)}"
|
|
@@ -229,6 +227,6 @@ class DefaultFileUploader(FileUploader):
|
|
|
229
227
|
|
|
230
228
|
self._file_service.upload_file(Path(temp_file_path), filename)
|
|
231
229
|
return filename
|
|
232
|
-
except Exception
|
|
233
|
-
logger.
|
|
230
|
+
except Exception:
|
|
231
|
+
logger.exception("Error during document saving")
|
|
234
232
|
self._key_value_store.upsert(source_name, Status.ERROR)
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
"""Module for the default source uploader implementation."""
|
|
2
|
+
|
|
1
3
|
import logging
|
|
2
4
|
import asyncio
|
|
3
5
|
from threading import Thread
|
|
@@ -28,6 +30,7 @@ logger = logging.getLogger(__name__)
|
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
class DefaultSourceUploader(SourceUploader):
|
|
33
|
+
"""The DefaultSourceUploader is responsible for uploading source files for content extraction."""
|
|
31
34
|
|
|
32
35
|
def __init__(
|
|
33
36
|
self,
|
|
@@ -78,7 +81,7 @@ class DefaultSourceUploader(SourceUploader):
|
|
|
78
81
|
kwargs: list[KeyValuePair],
|
|
79
82
|
) -> None:
|
|
80
83
|
"""
|
|
81
|
-
|
|
84
|
+
Upload the parameters for source content extraction.
|
|
82
85
|
|
|
83
86
|
Parameters
|
|
84
87
|
----------
|
|
@@ -95,7 +98,6 @@ class DefaultSourceUploader(SourceUploader):
|
|
|
95
98
|
-------
|
|
96
99
|
None
|
|
97
100
|
"""
|
|
98
|
-
|
|
99
101
|
self._prune_background_threads()
|
|
100
102
|
|
|
101
103
|
source_name = f"{source_type}:{sanitize_document_name(name)}"
|
|
@@ -111,12 +113,12 @@ class DefaultSourceUploader(SourceUploader):
|
|
|
111
113
|
raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail=str(e))
|
|
112
114
|
except Exception as e:
|
|
113
115
|
self._key_value_store.upsert(source_name, Status.ERROR)
|
|
114
|
-
logger.
|
|
116
|
+
logger.exception("Error while uploading %s", source_name)
|
|
115
117
|
raise HTTPException(status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, detail=str(e))
|
|
116
118
|
|
|
117
119
|
def _check_if_already_in_processing(self, source_name: str) -> None:
|
|
118
120
|
"""
|
|
119
|
-
|
|
121
|
+
Check if the source is already in processing state.
|
|
120
122
|
|
|
121
123
|
Parameters
|
|
122
124
|
----------
|
|
@@ -150,7 +152,7 @@ class DefaultSourceUploader(SourceUploader):
|
|
|
150
152
|
logger.error("Upload of %s timed out after %s seconds", source_name, timeout)
|
|
151
153
|
self._key_value_store.upsert(source_name, Status.ERROR)
|
|
152
154
|
except Exception:
|
|
153
|
-
logger.
|
|
155
|
+
logger.exception("Error while uploading %s", source_name)
|
|
154
156
|
self._key_value_store.upsert(source_name, Status.ERROR)
|
|
155
157
|
finally:
|
|
156
158
|
loop.close()
|
|
@@ -197,6 +199,6 @@ class DefaultSourceUploader(SourceUploader):
|
|
|
197
199
|
await asyncio.to_thread(self._rag_api.upload_information_piece, rag_information_pieces)
|
|
198
200
|
self._key_value_store.upsert(source_name, Status.READY)
|
|
199
201
|
logger.info("Source uploaded successfully: %s", source_name)
|
|
200
|
-
except Exception
|
|
202
|
+
except Exception:
|
|
201
203
|
self._key_value_store.upsert(source_name, Status.ERROR)
|
|
202
|
-
logger.
|
|
204
|
+
logger.exception("Error while uploading %s", source_name)
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: admin-api-lib
|
|
3
|
+
Version: 3.4.0
|
|
4
|
+
Summary: The admin backend is responsible for the document management. This includes deletion, upload and returning the source document.
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Author: STACKIT GmbH & Co. KG
|
|
7
|
+
Author-email: data-ai@stackit.cloud
|
|
8
|
+
Maintainer: Andreas Klos
|
|
9
|
+
Maintainer-email: andreas.klos@stackit.cloud
|
|
10
|
+
Requires-Python: >=3.13,<4.0
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
|
+
Requires-Dist: boto3 (>=1.38.10,<2.0.0)
|
|
16
|
+
Requires-Dist: dependency-injector (>=4.46.0,<5.0.0)
|
|
17
|
+
Requires-Dist: fastapi (>=0.118.0,<0.119.0)
|
|
18
|
+
Requires-Dist: langchain-experimental (>=0.3.4,<0.4.0)
|
|
19
|
+
Requires-Dist: langfuse (==3.6.1)
|
|
20
|
+
Requires-Dist: nltk (>=3.9.2,<4.0.0)
|
|
21
|
+
Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
|
|
22
|
+
Requires-Dist: python-multipart (>=0.0.20,<0.0.21)
|
|
23
|
+
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
24
|
+
Requires-Dist: rag-core-lib (==3.4.0)
|
|
25
|
+
Requires-Dist: redis (>=6.0.0,<7.0.0)
|
|
26
|
+
Requires-Dist: starlette (>=0.47.2,<0.49.0)
|
|
27
|
+
Requires-Dist: tenacity (==9.1.2)
|
|
28
|
+
Requires-Dist: tqdm (>=4.67.1,<5.0.0)
|
|
29
|
+
Requires-Dist: uvicorn (>=0.37.0,<0.38.0)
|
|
30
|
+
Project-URL: Homepage, https://pypi.org/project/admin-api-lib
|
|
31
|
+
Project-URL: Repository, https://github.com/stackitcloud/rag-template
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
# admin-api-lib
|
|
35
|
+
|
|
36
|
+
Document lifecycle orchestration for the STACKIT RAG template. This library exposes a FastAPI-compatible admin surface that receives raw user content, coordinates extraction, summarisation, chunking, and storage, and finally hands normalized information pieces to the core RAG API.
|
|
37
|
+
|
|
38
|
+
It powers the [`services/admin-backend`](https://github.com/stackitcloud/rag-template/tree/main/services/admin-backend) deployment and is the primary integration point for operators managing their document corpus.
|
|
39
|
+
|
|
40
|
+
## Responsibilities
|
|
41
|
+
|
|
42
|
+
1. **Ingestion** – Accept files or external sources from the admin UI or API clients.
|
|
43
|
+
2. **Extraction** – Call `extractor-api-lib` to obtain normalized information pieces.
|
|
44
|
+
3. **Enhancement** – Summarize and enrich content using LLMs and tracing hooks from `rag-core-lib`.
|
|
45
|
+
4. **Chunking** – Split content via recursive or semantic strategies before vectorization.
|
|
46
|
+
5. **Persistence** – Store raw assets in S3-compatible storage and push processed chunks to `rag-core-api`.
|
|
47
|
+
6. **Status tracking** – Keep track of upload progress and expose document status endpoints backed by KeyDB/Redis.
|
|
48
|
+
|
|
49
|
+
## Feature highlights
|
|
50
|
+
|
|
51
|
+
- Ready-to-wire dependency-injector container with sensible defaults for S3 storage, KeyDB status tracking, and background tasks.
|
|
52
|
+
- Pluggable chunkers (`recursive` vs `semantic`) and summariser implementations with shared retry/backoff controls.
|
|
53
|
+
- Rich Pydantic request/response models covering uploads, non-file sources, and document status queries.
|
|
54
|
+
- Thin endpoint implementations that can be swapped or extended while keeping the public API stable.
|
|
55
|
+
- Structured tracing (Langfuse) and logging that mirror the behaviour of the chat backend.
|
|
56
|
+
|
|
57
|
+
## Installation
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pip install admin-api-lib
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Requires Python 3.13 and `rag-core-lib`.
|
|
64
|
+
|
|
65
|
+
## Module tour
|
|
66
|
+
|
|
67
|
+
- `dependency_container.py` – Configures and wires dependency-injection providers. Override registrations here to customise behaviour.
|
|
68
|
+
- `api_endpoints/` & `impl/api_endpoints/` – Endpoints + abstractions for file uploads, source uploads, deletions, document status, and reference retrieval.
|
|
69
|
+
- `apis/` – Admin API abstractions and implementations.
|
|
70
|
+
- `chunker/` & `impl/chunker/` – Abstractions + default text/semantic chunkers and chunker type selection class.
|
|
71
|
+
- `extractor_api_client/` & `rag_backend_client/` – Generated OpenAPI clients to talk to the extractor and rag core API services.
|
|
72
|
+
- `file_services/` & `impl/file_services/` – Abstract and default S3 interface.
|
|
73
|
+
- `summarizer/` & `impl/summarizer/` – Interfaces and LangChain-based summariser that leverage shared retry logic.
|
|
74
|
+
- `information_enhancer/` & `impl/information_enhancer/` – Abstractions + page and summary enhancer. Enhancers are centralized with general enhancer.
|
|
75
|
+
- `impl/key_db/` – KeyDB/Redis client implementation for document status tracking.
|
|
76
|
+
- `impl/mapper/` – Mapper between extractor documents and langchain documents.
|
|
77
|
+
- `impl/settings/` – Configuration settings for dependency injection container components.
|
|
78
|
+
- `prompt_templates/` – Default summarisation prompt shipped with the template.
|
|
79
|
+
- `utils/` – Utility functions and classes.
|
|
80
|
+
|
|
81
|
+
## Endpoints provided
|
|
82
|
+
|
|
83
|
+
- `POST /upload_file` – Uploads user selected files
|
|
84
|
+
- `POST /upload_source` - Uploads user selected sources
|
|
85
|
+
- `DELETE /documents/{identification}` – Deletes a document from the system.
|
|
86
|
+
- `GET /document_reference/{identification}` – Retrieves a document reference.
|
|
87
|
+
- `GET /all_documents_status` – Retrieves the status of all documents.
|
|
88
|
+
|
|
89
|
+
Refer to [`libs/README.md`](../README.md#2-admin-api-lib) for in-depth API documentation.
|
|
90
|
+
|
|
91
|
+
## Configuration overview
|
|
92
|
+
|
|
93
|
+
All settings are powered by `pydantic-settings`, so you can use environment variables or instantiate classes manually:
|
|
94
|
+
|
|
95
|
+
- `S3_*` (`S3_ACCESS_KEY_ID`, `S3_SECRET_ACCESS_KEY`, `S3_ENDPOINT`, `S3_BUCKET`) – configure storage for raw uploads.
|
|
96
|
+
- `DOCUMENT_EXTRACTOR_HOST` – base URL of the extractor service.
|
|
97
|
+
- `RAG_API_HOST` – base URL of the rag-core API.
|
|
98
|
+
- `CHUNKER_CLASS_TYPE_CHUNKER_TYPE` – choose `recursive` (default) or `semantic` chunking.
|
|
99
|
+
- `CHUNKER_*` (`CHUNKER_MAX_SIZE`, `CHUNKER_OVERLAP`, `CHUNKER_BREAKPOINT_THRESHOLD_TYPE`, …) – fine-tune chunking behaviour.
|
|
100
|
+
- `SUMMARIZER_MAXIMUM_INPUT_SIZE`, `SUMMARIZER_MAXIMUM_CONCURRENCY`, `SUMMARIZER_MAX_RETRIES`, etc. – tune summariser limits and retry behaviour.
|
|
101
|
+
- `SOURCE_UPLOADER_TIMEOUT` – adjust how long non-file source ingestions wait before timing out.
|
|
102
|
+
- `USECASE_KEYVALUE_HOST` / `USECASE_KEYVALUE_PORT` – configure the KeyDB/Redis instance that persists document status.
|
|
103
|
+
|
|
104
|
+
The Helm chart forwards these values through `adminBackend.envs.*`, keeping deployments declarative. Local development can rely on `.env` as described in the repository root README.
|
|
105
|
+
|
|
106
|
+
## Typical usage
|
|
107
|
+
|
|
108
|
+
```python
|
|
109
|
+
from admin_api_lib.main import app as perfect_admin_app
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
The admin frontend (`services/frontend` → Admin app) and automation scripts talk to these endpoints to manage the corpus. Downstream, `rag-core-api` receives the processed information pieces and stores them in the vector database.
|
|
113
|
+
|
|
114
|
+
## Extending the library
|
|
115
|
+
|
|
116
|
+
1. Implement a new interface (e.g., `Chunker`, `Summarizer`, `FileService`).
|
|
117
|
+
2. Register it in `dependency_container.py` or override via dependency-injector in your service.
|
|
118
|
+
3. Update or add API endpoints if you expose new capabilities.
|
|
119
|
+
4. Cover the new behaviour with pytest-based unit tests under `libs/admin-api-lib/tests`.
|
|
120
|
+
|
|
121
|
+
Because components depend on interfaces defined here, downstream services can swap behavior without modifying the public API surface.
|
|
122
|
+
|
|
123
|
+
## Contributing
|
|
124
|
+
|
|
125
|
+
Ensure new endpoints or adapters remain thin and defer to [`rag-core-lib`](../rag-core-lib/) for shared logic. Run `poetry run pytest` and the configured linters before opening a PR. For further instructions see the [Contributing Guide](https://github.com/stackitcloud/rag-template/blob/main/CONTRIBUTING.md).
|
|
126
|
+
|
|
127
|
+
## License
|
|
128
|
+
|
|
129
|
+
Licensed under the project license. See the root [`LICENSE`](https://github.com/stackitcloud/rag-template/blob/main/LICENSE) file.
|
|
130
|
+
|
|
@@ -2,11 +2,11 @@ admin_api_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
admin_api_lib/api_endpoints/document_deleter.py,sha256=1L0mqBBiGV5XXE2-4gpHh2hXuVdtqqz06qLaG3dQx9M,727
|
|
3
3
|
admin_api_lib/api_endpoints/document_reference_retriever.py,sha256=eisisp-ZMPn3P1yNkxiqQroz3Rz4Zz8pCrj8JQ9rrro,658
|
|
4
4
|
admin_api_lib/api_endpoints/documents_status_retriever.py,sha256=PxrW4X6mN2z_XJHzTqeolCnRusiiBC4OE8TdI4lUEMg,572
|
|
5
|
-
admin_api_lib/api_endpoints/file_uploader.py,sha256=
|
|
6
|
-
admin_api_lib/api_endpoints/source_uploader.py,sha256=
|
|
7
|
-
admin_api_lib/api_endpoints/uploader_base.py,sha256=
|
|
5
|
+
admin_api_lib/api_endpoints/file_uploader.py,sha256=r7m9G06aSC3mBdVuXCBKTfR5bTmYEjGJSTavhKRuSJk,725
|
|
6
|
+
admin_api_lib/api_endpoints/source_uploader.py,sha256=WZsVsL5kBruAL3dDSl95TVG0vb3i7p_vbfTR0eS_CqA,1126
|
|
7
|
+
admin_api_lib/api_endpoints/uploader_base.py,sha256=mBaGknpCXGMQ02rwB3eqLPeePFPPgp9xCLF-6zQ5mYM,808
|
|
8
8
|
admin_api_lib/apis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
admin_api_lib/apis/admin_api.py,sha256=
|
|
9
|
+
admin_api_lib/apis/admin_api.py,sha256=RaeVO7A-IW_1kntw19RVUbKAI_BDIQExmgzAAZ5T3S8,5833
|
|
10
10
|
admin_api_lib/apis/admin_api_base.py,sha256=20M8U8dM91pJa2Wqx_UZTjpU0XCHIffVRac-_KJRMmk,3094
|
|
11
11
|
admin_api_lib/chunker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
admin_api_lib/chunker/chunker.py,sha256=R2mxwmvz8o3iNzGHaLoMERcsIh82x88ZkKndbRNU-7U,627
|
|
@@ -37,10 +37,10 @@ admin_api_lib/file_services/file_service.py,sha256=nBEga-HEuSlG47BpO4hR4U4cAC_kU
|
|
|
37
37
|
admin_api_lib/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
38
|
admin_api_lib/impl/admin_api.py,sha256=k5geH6NorzzKg3_Z0tltLgTeJ0ru5AyFKPQi4nWjdnE,5483
|
|
39
39
|
admin_api_lib/impl/api_endpoints/default_document_deleter.py,sha256=iKqBnk6bFRsZczZUdLBtetHUrZY30xrJWQbC02ZgL2M,3719
|
|
40
|
-
admin_api_lib/impl/api_endpoints/default_document_reference_retriever.py,sha256=
|
|
40
|
+
admin_api_lib/impl/api_endpoints/default_document_reference_retriever.py,sha256=H3bQvpMLMjsyUzZMfTziPW7qU3N9D5s6DMKEA4fMITM,2642
|
|
41
41
|
admin_api_lib/impl/api_endpoints/default_documents_status_retriever.py,sha256=ZtLNgmFWGcfU4jNhVPiAKIJT701Z4wVwQAWpPbegxfc,1419
|
|
42
|
-
admin_api_lib/impl/api_endpoints/default_file_uploader.py,sha256=
|
|
43
|
-
admin_api_lib/impl/api_endpoints/default_source_uploader.py,sha256=
|
|
42
|
+
admin_api_lib/impl/api_endpoints/default_file_uploader.py,sha256=hfBPI1dgY-KUk_7dZU6yU04bbAMxn4hPKOQtxBBg5Ts,9613
|
|
43
|
+
admin_api_lib/impl/api_endpoints/default_source_uploader.py,sha256=NuN_pPsq17IrOYNsxG_0xAM9Vlz5QYsKVhKf-ghYlw4,8583
|
|
44
44
|
admin_api_lib/impl/chunker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
45
|
admin_api_lib/impl/chunker/chunker_type.py,sha256=ArEAmQ9OWe3ek7FMb2auFvGk4UXsOr3xzjyB5TXI2i8,247
|
|
46
46
|
admin_api_lib/impl/chunker/semantic_text_chunker.py,sha256=VrbHpY867gQPtMhz6HjqstdBQ-e74kwce_Ma-9LVsJo,10605
|
|
@@ -101,6 +101,6 @@ admin_api_lib/summarizer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
101
101
|
admin_api_lib/summarizer/summarizer.py,sha256=D0rkW0iZSys-68LcO1-PIkE0Faf2Grg-_9wu75Rc1OY,966
|
|
102
102
|
admin_api_lib/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
103
103
|
admin_api_lib/utils/utils.py,sha256=eaNQ_NzUEp4hwhCU9EEsUXvbRH_ekVariF7tTsO9Sco,834
|
|
104
|
-
admin_api_lib-3.
|
|
105
|
-
admin_api_lib-3.
|
|
106
|
-
admin_api_lib-3.
|
|
104
|
+
admin_api_lib-3.4.0.dist-info/METADATA,sha256=qQVpMYoe2RcpuEmG3zqhyfl6bn8Oh_VUero7Ixjvdig,7466
|
|
105
|
+
admin_api_lib-3.4.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
106
|
+
admin_api_lib-3.4.0.dist-info/RECORD,,
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: admin-api-lib
|
|
3
|
-
Version: 3.2.0
|
|
4
|
-
Summary: The admin backend is responsible for the document management. This includes deletion, upload and returning the source document.
|
|
5
|
-
Author: STACKIT Data and AI Consulting
|
|
6
|
-
Author-email: data-ai-consulting@stackit.cloud
|
|
7
|
-
Requires-Python: >=3.13,<4.0
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
10
|
-
Requires-Dist: boto3 (>=1.38.10,<2.0.0)
|
|
11
|
-
Requires-Dist: dependency-injector (>=4.46.0,<5.0.0)
|
|
12
|
-
Requires-Dist: fastapi (>=0.118.0,<0.119.0)
|
|
13
|
-
Requires-Dist: langchain-experimental (>=0.3.4,<0.4.0)
|
|
14
|
-
Requires-Dist: langfuse (==3.6.1)
|
|
15
|
-
Requires-Dist: nltk (>=3.9.2,<4.0.0)
|
|
16
|
-
Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
|
|
17
|
-
Requires-Dist: python-multipart (>=0.0.20,<0.0.21)
|
|
18
|
-
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
19
|
-
Requires-Dist: rag-core-lib (==3.2.0)
|
|
20
|
-
Requires-Dist: redis (>=6.0.0,<7.0.0)
|
|
21
|
-
Requires-Dist: starlette (>=0.47.2,<0.49.0)
|
|
22
|
-
Requires-Dist: tenacity (==9.1.2)
|
|
23
|
-
Requires-Dist: tqdm (>=4.67.1,<5.0.0)
|
|
24
|
-
Requires-Dist: uvicorn (>=0.37.0,<0.38.0)
|