svarupa

repodocument-extraction-pipeline
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 6Explore this system
  1. 01core +65 boxes
  2. 02services +35 boxes
  3. 03SQL database4 boxes
  4. 04AWS SDK3 boxes
  5. 05versions2 boxes
  6. 06OpenAI API2 boxes

Architecture

13 modules in 3 groups

level 1in a cycleexternalreads/writes alembic/versions/001_create_users_and_jobs.py:10reads/writescalls app/core/storage.py:5 app/core/storage.py:6reads/writes app/core/redis_client.py:3reads/writesreads/writes alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8reads/writes5 imports app/api/routes/documents.py:11 app/api/routes/documents.py:12 app/api/routes/documents.py:13 app/api/routes/documents.py:69 app/core/storage.py:10calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callscalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:714 imports app/services/job_service.py:8 app/services/llm_service.py:8 app/services/llm_service.py:9 app/services/llm_service.py:10 app/services/mineru_service.py:27 app/services/ocr_service.py:8versions alembic/versions/001_create_users_and_jobs.py:1versions1 fileSRC 1›core +6 app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycore +67 modulesSRC 6›services +3 app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/utils/exceptions.py:1 app/services/__init__.pyservices +34 modulesSRC 6›Redis app/core/redis_client.py:3Redisvia redisSRC 1AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4SQL database alembic/env.py:4 alembic/versions/001_create_users_and_jobs.py:10 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3SQL databasevia sqlalchemySRC 6OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1
cloud 2 database 2 group 2 module 1solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one
Entry points
Data stores
  • … and 1 more
External APIs
Unresolved
  • python calls: 264 unresolved · e.g. config.get_main_option, config.set_main_option, connectable.connect
  • python imports: 24 unresolved · e.g. PIL, botocore.config, botocore.exceptions
  • python inherits: 1 unresolved · e.g. BaseHTTPMiddleware
  • python references: 41 unresolved · e.g. app.api.deps.CurrentUser, app.api.deps.DBSession, app.api.deps.Pagination

← core +6 internals

alembic code

4 functions

level 1level 2calls alembic/env.py:56callsdo_run_migrations alembic/env.py:38do_run_migrationsSRC 1run_migrations_online alembic/env.py:55run_migrations_onlineSRC 1run_migrations_offline alembic/env.py:26run_migrations_offlineSRC 1run_async_migrations alembic/env.py:44run_async_migrationsSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Architecture

versions code

2 functions

level 1downgrade alembic/versions/001_create_users_and_jobs.py:93downgradeSRC 1upgrade alembic/versions/001_create_users_and_jobs.py:21upgradeSRC 1
function 2every box and arrow cites a source line; click one

← core +6 internals

app component flow

2 components

level 1level 21 use app/main.py:13main app/main.py:1mainSRC 1›__init__ app/__init__.py:1__init__SRC 1
component 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← core +6 internals

app/api component flow

2 components

level 1__init__ app/api/__init__.py__init__SRC 1deps app/api/deps.py:1depsSRC 1
component 2every box and arrow cites a source line; click one

← core +6 internals

app/api/routes component flow

4 components

level 1__init__ app/api/routes/__init__.py__init__SRC 1auth app/api/routes/auth.py:1authSRC 1›documents app/api/routes/documents.py:1documentsSRC 1›health app/api/routes/health.py:1healthSRC 1
component 4every box and arrow cites a source line; click one

← app/api/routes component flow

auth code

2 functions

level 1login app/api/routes/auth.py:45loginSRC 1register app/api/routes/auth.py:23registerSRC 1
function 2every box and arrow cites a source line; click one

← app/api/routes component flow

documents code

3 functions

level 1get_result app/api/routes/documents.py:83get_resultSRC 1list_jobs app/api/routes/documents.py:103list_jobsSRC 1upload_document app/api/routes/documents.py:25upload_documentSRC 1
function 3every box and arrow cites a source line; click one

← Architecture

core +6 internals

7 modules, 3 external

level 1level 2level 3in a cycleexternal2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:13reads/writes alembic/env.py:4reads/writes1 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:8reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:10reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:51 import app/core/security.py:53calls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:82 imports app/models/job.py:8 app/models/user.py:8reads/writes app/models/job.py:4 app/models/user.py:4alembic alembic/env.py:1alembic1 fileSRC 1›app app/__init__.py:1 app/main.py:1app2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 5›api app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›SQL database alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8SQL databasevia sqlalchemySRC 6AWS SDK app/core/storage.py:5 app/core/storage.py:6AWS SDKvia boto3, botocoreSRC 2Redis app/core/redis_client.py:3Redisvia redisSRC 1
backend 1 cloud 1 database 2 module 5 security 1solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one

← core +6 internals

app/core component flow

8 components

level 1level 2level 31 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1database app/core/database.py:1databaseSRC 1›config app/core/config.py:1configSRC 1
component 8solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

database code

1 class and 1 function

level 1Base app/core/database.py:25BaseSRC 1get_db app/core/database.py:29get_dbSRC 1
class 1 function 1every box and arrow cites a source line; click one

← app/core component flow

logging code

1 class and 2 functions

level 1CorrelationIdMiddleware app/core/logging.py:47CorrelationIdMiddlewareSRC 1configure_logging app/core/logging.py:14configure_loggingSRC 1get_logger app/core/logging.py:43get_loggerSRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/core component flow

redis_client code

5 functions

level 1level 2calls app/core/redis_client.py:39callscalls app/core/redis_client.py:34callscheck_redis_connectivity app/core/redis_client.py:37check_redis_connectivitySRC 1get_redis app/core/redis_client.py:33get_redisSRC 1close_redis app/core/redis_client.py:20close_redisSRC 1init_redis app/core/redis_client.py:10init_redisSRC 1get_redis_pool app/core/redis_client.py:27get_redis_poolSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

security code

5 functions

level 1level 2calls app/core/security.py:55callscreate_access_token app/core/security.py:26create_access_tokenSRC 1get_current_user app/core/security.py:49get_current_userSRC 1hash_password app/core/security.py:18hash_passwordSRC 1verify_password app/core/security.py:22verify_passwordSRC 1decode_access_token app/core/security.py:35decode_access_tokenSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app component flow

main code

2 functions

level 1lifespan app/main.py:24lifespanSRC 1unhandled_exception_handler app/main.py:71unhandled_exception_handlerSRC 1
function 2every box and arrow cites a source line; click one

← core +6 internals

app/models component flow

3 components

level 1level 21 use app/models/__init__.py:11 use app/models/__init__.py:2__init__ app/models/__init__.py:1__init__SRC 1job app/models/job.py:1jobSRC 1user app/models/user.py:1userSRC 1
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← core +6 internals

app/schemas component flow

4 components

level 1level 21 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1jobSRC 1›
component 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/schemas component flow

auth code

4 classes

level 1TokenRequest app/schemas/auth.py:30TokenRequestSRC 1TokenResponse app/schemas/auth.py:35TokenResponseSRC 1UserCreate app/schemas/auth.py:7UserCreateSRC 1UserResponse app/schemas/auth.py:21UserResponseSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

documents code

4 classes

level 1ESGExtraction app/schemas/documents.py:37ESGExtractionSRC 1InvoiceExtraction app/schemas/documents.py:13InvoiceExtractionSRC 1LegalExtraction app/schemas/documents.py:29LegalExtractionSRC 1LineItem app/schemas/documents.py:6LineItemSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

job code

4 classes

level 1level 2inherits app/schemas/job.py:33inheritsDocumentType app/schemas/job.py:16DocumentTypeSRC 1JobResultResponse app/schemas/job.py:33JobResultResponseSRC 1JobStatus app/schemas/job.py:9JobStatusSRC 1JobResponse app/schemas/job.py:22JobResponseSRC 1
class 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Architecture

services +3 internals

4 modules, 3 external

level 1level 2level 3external6 imports app/services/job_service.py:9 app/services/llm_service.py:11 app/services/llm_service.py:12 app/services/llm_service.py:13 app/services/mineru_service.py:28 app/services/ocr_service.py:9calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14calls2 imports app/workers/tasks.py:13 app/workers/tasks.py:142 imports app/workers/tasks.py:15 app/workers/tasks.py:16reads/writes app/workers/sync_db.py:4 app/workers/tasks.py:71 import scripts/init_mineru_models.py:120workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/tasks.py:27 app/workers/__init__.pyworkersCelery · 1 taskSRC 4›scripts scripts/init_mineru_models.py:1scripts1 fileSRC 1›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1AWS SDK app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 2SQL database app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:7SQL databasevia sqlalchemySRC 3
backend 1 cloud 2 database 1 module 3solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one

← services +3 internals

app/services component flow

5 components

level 1__init__ app/services/__init__.py__init__SRC 1job_service app/services/job_service.py:1job_serviceSRC 1›llm_service app/services/llm_service.py:1llm_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_serviceSRC 1›ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1
component 5every box and arrow cites a source line; click one

← app/services component flow

job_service code

4 functions

level 1create_job app/services/job_service.py:12create_jobSRC 1get_job app/services/job_service.py:35get_jobSRC 1list_user_jobs app/services/job_service.py:64list_user_jobsSRC 1update_job_status app/services/job_service.py:45update_job_statusSRC 1
function 4every box and arrow cites a source line; click one

← app/services component flow

mineru_service code

1 class and 3 functions

level 1MinerUService app/services/mineru_service.py:125MinerUServiceSRC 1_image_to_pdf app/services/mineru_service.py:59_image_to_pdfSRC 1_run_mineru_sync app/services/mineru_service.py:74_run_mineru_syncSRC 1_write_mineru_config app/services/mineru_service.py:41_write_mineru_configSRC 1
class 1 function 3every box and arrow cites a source line; click one

← services +3 internals

app/utils component flow

6 components

level 1__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›
component 6every box and arrow cites a source line; click one

← app/utils component flow

exceptions code

6 classes

level 1level 2inherits app/utils/exceptions.py:21inheritsinherits app/utils/exceptions.py:9inheritsinherits app/utils/exceptions.py:5inheritsinherits app/utils/exceptions.py:13inheritsinherits app/utils/exceptions.py:17inheritsJobNotFoundError app/utils/exceptions.py:21JobNotFoundErrorSRC 1LLMExtractionError app/utils/exceptions.py:9LLMExtractionErrorSRC 1OCRError app/utils/exceptions.py:5OCRErrorSRC 1SchemaValidationError app/utils/exceptions.py:13SchemaValidationErrorSRC 1StorageError app/utils/exceptions.py:17StorageErrorSRC 1DocumentExtractionError app/utils/exceptions.py:1DocumentExtractionErrorSRC 1
class 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

model_sync code

4 functions

level 1level 2level 3calls app/utils/model_sync.py:96callscalls app/utils/model_sync.py:59callscalls app/utils/model_sync.py:38callsensure_models app/utils/model_sync.py:75ensure_modelsSRC 1push_models_to_minio app/utils/model_sync.py:33push_models_to_minioSRC 1pull_models_from_minio app/utils/model_sync.py:52pull_models_from_minioSRC 1_make_s3_client app/utils/model_sync.py:22_make_s3_clientSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

prompts code

2 functions

level 1build_user_prompt app/utils/prompts.py:66build_user_promptSRC 1get_system_prompt app/utils/prompts.py:70get_system_promptSRC 1
function 2every box and arrow cites a source line; click one

← app/utils component flow

text_processing code

5 functions

level 1level 2calls app/utils/text_processing.py:41callschunk_text app/utils/text_processing.py:21chunk_textSRC 1clean_markdown app/utils/text_processing.py:69clean_markdownSRC 1clean_text app/utils/text_processing.py:6clean_textSRC 1sanitize_filename app/utils/text_processing.py:86sanitize_filenameSRC 1_find_sentence_boundary app/utils/text_processing.py:59_find_sentence_boundarySRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

validators code

4 functions

level 1level 2calls app/utils/validators.py:50callsgenerate_storage_key app/utils/validators.py:47generate_storage_keySRC 1validate_file_size app/utils/validators.py:25validate_file_sizeSRC 1validate_file_type app/utils/validators.py:14validate_file_typeSRC 1sanitize_filename app/utils/validators.py:35sanitize_filenameSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +3 internals

app/workers component flow

3 components

level 1level 26 uses app/workers/tasks.py:17 app/workers/tasks.py:43 app/workers/tasks.py:65 app/workers/tasks.py:74 app/workers/tasks.py:86 app/workers/tasks.py:119__init__ app/workers/__init__.py__init__SRC 1tasks app/workers/tasks.py:1tasksSRC 1›sync_db app/workers/sync_db.py:1sync_dbSRC 1
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/workers component flow

tasks code

3 functions

level 1level 2level 3calls app/workers/tasks.py:120callscalls app/workers/tasks.py:44 app/workers/tasks.py:66 app/workers/tasks.py:75 app/workers/tasks.py:87callscalls app/workers/tasks.py:99 app/workers/tasks.py:104 app/workers/tasks.py:109 app/workers/tasks.py:113process_document app/workers/tasks.py:35process_documentSRC 1_mark_failed app/workers/tasks.py:117_mark_failedSRC 1_get_job app/workers/tasks.py:23_get_jobSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +3 internals

scripts code

3 functions

level 1level 2level 3calls scripts/init_mineru_models.py:58callscalls scripts/init_mineru_models.py:125callsmain scripts/init_mineru_models.py:98mainSRC 1download_models scripts/init_mineru_models.py:50download_modelsSRC 1_write_temp_config scripts/init_mineru_models.py:38_write_temp_configSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app component flow

main code

2 functions

level 1level 21 use app/main.py:13__init__ app/__init__.py:1__init__SRC 1main app/main.py:1main×level 1lifespan app/main.py:24lifespanSRC 1unhandled_exception_handler app/main.py:71unhandled_exception_handlerSRC 1
function 2every box and arrow cites a source line; click one

← app/api/routes component flow

auth code

2 functions

level 1__init__ app/api/routes/__init__.py__init__SRC 1documents app/api/routes/documents.py:1documentsSRC 1›health app/api/routes/health.py:1healthSRC 1auth app/api/routes/auth.py:1auth×level 1login app/api/routes/auth.py:45loginSRC 1register app/api/routes/auth.py:23registerSRC 1
function 2every box and arrow cites a source line; click one

← app/api/routes component flow

documents code

3 functions

level 1__init__ app/api/routes/__init__.py__init__SRC 1auth app/api/routes/auth.py:1authSRC 1›health app/api/routes/health.py:1healthSRC 1documents app/api/routes/documents.py:1documents×level 1get_result app/api/routes/documents.py:83get_resultSRC 1list_jobs app/api/routes/documents.py:103list_jobsSRC 1upload_document app/api/routes/documents.py:25upload_documentSRC 1
function 3every box and arrow cites a source line; click one

← core +6 internals

alembic code

4 functions

level 1level 2level 3in a cycleexternal2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:13reads/writes alembic/env.py:4reads/writes1 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:8reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:10reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:51 import app/core/security.py:53calls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:82 imports app/models/job.py:8 app/models/user.py:8reads/writes app/models/job.py:4 app/models/user.py:4app app/__init__.py:1 app/main.py:1app2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 5›api app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›SQL database alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8SQL databasevia sqlalchemySRC 6AWS SDK app/core/storage.py:5 app/core/storage.py:6AWS SDKvia boto3, botocoreSRC 2Redis app/core/redis_client.py:3Redisvia redisSRC 1alembic alembic/env.py:1alembic×level 1level 2calls alembic/env.py:56callsdo_run_migrations alembic/env.py:38do_run_migrationsSRC 1run_migrations_online alembic/env.py:55run_migrations_onlineSRC 1run_migrations_offline alembic/env.py:26run_migrations_offlineSRC 1run_async_migrations alembic/env.py:44run_async_migrationsSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← core +6 internals

app component flow

2 components

level 1level 2level 3in a cycleexternal2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:13reads/writes alembic/env.py:41 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:8reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:10reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:51 import app/core/security.py:53calls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:82 imports app/models/job.py:8 app/models/user.py:8reads/writes app/models/job.py:4 app/models/user.py:4alembic alembic/env.py:1alembic1 fileSRC 1›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 5›api app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›SQL database alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8SQL databasevia sqlalchemySRC 6AWS SDK app/core/storage.py:5 app/core/storage.py:6AWS SDKvia boto3, botocoreSRC 2Redis app/core/redis_client.py:3Redisvia redisSRC 1app app/__init__.py:1 app/main.py:1app×level 1level 21 use app/main.py:13main app/main.py:1mainSRC 1›__init__ app/__init__.py:1__init__SRC 1
component 2solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← core +6 internals

app/api component flow

2 components

level 1level 2level 3in a cycleexternal2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:13reads/writes alembic/env.py:4reads/writes1 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:8reads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:10reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:51 import app/core/security.py:53calls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:82 imports app/models/job.py:8 app/models/user.py:8reads/writes app/models/job.py:4 app/models/user.py:4alembic alembic/env.py:1alembic1 fileSRC 1›app app/__init__.py:1 app/main.py:1app2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 5›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›SQL database alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8SQL databasevia sqlalchemySRC 6AWS SDK app/core/storage.py:5 app/core/storage.py:6AWS SDKvia boto3, botocoreSRC 2Redis app/core/redis_client.py:3Redisvia redisSRC 1api app/api/deps.py:1 app/api/__init__.pyapi×level 1__init__ app/api/__init__.py__init__SRC 1deps app/api/deps.py:1depsSRC 1
component 2every box and arrow cites a source line; click one

← core +6 internals

app/api/routes component flow

4 components

level 1level 2level 3in a cycleexternal2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:13reads/writes alembic/env.py:4reads/writes1 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:8reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:10reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writes1 import app/core/security.py:53calls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:82 imports app/models/job.py:8 app/models/user.py:8reads/writes app/models/job.py:4 app/models/user.py:4alembic alembic/env.py:1alembic1 fileSRC 1›app app/__init__.py:1 app/main.py:1app2 filesSRC 2›api app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›SQL database alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8SQL databasevia sqlalchemySRC 6AWS SDK app/core/storage.py:5 app/core/storage.py:6AWS SDKvia boto3, botocoreSRC 2Redis app/core/redis_client.py:3Redisvia redisSRC 1routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutes×level 1__init__ app/api/routes/__init__.py__init__SRC 1auth app/api/routes/auth.py:1authSRC 1›documents app/api/routes/documents.py:1documentsSRC 1›health app/api/routes/health.py:1healthSRC 1
component 4every box and arrow cites a source line; click one

← core +6 internals

app/core component flow

8 components

level 1level 2level 3in a cycleexternal2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:13reads/writes alembic/env.py:4reads/writes1 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:8reads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:10reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:51 import app/core/security.py:53calls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writesreads/writes app/core/database.py:3 app/core/security.py:8reads/writes2 imports app/models/job.py:8 app/models/user.py:8reads/writes app/models/job.py:4 app/models/user.py:4reads/writesalembic alembic/env.py:1alembic1 fileSRC 1›app app/__init__.py:1 app/main.py:1app2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 5›api app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›SQL database alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8SQL databasevia sqlalchemySRC 6AWS SDK app/core/storage.py:5 app/core/storage.py:6AWS SDKvia boto3, botocoreSRC 2Redis app/core/redis_client.py:3Redisvia redisSRC 1core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycore×level 1level 2level 31 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1database app/core/database.py:1databaseSRC 1›config app/core/config.py:1configSRC 1
component 8solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← core +6 internals

app/models component flow

3 components

level 1level 2level 3in a cycleexternal2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:13reads/writes alembic/env.py:4reads/writes1 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:8reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:10reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:51 import app/core/security.py:53calls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes2 imports app/models/job.py:8 app/models/user.py:8reads/writes app/models/job.py:4 app/models/user.py:4reads/writesalembic alembic/env.py:1alembic1 fileSRC 1›app app/__init__.py:1 app/main.py:1app2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 5›api app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›SQL database alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8SQL databasevia sqlalchemySRC 6AWS SDK app/core/storage.py:5 app/core/storage.py:6AWS SDKvia boto3, botocoreSRC 2Redis app/core/redis_client.py:3Redisvia redisSRC 1models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models×level 1level 21 use app/models/__init__.py:11 use app/models/__init__.py:2__init__ app/models/__init__.py:1__init__SRC 1job app/models/job.py:1jobSRC 1user app/models/user.py:1userSRC 1
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← core +6 internals

app/schemas component flow

4 components

level 1level 2level 3in a cycleexternal2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:13reads/writes alembic/env.py:4reads/writes1 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:8reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:10reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writes1 import app/core/security.py:53calls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:82 imports app/models/job.py:8 app/models/user.py:8reads/writes app/models/job.py:4 app/models/user.py:4alembic alembic/env.py:1alembic1 fileSRC 1›app app/__init__.py:1 app/main.py:1app2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 5›api app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›SQL database alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8SQL databasevia sqlalchemySRC 6AWS SDK app/core/storage.py:5 app/core/storage.py:6AWS SDKvia boto3, botocoreSRC 2Redis app/core/redis_client.py:3Redisvia redisSRC 1schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas×level 1level 21 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1jobSRC 1›
component 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

database code

1 class and 1 function

level 1level 2level 31 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1database×level 1Base app/core/database.py:25BaseSRC 1get_db app/core/database.py:29get_dbSRC 1
class 1 function 1every box and arrow cites a source line; click one

← app/core component flow

logging code

1 class and 2 functions

level 1level 2level 31 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1database app/core/database.py:1databaseSRC 1›config app/core/config.py:1configSRC 1logging app/core/logging.py:1logging×level 1CorrelationIdMiddleware app/core/logging.py:47CorrelationIdMiddlewareSRC 1configure_logging app/core/logging.py:14configure_loggingSRC 1get_logger app/core/logging.py:43get_loggerSRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/core component flow

redis_client code

5 functions

level 1level 2level 31 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1logging app/core/logging.py:1loggingSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1database app/core/database.py:1databaseSRC 1›config app/core/config.py:1configSRC 1redis_client app/core/redis_client.py:1redis_client×level 1level 2calls app/core/redis_client.py:39callscalls app/core/redis_client.py:34callscheck_redis_connectivity app/core/redis_client.py:37check_redis_connectivitySRC 1get_redis app/core/redis_client.py:33get_redisSRC 1close_redis app/core/redis_client.py:20close_redisSRC 1init_redis app/core/redis_client.py:10init_redisSRC 1get_redis_pool app/core/redis_client.py:27get_redis_poolSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

security code

5 functions

level 1level 2level 31 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›storage app/core/storage.py:1storageSRC 1database app/core/database.py:1databaseSRC 1›config app/core/config.py:1configSRC 1security app/core/security.py:1security×level 1level 2calls app/core/security.py:55callscreate_access_token app/core/security.py:26create_access_tokenSRC 1get_current_user app/core/security.py:49get_current_userSRC 1hash_password app/core/security.py:18hash_passwordSRC 1verify_password app/core/security.py:22verify_passwordSRC 1decode_access_token app/core/security.py:35decode_access_tokenSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/schemas component flow

auth code

4 classes

level 1level 21 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1jobSRC 1›auth app/schemas/auth.py:1auth×level 1TokenRequest app/schemas/auth.py:30TokenRequestSRC 1TokenResponse app/schemas/auth.py:35TokenResponseSRC 1UserCreate app/schemas/auth.py:7UserCreateSRC 1UserResponse app/schemas/auth.py:21UserResponseSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

documents code

4 classes

level 1level 21 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›job app/schemas/job.py:1jobSRC 1›documents app/schemas/documents.py:1documents×level 1ESGExtraction app/schemas/documents.py:37ESGExtractionSRC 1InvoiceExtraction app/schemas/documents.py:13InvoiceExtractionSRC 1LegalExtraction app/schemas/documents.py:29LegalExtractionSRC 1LineItem app/schemas/documents.py:6LineItemSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

job code

4 classes

level 1level 21 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1job×level 1level 2inherits app/schemas/job.py:33inheritsDocumentType app/schemas/job.py:16DocumentTypeSRC 1JobResultResponse app/schemas/job.py:33JobResultResponseSRC 1JobStatus app/schemas/job.py:9JobStatusSRC 1JobResponse app/schemas/job.py:22JobResponseSRC 1
class 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +3 internals

app/services component flow

5 components

level 1level 2level 3external6 imports app/services/job_service.py:9 app/services/llm_service.py:11 app/services/llm_service.py:12 app/services/llm_service.py:13 app/services/mineru_service.py:28 app/services/ocr_service.py:9calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5reads/writescalls app/utils/model_sync.py:13 app/utils/model_sync.py:14calls2 imports app/workers/tasks.py:13 app/workers/tasks.py:142 imports app/workers/tasks.py:15 app/workers/tasks.py:16reads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writes1 import scripts/init_mineru_models.py:120workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/tasks.py:27 app/workers/__init__.pyworkersCelery · 1 taskSRC 4›scripts scripts/init_mineru_models.py:1scripts1 fileSRC 1›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1AWS SDK app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 2SQL database app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:7SQL databasevia sqlalchemySRC 3services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices×level 1__init__ app/services/__init__.py__init__SRC 1job_service app/services/job_service.py:1job_serviceSRC 1›llm_service app/services/llm_service.py:1llm_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_serviceSRC 1›ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1
component 5every box and arrow cites a source line; click one

← services +3 internals

app/utils component flow

6 components

level 1level 2level 3external6 imports app/services/job_service.py:9 app/services/llm_service.py:11 app/services/llm_service.py:12 app/services/llm_service.py:13 app/services/mineru_service.py:28 app/services/ocr_service.py:9calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5reads/writescalls app/utils/model_sync.py:13 app/utils/model_sync.py:14calls2 imports app/workers/tasks.py:13 app/workers/tasks.py:142 imports app/workers/tasks.py:15 app/workers/tasks.py:16reads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writes1 import scripts/init_mineru_models.py:120workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/tasks.py:27 app/workers/__init__.pyworkersCelery · 1 taskSRC 4›scripts scripts/init_mineru_models.py:1scripts1 fileSRC 1›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1AWS SDK app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 2SQL database app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:7SQL databasevia sqlalchemySRC 3utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils×level 1__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›
component 6every box and arrow cites a source line; click one

← services +3 internals

app/workers component flow

3 components

level 1level 2level 3external6 imports app/services/job_service.py:9 app/services/llm_service.py:11 app/services/llm_service.py:12 app/services/llm_service.py:13 app/services/mineru_service.py:28 app/services/ocr_service.py:9calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14calls2 imports app/workers/tasks.py:13 app/workers/tasks.py:142 imports app/workers/tasks.py:15 app/workers/tasks.py:16reads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writes1 import scripts/init_mineru_models.py:120scripts scripts/init_mineru_models.py:1scripts1 fileSRC 1›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1AWS SDK app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 2SQL database app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:7SQL databasevia sqlalchemySRC 3workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/tasks.py:27 app/workers/__init__.pyworkers×level 1level 26 uses app/workers/tasks.py:17 app/workers/tasks.py:43 app/workers/tasks.py:65 app/workers/tasks.py:74 app/workers/tasks.py:86 app/workers/tasks.py:119__init__ app/workers/__init__.py__init__SRC 1tasks app/workers/tasks.py:1tasksSRC 1›sync_db app/workers/sync_db.py:1sync_dbSRC 1
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← services +3 internals

scripts code

3 functions

level 1level 2level 3external6 imports app/services/job_service.py:9 app/services/llm_service.py:11 app/services/llm_service.py:12 app/services/llm_service.py:13 app/services/mineru_service.py:28 app/services/ocr_service.py:9calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14calls2 imports app/workers/tasks.py:13 app/workers/tasks.py:142 imports app/workers/tasks.py:15 app/workers/tasks.py:16reads/writes app/workers/sync_db.py:4 app/workers/tasks.py:71 import scripts/init_mineru_models.py:120workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/tasks.py:27 app/workers/__init__.pyworkersCelery · 1 taskSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1AWS SDK app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 2SQL database app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:7SQL databasevia sqlalchemySRC 3scripts scripts/init_mineru_models.py:1scripts×level 1level 2level 3calls scripts/init_mineru_models.py:58callscalls scripts/init_mineru_models.py:125callsmain scripts/init_mineru_models.py:98mainSRC 1download_models scripts/init_mineru_models.py:50download_modelsSRC 1_write_temp_config scripts/init_mineru_models.py:38_write_temp_configSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

job_service code

4 functions

level 1__init__ app/services/__init__.py__init__SRC 1llm_service app/services/llm_service.py:1llm_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_serviceSRC 1›ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1job_service app/services/job_service.py:1job_service×level 1create_job app/services/job_service.py:12create_jobSRC 1get_job app/services/job_service.py:35get_jobSRC 1list_user_jobs app/services/job_service.py:64list_user_jobsSRC 1update_job_status app/services/job_service.py:45update_job_statusSRC 1
function 4every box and arrow cites a source line; click one

← app/services component flow

mineru_service code

1 class and 3 functions

level 1__init__ app/services/__init__.py__init__SRC 1job_service app/services/job_service.py:1job_serviceSRC 1›llm_service app/services/llm_service.py:1llm_serviceSRC 1ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_service×level 1MinerUService app/services/mineru_service.py:125MinerUServiceSRC 1_image_to_pdf app/services/mineru_service.py:59_image_to_pdfSRC 1_run_mineru_sync app/services/mineru_service.py:74_run_mineru_syncSRC 1_write_mineru_config app/services/mineru_service.py:41_write_mineru_configSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/utils component flow

exceptions code

6 classes

level 1__init__ app/utils/__init__.py__init__SRC 1model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›exceptions app/utils/exceptions.py:1exceptions×level 1level 2inherits app/utils/exceptions.py:21inheritsinherits app/utils/exceptions.py:9inheritsinherits app/utils/exceptions.py:5inheritsinherits app/utils/exceptions.py:13inheritsinherits app/utils/exceptions.py:17inheritsJobNotFoundError app/utils/exceptions.py:21JobNotFoundErrorSRC 1LLMExtractionError app/utils/exceptions.py:9LLMExtractionErrorSRC 1OCRError app/utils/exceptions.py:5OCRErrorSRC 1SchemaValidationError app/utils/exceptions.py:13SchemaValidationErrorSRC 1StorageError app/utils/exceptions.py:17StorageErrorSRC 1DocumentExtractionError app/utils/exceptions.py:1DocumentExtractionErrorSRC 1
class 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

model_sync code

4 functions

level 1__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›model_sync app/utils/model_sync.py:1model_sync×level 1level 2level 3calls app/utils/model_sync.py:96callscalls app/utils/model_sync.py:59callscalls app/utils/model_sync.py:38callsensure_models app/utils/model_sync.py:75ensure_modelsSRC 1push_models_to_minio app/utils/model_sync.py:33push_models_to_minioSRC 1pull_models_from_minio app/utils/model_sync.py:52pull_models_from_minioSRC 1_make_s3_client app/utils/model_sync.py:22_make_s3_clientSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

prompts code

2 functions

level 1__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›prompts app/utils/prompts.py:1prompts×level 1build_user_prompt app/utils/prompts.py:66build_user_promptSRC 1get_system_prompt app/utils/prompts.py:70get_system_promptSRC 1
function 2every box and arrow cites a source line; click one

← app/utils component flow

text_processing code

5 functions

level 1__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›validators app/utils/validators.py:1validatorsSRC 1›text_processing app/utils/text_processing.py:1text_processing×level 1level 2calls app/utils/text_processing.py:41callschunk_text app/utils/text_processing.py:21chunk_textSRC 1clean_markdown app/utils/text_processing.py:69clean_markdownSRC 1clean_text app/utils/text_processing.py:6clean_textSRC 1sanitize_filename app/utils/text_processing.py:86sanitize_filenameSRC 1_find_sentence_boundary app/utils/text_processing.py:59_find_sentence_boundarySRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

validators code

4 functions

level 1__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validators×level 1level 2calls app/utils/validators.py:50callsgenerate_storage_key app/utils/validators.py:47generate_storage_keySRC 1validate_file_size app/utils/validators.py:25validate_file_sizeSRC 1validate_file_type app/utils/validators.py:14validate_file_typeSRC 1sanitize_filename app/utils/validators.py:35sanitize_filenameSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/workers component flow

tasks code

3 functions

level 1level 26 uses app/workers/tasks.py:17 app/workers/tasks.py:43 app/workers/tasks.py:65 app/workers/tasks.py:74 app/workers/tasks.py:86 app/workers/tasks.py:119__init__ app/workers/__init__.py__init__SRC 1sync_db app/workers/sync_db.py:1sync_dbSRC 1tasks app/workers/tasks.py:1tasks×level 1level 2level 3calls app/workers/tasks.py:120callscalls app/workers/tasks.py:44 app/workers/tasks.py:66 app/workers/tasks.py:75 app/workers/tasks.py:87callscalls app/workers/tasks.py:99 app/workers/tasks.py:104 app/workers/tasks.py:109 app/workers/tasks.py:113process_document app/workers/tasks.py:35process_documentSRC 1_mark_failed app/workers/tasks.py:117_mark_failedSRC 1_get_job app/workers/tasks.py:23_get_jobSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Architecture

versions code

2 functions

level 1in a cycleexternalreads/writes alembic/versions/001_create_users_and_jobs.py:10reads/writescalls app/core/storage.py:5 app/core/storage.py:6reads/writes app/core/redis_client.py:3reads/writesreads/writes alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8reads/writes5 imports app/api/routes/documents.py:11 app/api/routes/documents.py:12 app/api/routes/documents.py:13 app/api/routes/documents.py:69 app/core/storage.py:10calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callscalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:714 imports app/services/job_service.py:8 app/services/llm_service.py:8 app/services/llm_service.py:9 app/services/llm_service.py:10 app/services/mineru_service.py:27 app/services/ocr_service.py:8core +6 app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycore +67 modulesSRC 6›services +3 app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/utils/exceptions.py:1 app/services/__init__.pyservices +34 modulesSRC 6›Redis app/core/redis_client.py:3Redisvia redisSRC 1AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4SQL database alembic/env.py:4 alembic/versions/001_create_users_and_jobs.py:10 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3SQL databasevia sqlalchemySRC 6OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1versions alembic/versions/001_create_users_and_jobs.py:1versions×level 1downgrade alembic/versions/001_create_users_and_jobs.py:93downgradeSRC 1upgrade alembic/versions/001_create_users_and_jobs.py:21upgradeSRC 1
function 2every box and arrow cites a source line; click one

← Architecture

core +6 internals

7 modules, 3 external

level 1in a cycleexternalreads/writes alembic/versions/001_create_users_and_jobs.py:10reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writesreads/writes alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8reads/writes5 imports app/api/routes/documents.py:11 app/api/routes/documents.py:12 app/api/routes/documents.py:13 app/api/routes/documents.py:69 app/core/storage.py:10calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callscalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writes14 imports app/services/job_service.py:8 app/services/llm_service.py:8 app/services/llm_service.py:9 app/services/llm_service.py:10 app/services/mineru_service.py:27 app/services/ocr_service.py:8versions alembic/versions/001_create_users_and_jobs.py:1versions1 fileSRC 1›services +3 app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/utils/exceptions.py:1 app/services/__init__.pyservices +34 modulesSRC 6›Redis app/core/redis_client.py:3Redisvia redisSRC 1AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4SQL database alembic/env.py:4 alembic/versions/001_create_users_and_jobs.py:10 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3SQL databasevia sqlalchemySRC 6OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1core +6 app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycore +6×level 1level 2level 3in a cycleexternal2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:13reads/writes alembic/env.py:4reads/writes1 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:8reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:10reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:51 import app/core/security.py:53calls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:82 imports app/models/job.py:8 app/models/user.py:8reads/writes app/models/job.py:4 app/models/user.py:4alembic alembic/env.py:1alembic1 fileSRC 1›app app/__init__.py:1 app/main.py:1app2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 5›api app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›SQL database alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8SQL databasevia sqlalchemySRC 6AWS SDK app/core/storage.py:5 app/core/storage.py:6AWS SDKvia boto3, botocoreSRC 2Redis app/core/redis_client.py:3Redisvia redisSRC 1
backend 1 cloud 1 database 2 module 5 security 1solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one

← Architecture

services +3 internals

4 modules, 3 external

level 1in a cycleexternalreads/writes alembic/versions/001_create_users_and_jobs.py:10reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writesreads/writes alembic/env.py:4 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:85 imports app/api/routes/documents.py:11 app/api/routes/documents.py:12 app/api/routes/documents.py:13 app/api/routes/documents.py:69 app/core/storage.py:10calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callscalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writes14 imports app/services/job_service.py:8 app/services/llm_service.py:8 app/services/llm_service.py:9 app/services/llm_service.py:10 app/services/mineru_service.py:27 app/services/ocr_service.py:8versions alembic/versions/001_create_users_and_jobs.py:1versions1 fileSRC 1›core +6 app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycore +67 modulesSRC 6›Redis app/core/redis_client.py:3Redisvia redisSRC 1AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4SQL database alembic/env.py:4 alembic/versions/001_create_users_and_jobs.py:10 app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3SQL databasevia sqlalchemySRC 6OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1services +3 app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/utils/exceptions.py:1 app/services/__init__.pyservices +3×level 1level 2level 3external6 imports app/services/job_service.py:9 app/services/llm_service.py:11 app/services/llm_service.py:12 app/services/llm_service.py:13 app/services/mineru_service.py:28 app/services/ocr_service.py:9calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14calls2 imports app/workers/tasks.py:13 app/workers/tasks.py:142 imports app/workers/tasks.py:15 app/workers/tasks.py:16reads/writes app/workers/sync_db.py:4 app/workers/tasks.py:71 import scripts/init_mineru_models.py:120workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/tasks.py:27 app/workers/__init__.pyworkersCelery · 1 taskSRC 4›scripts scripts/init_mineru_models.py:1scripts1 fileSRC 1›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1AWS SDK app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 2SQL database app/services/job_service.py:5 app/workers/sync_db.py:4 app/workers/tasks.py:7SQL databasevia sqlalchemySRC 3
backend 1 cloud 2 database 1 module 3solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 4Explore this system
  1. 01routes10 boxes
  2. 02core5 boxes
  3. 03workers3 boxes
  4. 04/jobs, /register, /result…2 boxes

Data flow

1 ingress module, 7 domain modules, 4 external; 14 lateral imports not drawn

01 / Ingress app/api/routes/auth.py:1701 / Ingress02 / Handlers app/api/routes/auth.py:1702 / Handlers03 / Domain app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:1203 / Domain04 / Storage / External app/api/deps.py:4 app/core/redis_client.py:3 app/core/storage.py:5 app/services/llm_service.py:404 / Storage / Externalreads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writeshandles app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15handlesapi app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkersCelery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6/jobs, /register, /result… app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15/jobs, /register, /result…6 routesSRC 6
backend 2 cloud 2 database 2 endpoint 1 module 5 security 1solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one
Entry points
Data stores
  • … and 1 more
External APIs
Unresolved
  • python calls: 264 unresolved · e.g. config.get_main_option, config.set_main_option, connectable.connect
  • python imports: 24 unresolved · e.g. PIL, botocore.config, botocore.exceptions
  • python inherits: 1 unresolved · e.g. BaseHTTPMiddleware
  • python references: 41 unresolved · e.g. app.api.deps.CurrentUser, app.api.deps.DBSession, app.api.deps.Pagination

← Data flow

app/api component flow

2 components

__init__ app/api/__init__.py__init__SRC 1deps app/api/deps.py:1depsSRC 1
component 2every box and arrow cites a source line; click one

← Data flow

app/api/routes component flow

4 components

__init__ app/api/routes/__init__.py__init__SRC 1auth app/api/routes/auth.py:1authSRC 1›documents app/api/routes/documents.py:1documentsSRC 1›health app/api/routes/health.py:1healthSRC 1
component 4every box and arrow cites a source line; click one

← app/api/routes component flow

auth code

2 functions

login app/api/routes/auth.py:45loginSRC 1register app/api/routes/auth.py:23registerSRC 1
function 2every box and arrow cites a source line; click one

← app/api/routes component flow

documents code

3 functions

get_result app/api/routes/documents.py:83get_resultSRC 1list_jobs app/api/routes/documents.py:103list_jobsSRC 1upload_document app/api/routes/documents.py:25upload_documentSRC 1
function 3every box and arrow cites a source line; click one

← Data flow

app/core component flow

8 components

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1
component 8solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

database code

1 class and 1 function

Base app/core/database.py:25BaseSRC 1get_db app/core/database.py:29get_dbSRC 1
class 1 function 1every box and arrow cites a source line; click one

← app/core component flow

logging code

1 class and 2 functions

CorrelationIdMiddleware app/core/logging.py:47CorrelationIdMiddlewareSRC 1configure_logging app/core/logging.py:14configure_loggingSRC 1get_logger app/core/logging.py:43get_loggerSRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/core component flow

redis_client code

5 functions

calls app/core/redis_client.py:39callscalls app/core/redis_client.py:34callscheck_redis_connectivity app/core/redis_client.py:37check_redis_connectivitySRC 1close_redis app/core/redis_client.py:20close_redisSRC 1get_redis app/core/redis_client.py:33get_redisSRC 1get_redis_pool app/core/redis_client.py:27get_redis_poolSRC 1init_redis app/core/redis_client.py:10init_redisSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

security code

5 functions

calls app/core/security.py:55callscreate_access_token app/core/security.py:26create_access_tokenSRC 1decode_access_token app/core/security.py:35decode_access_tokenSRC 1get_current_user app/core/security.py:49get_current_userSRC 1hash_password app/core/security.py:18hash_passwordSRC 1verify_password app/core/security.py:22verify_passwordSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/models component flow

3 components

1 use app/models/__init__.py:11 use app/models/__init__.py:2__init__ app/models/__init__.py:1__init__SRC 1job app/models/job.py:1jobSRC 1user app/models/user.py:1userSRC 1
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/schemas component flow

4 components

1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1jobSRC 1›
component 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/schemas component flow

auth code

4 classes

TokenRequest app/schemas/auth.py:30TokenRequestSRC 1TokenResponse app/schemas/auth.py:35TokenResponseSRC 1UserCreate app/schemas/auth.py:7UserCreateSRC 1UserResponse app/schemas/auth.py:21UserResponseSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

documents code

4 classes

ESGExtraction app/schemas/documents.py:37ESGExtractionSRC 1InvoiceExtraction app/schemas/documents.py:13InvoiceExtractionSRC 1LegalExtraction app/schemas/documents.py:29LegalExtractionSRC 1LineItem app/schemas/documents.py:6LineItemSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

job code

4 classes

inherits app/schemas/job.py:33inheritsDocumentType app/schemas/job.py:16DocumentTypeSRC 1JobResponse app/schemas/job.py:22JobResponseSRC 1JobResultResponse app/schemas/job.py:33JobResultResponseSRC 1JobStatus app/schemas/job.py:9JobStatusSRC 1
class 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/services component flow

5 components

__init__ app/services/__init__.py__init__SRC 1job_service app/services/job_service.py:1job_serviceSRC 1›llm_service app/services/llm_service.py:1llm_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_serviceSRC 1›ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1
component 5every box and arrow cites a source line; click one

← app/services component flow

job_service code

4 functions

create_job app/services/job_service.py:12create_jobSRC 1get_job app/services/job_service.py:35get_jobSRC 1list_user_jobs app/services/job_service.py:64list_user_jobsSRC 1update_job_status app/services/job_service.py:45update_job_statusSRC 1
function 4every box and arrow cites a source line; click one

← app/services component flow

mineru_service code

1 class and 3 functions

MinerUService app/services/mineru_service.py:125MinerUServiceSRC 1_image_to_pdf app/services/mineru_service.py:59_image_to_pdfSRC 1_run_mineru_sync app/services/mineru_service.py:74_run_mineru_syncSRC 1_write_mineru_config app/services/mineru_service.py:41_write_mineru_configSRC 1
class 1 function 3every box and arrow cites a source line; click one

← Data flow

app/utils component flow

6 components

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›
component 6every box and arrow cites a source line; click one

← app/utils component flow

exceptions code

6 classes

inherits app/utils/exceptions.py:21inheritsinherits app/utils/exceptions.py:9inherits app/utils/exceptions.py:5inheritsinherits app/utils/exceptions.py:13inherits app/utils/exceptions.py:17inheritsDocumentExtractionError app/utils/exceptions.py:1DocumentExtractionErrorSRC 1JobNotFoundError app/utils/exceptions.py:21JobNotFoundErrorSRC 1LLMExtractionError app/utils/exceptions.py:9LLMExtractionErrorSRC 1OCRError app/utils/exceptions.py:5OCRErrorSRC 1SchemaValidationError app/utils/exceptions.py:13SchemaValidationErrorSRC 1StorageError app/utils/exceptions.py:17StorageErrorSRC 1
class 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

model_sync code

4 functions

calls app/utils/model_sync.py:96callscalls app/utils/model_sync.py:59callscalls app/utils/model_sync.py:38calls_make_s3_client app/utils/model_sync.py:22_make_s3_clientSRC 1ensure_models app/utils/model_sync.py:75ensure_modelsSRC 1pull_models_from_minio app/utils/model_sync.py:52pull_models_from_minioSRC 1push_models_to_minio app/utils/model_sync.py:33push_models_to_minioSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

prompts code

2 functions

build_user_prompt app/utils/prompts.py:66build_user_promptSRC 1get_system_prompt app/utils/prompts.py:70get_system_promptSRC 1
function 2every box and arrow cites a source line; click one

← app/utils component flow

text_processing code

5 functions

calls app/utils/text_processing.py:41calls_find_sentence_boundary app/utils/text_processing.py:59_find_sentence_boundarySRC 1chunk_text app/utils/text_processing.py:21chunk_textSRC 1clean_markdown app/utils/text_processing.py:69clean_markdownSRC 1clean_text app/utils/text_processing.py:6clean_textSRC 1sanitize_filename app/utils/text_processing.py:86sanitize_filenameSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

validators code

4 functions

calls app/utils/validators.py:50callsgenerate_storage_key app/utils/validators.py:47generate_storage_keySRC 1sanitize_filename app/utils/validators.py:35sanitize_filenameSRC 1validate_file_size app/utils/validators.py:25validate_file_sizeSRC 1validate_file_type app/utils/validators.py:14validate_file_typeSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/workers component flow

3 components

6 uses app/workers/tasks.py:17 app/workers/tasks.py:43 app/workers/tasks.py:65 app/workers/tasks.py:74 app/workers/tasks.py:86 app/workers/tasks.py:119__init__ app/workers/__init__.py__init__SRC 1sync_db app/workers/sync_db.py:1sync_dbSRC 1tasks app/workers/tasks.py:1tasksSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/workers component flow

tasks code

3 functions

calls app/workers/tasks.py:120callscalls app/workers/tasks.py:44 app/workers/tasks.py:66 app/workers/tasks.py:75 app/workers/tasks.py:87callscalls app/workers/tasks.py:99 app/workers/tasks.py:104 app/workers/tasks.py:109 app/workers/tasks.py:113calls_get_job app/workers/tasks.py:23_get_jobSRC 1_mark_failed app/workers/tasks.py:117_mark_failedSRC 1process_document app/workers/tasks.py:35process_documentSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes component flow

auth code

2 functions

__init__ app/api/routes/__init__.py__init__SRC 1documents app/api/routes/documents.py:1documentsSRC 1›health app/api/routes/health.py:1healthSRC 1auth app/api/routes/auth.py:1auth×login app/api/routes/auth.py:45loginSRC 1register app/api/routes/auth.py:23registerSRC 1
function 2every box and arrow cites a source line; click one

← app/api/routes component flow

documents code

3 functions

__init__ app/api/routes/__init__.py__init__SRC 1auth app/api/routes/auth.py:1authSRC 1›health app/api/routes/health.py:1healthSRC 1documents app/api/routes/documents.py:1documents×get_result app/api/routes/documents.py:83get_resultSRC 1list_jobs app/api/routes/documents.py:103list_jobsSRC 1upload_document app/api/routes/documents.py:25upload_documentSRC 1
function 3every box and arrow cites a source line; click one

← app/core component flow

database code

1 class and 1 function

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1database app/core/database.py:1database×Base app/core/database.py:25BaseSRC 1get_db app/core/database.py:29get_dbSRC 1
class 1 function 1every box and arrow cites a source line; click one

← app/core component flow

logging code

1 class and 2 functions

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1logging app/core/logging.py:1logging×CorrelationIdMiddleware app/core/logging.py:47CorrelationIdMiddlewareSRC 1configure_logging app/core/logging.py:14configure_loggingSRC 1get_logger app/core/logging.py:43get_loggerSRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/core component flow

redis_client code

5 functions

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›logging app/core/logging.py:1loggingSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1redis_client app/core/redis_client.py:1redis_client×calls app/core/redis_client.py:39callscalls app/core/redis_client.py:34callscheck_redis_connectivity app/core/redis_client.py:37check_redis_connectivitySRC 1close_redis app/core/redis_client.py:20close_redisSRC 1get_redis app/core/redis_client.py:33get_redisSRC 1get_redis_pool app/core/redis_client.py:27get_redis_poolSRC 1init_redis app/core/redis_client.py:10init_redisSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

security code

5 functions

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›storage app/core/storage.py:1storageSRC 1security app/core/security.py:1security×calls app/core/security.py:55callscreate_access_token app/core/security.py:26create_access_tokenSRC 1decode_access_token app/core/security.py:35decode_access_tokenSRC 1get_current_user app/core/security.py:49get_current_userSRC 1hash_password app/core/security.py:18hash_passwordSRC 1verify_password app/core/security.py:22verify_passwordSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/schemas component flow

auth code

4 classes

1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1jobSRC 1›auth app/schemas/auth.py:1auth×TokenRequest app/schemas/auth.py:30TokenRequestSRC 1TokenResponse app/schemas/auth.py:35TokenResponseSRC 1UserCreate app/schemas/auth.py:7UserCreateSRC 1UserResponse app/schemas/auth.py:21UserResponseSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

documents code

4 classes

1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›job app/schemas/job.py:1jobSRC 1›documents app/schemas/documents.py:1documents×ESGExtraction app/schemas/documents.py:37ESGExtractionSRC 1InvoiceExtraction app/schemas/documents.py:13InvoiceExtractionSRC 1LegalExtraction app/schemas/documents.py:29LegalExtractionSRC 1LineItem app/schemas/documents.py:6LineItemSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

job code

4 classes

1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1job×inherits app/schemas/job.py:33inheritsDocumentType app/schemas/job.py:16DocumentTypeSRC 1JobResponse app/schemas/job.py:22JobResponseSRC 1JobResultResponse app/schemas/job.py:33JobResultResponseSRC 1JobStatus app/schemas/job.py:9JobStatusSRC 1
class 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

job_service code

4 functions

__init__ app/services/__init__.py__init__SRC 1llm_service app/services/llm_service.py:1llm_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_serviceSRC 1›ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1job_service app/services/job_service.py:1job_service×create_job app/services/job_service.py:12create_jobSRC 1get_job app/services/job_service.py:35get_jobSRC 1list_user_jobs app/services/job_service.py:64list_user_jobsSRC 1update_job_status app/services/job_service.py:45update_job_statusSRC 1
function 4every box and arrow cites a source line; click one

← app/services component flow

mineru_service code

1 class and 3 functions

__init__ app/services/__init__.py__init__SRC 1job_service app/services/job_service.py:1job_serviceSRC 1›llm_service app/services/llm_service.py:1llm_serviceSRC 1ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_service×MinerUService app/services/mineru_service.py:125MinerUServiceSRC 1_image_to_pdf app/services/mineru_service.py:59_image_to_pdfSRC 1_run_mineru_sync app/services/mineru_service.py:74_run_mineru_syncSRC 1_write_mineru_config app/services/mineru_service.py:41_write_mineru_configSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/utils component flow

exceptions code

6 classes

__init__ app/utils/__init__.py__init__SRC 1model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›exceptions app/utils/exceptions.py:1exceptions×inherits app/utils/exceptions.py:21inheritsinherits app/utils/exceptions.py:9inherits app/utils/exceptions.py:5inheritsinherits app/utils/exceptions.py:13inherits app/utils/exceptions.py:17inheritsDocumentExtractionError app/utils/exceptions.py:1DocumentExtractionErrorSRC 1JobNotFoundError app/utils/exceptions.py:21JobNotFoundErrorSRC 1LLMExtractionError app/utils/exceptions.py:9LLMExtractionErrorSRC 1OCRError app/utils/exceptions.py:5OCRErrorSRC 1SchemaValidationError app/utils/exceptions.py:13SchemaValidationErrorSRC 1StorageError app/utils/exceptions.py:17StorageErrorSRC 1
class 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

model_sync code

4 functions

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›model_sync app/utils/model_sync.py:1model_sync×calls app/utils/model_sync.py:96callscalls app/utils/model_sync.py:59callscalls app/utils/model_sync.py:38calls_make_s3_client app/utils/model_sync.py:22_make_s3_clientSRC 1ensure_models app/utils/model_sync.py:75ensure_modelsSRC 1pull_models_from_minio app/utils/model_sync.py:52pull_models_from_minioSRC 1push_models_to_minio app/utils/model_sync.py:33push_models_to_minioSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

prompts code

2 functions

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›prompts app/utils/prompts.py:1prompts×build_user_prompt app/utils/prompts.py:66build_user_promptSRC 1get_system_prompt app/utils/prompts.py:70get_system_promptSRC 1
function 2every box and arrow cites a source line; click one

← app/utils component flow

text_processing code

5 functions

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›validators app/utils/validators.py:1validatorsSRC 1›text_processing app/utils/text_processing.py:1text_processing×calls app/utils/text_processing.py:41calls_find_sentence_boundary app/utils/text_processing.py:59_find_sentence_boundarySRC 1chunk_text app/utils/text_processing.py:21chunk_textSRC 1clean_markdown app/utils/text_processing.py:69clean_markdownSRC 1clean_text app/utils/text_processing.py:6clean_textSRC 1sanitize_filename app/utils/text_processing.py:86sanitize_filenameSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

validators code

4 functions

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validators×calls app/utils/validators.py:50callsgenerate_storage_key app/utils/validators.py:47generate_storage_keySRC 1sanitize_filename app/utils/validators.py:35sanitize_filenameSRC 1validate_file_size app/utils/validators.py:25validate_file_sizeSRC 1validate_file_type app/utils/validators.py:14validate_file_typeSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/workers component flow

tasks code

3 functions

6 uses app/workers/tasks.py:17 app/workers/tasks.py:43 app/workers/tasks.py:65 app/workers/tasks.py:74 app/workers/tasks.py:86 app/workers/tasks.py:119__init__ app/workers/__init__.py__init__SRC 1sync_db app/workers/sync_db.py:1sync_dbSRC 1tasks app/workers/tasks.py:1tasks×calls app/workers/tasks.py:120callscalls app/workers/tasks.py:44 app/workers/tasks.py:66 app/workers/tasks.py:75 app/workers/tasks.py:87callscalls app/workers/tasks.py:99 app/workers/tasks.py:104 app/workers/tasks.py:109 app/workers/tasks.py:113calls_get_job app/workers/tasks.py:23_get_jobSRC 1_mark_failed app/workers/tasks.py:117_mark_failedSRC 1process_document app/workers/tasks.py:35process_documentSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/api component flow

2 components

01 / Ingress app/api/routes/auth.py:1701 / Ingress02 / Handlers app/api/routes/auth.py:1702 / Handlers03 / Domain app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:1203 / Domain04 / Storage / External app/api/deps.py:4 app/core/redis_client.py:3 app/core/storage.py:5 app/services/llm_service.py:404 / Storage / Externalreads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writeshandles app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15handlesroutes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkersCelery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6/jobs, /register, /result… app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15/jobs, /register, /result…6 routesSRC 6api app/api/deps.py:1 app/api/__init__.pyapi×__init__ app/api/__init__.py__init__SRC 1deps app/api/deps.py:1depsSRC 1
component 2every box and arrow cites a source line; click one

← Data flow

app/api/routes component flow

4 components

01 / Ingress app/api/routes/auth.py:1701 / Ingress02 / Handlers app/api/routes/auth.py:1702 / Handlers03 / Domain app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:1203 / Domain04 / Storage / External app/api/deps.py:4 app/core/redis_client.py:3 app/core/storage.py:5 app/services/llm_service.py:404 / Storage / Externalreads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writeshandles app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15handlesapi app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkersCelery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6/jobs, /register, /result… app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15/jobs, /register, /result…6 routesSRC 6routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutes×__init__ app/api/routes/__init__.py__init__SRC 1auth app/api/routes/auth.py:1authSRC 1›documents app/api/routes/documents.py:1documentsSRC 1›health app/api/routes/health.py:1healthSRC 1
component 4every box and arrow cites a source line; click one

← Data flow

app/core component flow

8 components

01 / Ingress app/api/routes/auth.py:1701 / Ingress02 / Handlers app/api/routes/auth.py:1702 / Handlers03 / Domain app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:1203 / Domain04 / Storage / External app/api/deps.py:4 app/core/redis_client.py:3 app/core/storage.py:5 app/services/llm_service.py:404 / Storage / Externalreads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5reads/writescalls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writeshandles app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15handlesapi app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 4›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkersCelery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6/jobs, /register, /result… app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15/jobs, /register, /result…6 routesSRC 6core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycore×1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1
component 8solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/models component flow

3 components

01 / Ingress app/api/routes/auth.py:1701 / Ingress02 / Handlers app/api/routes/auth.py:1702 / Handlers03 / Domain app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:1203 / Domain04 / Storage / External app/api/deps.py:4 app/core/redis_client.py:3 app/core/storage.py:5 app/services/llm_service.py:404 / Storage / Externalreads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writesreads/writes app/models/job.py:4 app/models/user.py:4calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writeshandles app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15handlesapi app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkersCelery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6/jobs, /register, /result… app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15/jobs, /register, /result…6 routesSRC 6models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models×1 use app/models/__init__.py:11 use app/models/__init__.py:2__init__ app/models/__init__.py:1__init__SRC 1job app/models/job.py:1jobSRC 1user app/models/user.py:1userSRC 1
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/schemas component flow

4 components

01 / Ingress app/api/routes/auth.py:1701 / Ingress02 / Handlers app/api/routes/auth.py:1702 / Handlers03 / Domain app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:1203 / Domain04 / Storage / External app/api/deps.py:4 app/core/redis_client.py:3 app/core/storage.py:5 app/services/llm_service.py:404 / Storage / Externalreads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writesreads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writeshandles app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15handlesapi app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkersCelery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6/jobs, /register, /result… app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15/jobs, /register, /result…6 routesSRC 6schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas×1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1jobSRC 1›
component 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← Data flow

app/services component flow

5 components

01 / Ingress app/api/routes/auth.py:1701 / Ingress02 / Handlers app/api/routes/auth.py:1702 / Handlers03 / Domain app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:1203 / Domain04 / Storage / External app/api/deps.py:4 app/core/redis_client.py:3 app/core/storage.py:5 app/services/llm_service.py:404 / Storage / Externalreads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writesreads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4reads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writeshandles app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15handlesapi app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkersCelery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6/jobs, /register, /result… app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15/jobs, /register, /result…6 routesSRC 6services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices×__init__ app/services/__init__.py__init__SRC 1job_service app/services/job_service.py:1job_serviceSRC 1›llm_service app/services/llm_service.py:1llm_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_serviceSRC 1›ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1
component 5every box and arrow cites a source line; click one

← Data flow

app/utils component flow

6 components

01 / Ingress app/api/routes/auth.py:1701 / Ingress02 / Handlers app/api/routes/auth.py:1702 / Handlers03 / Domain app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:1203 / Domain04 / Storage / External app/api/deps.py:4 app/core/redis_client.py:3 app/core/storage.py:5 app/services/llm_service.py:404 / Storage / Externalreads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writesreads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writeshandles app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15handlesapi app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkersCelery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6/jobs, /register, /result… app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15/jobs, /register, /result…6 routesSRC 6utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils×__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›
component 6every box and arrow cites a source line; click one

← Data flow

app/workers component flow

3 components

01 / Ingress app/api/routes/auth.py:1701 / Ingress02 / Handlers app/api/routes/auth.py:1702 / Handlers03 / Domain app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:1203 / Domain04 / Storage / External app/api/deps.py:4 app/core/redis_client.py:3 app/core/storage.py:5 app/services/llm_service.py:404 / Storage / Externalreads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writesreads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writeshandles app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15handlesapi app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6/jobs, /register, /result… app/api/routes/auth.py:17 app/api/routes/auth.py:40 app/api/routes/documents.py:19 app/api/routes/documents.py:78 app/api/routes/documents.py:98 app/api/routes/health.py:15/jobs, /register, /result…6 routesSRC 6workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkers×6 uses app/workers/tasks.py:17 app/workers/tasks.py:43 app/workers/tasks.py:65 app/workers/tasks.py:74 app/workers/tasks.py:86 app/workers/tasks.py:119__init__ app/workers/__init__.py__init__SRC 1sync_db app/workers/sync_db.py:1sync_dbSRC 1tasks app/workers/tasks.py:1tasksSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 4Explore this system
  1. 01api8 boxes
  2. 02worker7 boxes
  3. 03minio-init3 boxes
  4. 04minio-models-init3 boxes

Deploy topology

2 backends, 3 databases, 2 services, 2 clouds

depends on docker-compose.yml:27depends ondepends on docker-compose.yml:29depends onreads/writes alembic/env.py:4 alembic/versions/001_create_users_and_jobs.py:10 app/api/deps.py:4 app/api/routes/auth.py:5 docker/api/Dockerfile:22 docker/api/Dockerfile:23reads/writes app/core/redis_client.py:3 docker/api/Dockerfile:22calls app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14 docker/api/Dockerfile:22calls app/services/llm_service.py:4 docker/api/Dockerfile:22callsdepends on docker-compose.yml:114depends ondepends on docker-compose.yml:127depends ondepends on docker-compose.yml:52depends ondepends on docker-compose.yml:56depends onreads/writes alembic/env.py:4 alembic/versions/001_create_users_and_jobs.py:10 app/api/deps.py:4 app/api/routes/auth.py:5 docker/worker/Dockerfile:22 docker/worker/Dockerfile:23reads/writes app/core/redis_client.py:3 docker/worker/Dockerfile:22reads/writescalls app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14 docker/worker/Dockerfile:22callscalls app/services/llm_service.py:4 docker/worker/Dockerfile:22api docker-compose.yml:15apiships alembic/, app/ · 6 routes, workersSRC 1minio docker-compose.yml:97miniominio/minio:latestSRC 1minio-init docker-compose.yml:111minio-initminio/mc:latestSRC 1minio-models-init docker-compose.yml:124minio-models-initminio/mc:latestSRC 1postgres docker-compose.yml:69postgresPostgreSQL · postgres:16-alpineSRC 1redis docker-compose.yml:87redisRedis · redis:7-alpineSRC 1worker docker-compose.yml:40workerships alembic/, app/ · 6 routes, workersSRC 1AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1
backend 2 cloud 2 database 3 service 2dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one
Entry points
Data stores
  • … and 1 more
External APIs
Unresolved
  • python calls: 264 unresolved · e.g. config.get_main_option, config.set_main_option, connectable.connect
  • python imports: 24 unresolved · e.g. PIL, botocore.config, botocore.exceptions
  • python inherits: 1 unresolved · e.g. BaseHTTPMiddleware
  • python references: 41 unresolved · e.g. app.api.deps.CurrentUser, app.api.deps.DBSession, app.api.deps.Pagination
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 3Explore this system
  1. 01core10 boxes
  2. 02routes9 boxes
  3. 03workers6 boxes

Module dependencies

11 modules, 27 dependencies

2 imports alembic/env.py:11 alembic/env.py:121 import alembic/env.py:131 import app/main.py:143 imports app/main.py:15 app/main.py:16 app/main.py:172 imports app/api/deps.py:6 app/api/deps.py:71 import app/api/deps.py:82 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:691 import app/core/security.py:531 import app/core/storage.py:102 imports app/models/job.py:8 app/models/user.py:84 imports app/services/llm_service.py:8 app/services/llm_service.py:9 app/services/mineru_service.py:27 app/services/ocr_service.py:81 import app/services/job_service.py:81 import app/services/llm_service.py:106 imports app/services/job_service.py:9 app/services/llm_service.py:11 app/services/llm_service.py:12 app/services/llm_service.py:13 app/services/mineru_service.py:28 app/services/ocr_service.py:92 imports app/utils/model_sync.py:17 app/utils/validators.py:94 imports app/workers/sync_db.py:7 app/workers/tasks.py:9 app/workers/tasks.py:10 app/workers/tasks.py:111 import app/workers/tasks.py:122 imports app/workers/tasks.py:13 app/workers/tasks.py:142 imports app/workers/tasks.py:15 app/workers/tasks.py:161 import scripts/init_mineru_models.py:1191 import scripts/init_mineru_models.py:120models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models3 filesSRC 3utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils6 filesSRC 6schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas4 filesSRC 4core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycoreFastAPI security · JWTSRC 6alembic alembic/env.py:1alembic1 fileSRC 1api app/api/deps.py:1 app/api/__init__.pyapi2 filesSRC 2services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices5 filesSRC 5scripts scripts/init_mineru_models.py:1scripts1 fileSRC 1workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/tasks.py:27 app/workers/__init__.pyworkersCelery · 1 taskSRC 4routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/health.py:15 app/api/routes/__init__.pyroutesFastAPI · 6 routes · FastAPI securitySRC 5app app/__init__.py:1 app/main.py:1app2 filesSRC 2
backend 2 module 8 security 1solid arrows are imports (count on hover)every box and arrow cites a source line; click one
Entry points
Data stores
  • … and 1 more
External APIs
Unresolved
  • python calls: 264 unresolved · e.g. config.get_main_option, config.set_main_option, connectable.connect
  • python imports: 24 unresolved · e.g. PIL, botocore.config, botocore.exceptions
  • python inherits: 1 unresolved · e.g. BaseHTTPMiddleware
  • python references: 41 unresolved · e.g. app.api.deps.CurrentUser, app.api.deps.DBSession, app.api.deps.Pagination
click a box for its passport; double-click it, or its ›, to open it in place (keyboard: Enter, Shift+Enter); shift-click two boxes for a path; a legend swatch mutes a kind
Guided views 0 / 3Explore this system
  1. 01routes9 boxes
  2. 02core5 boxes
  3. 03workers3 boxes

app/api/routes request flow

8 modules within 2 import hops; reachability, not call order; 14 lateral imports not drawn

handler app/api/routes/auth.py:17handlerhop 1 app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:12hop 1reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writesapi app/api/deps.py:1 app/api/__init__.pyapihop 1 · 2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyrouteshandler · FastAPI · 6 routes · FastAPI se…SRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycorehop 1 · FastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1modelshop 1 · 3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemashop 1 · 4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyserviceshop 1 · 5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutilshop 1 · 6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkershop 1 · Celery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6
backend 2 cloud 2 database 2 module 5 security 1solid arrows are imports (count on hover); dashed arrows carry their verb (some only in the passport)every box and arrow cites a source line; click one
Entry points
Data stores
  • … and 1 more
External APIs
Unresolved
  • python calls: 264 unresolved · e.g. config.get_main_option, config.set_main_option, connectable.connect
  • python imports: 24 unresolved · e.g. PIL, botocore.config, botocore.exceptions
  • python inherits: 1 unresolved · e.g. BaseHTTPMiddleware
  • python references: 41 unresolved · e.g. app.api.deps.CurrentUser, app.api.deps.DBSession, app.api.deps.Pagination

← app/api/routes request flow

app/api component flow

2 components

__init__ app/api/__init__.py__init__SRC 1deps app/api/deps.py:1depsSRC 1
component 2every box and arrow cites a source line; click one

← app/api/routes request flow

app/api/routes component flow

4 components

__init__ app/api/routes/__init__.py__init__SRC 1auth app/api/routes/auth.py:1authSRC 1›documents app/api/routes/documents.py:1documentsSRC 1›health app/api/routes/health.py:1healthSRC 1
component 4every box and arrow cites a source line; click one

← app/api/routes component flow

auth code

2 functions

login app/api/routes/auth.py:45loginSRC 1register app/api/routes/auth.py:23registerSRC 1
function 2every box and arrow cites a source line; click one

← app/api/routes component flow

documents code

3 functions

get_result app/api/routes/documents.py:83get_resultSRC 1list_jobs app/api/routes/documents.py:103list_jobsSRC 1upload_document app/api/routes/documents.py:25upload_documentSRC 1
function 3every box and arrow cites a source line; click one

← app/api/routes request flow

app/core component flow

8 components

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1
component 8solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

database code

1 class and 1 function

Base app/core/database.py:25BaseSRC 1get_db app/core/database.py:29get_dbSRC 1
class 1 function 1every box and arrow cites a source line; click one

← app/core component flow

logging code

1 class and 2 functions

CorrelationIdMiddleware app/core/logging.py:47CorrelationIdMiddlewareSRC 1configure_logging app/core/logging.py:14configure_loggingSRC 1get_logger app/core/logging.py:43get_loggerSRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/core component flow

redis_client code

5 functions

calls app/core/redis_client.py:39callscalls app/core/redis_client.py:34callscheck_redis_connectivity app/core/redis_client.py:37check_redis_connectivitySRC 1close_redis app/core/redis_client.py:20close_redisSRC 1get_redis app/core/redis_client.py:33get_redisSRC 1get_redis_pool app/core/redis_client.py:27get_redis_poolSRC 1init_redis app/core/redis_client.py:10init_redisSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

security code

5 functions

calls app/core/security.py:55callscreate_access_token app/core/security.py:26create_access_tokenSRC 1decode_access_token app/core/security.py:35decode_access_tokenSRC 1get_current_user app/core/security.py:49get_current_userSRC 1hash_password app/core/security.py:18hash_passwordSRC 1verify_password app/core/security.py:22verify_passwordSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes request flow

app/models component flow

3 components

1 use app/models/__init__.py:11 use app/models/__init__.py:2__init__ app/models/__init__.py:1__init__SRC 1job app/models/job.py:1jobSRC 1user app/models/user.py:1userSRC 1
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes request flow

app/schemas component flow

4 components

1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1jobSRC 1›
component 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/schemas component flow

auth code

4 classes

TokenRequest app/schemas/auth.py:30TokenRequestSRC 1TokenResponse app/schemas/auth.py:35TokenResponseSRC 1UserCreate app/schemas/auth.py:7UserCreateSRC 1UserResponse app/schemas/auth.py:21UserResponseSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

documents code

4 classes

ESGExtraction app/schemas/documents.py:37ESGExtractionSRC 1InvoiceExtraction app/schemas/documents.py:13InvoiceExtractionSRC 1LegalExtraction app/schemas/documents.py:29LegalExtractionSRC 1LineItem app/schemas/documents.py:6LineItemSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

job code

4 classes

inherits app/schemas/job.py:33inheritsDocumentType app/schemas/job.py:16DocumentTypeSRC 1JobResponse app/schemas/job.py:22JobResponseSRC 1JobResultResponse app/schemas/job.py:33JobResultResponseSRC 1JobStatus app/schemas/job.py:9JobStatusSRC 1
class 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes request flow

app/services component flow

5 components

__init__ app/services/__init__.py__init__SRC 1job_service app/services/job_service.py:1job_serviceSRC 1›llm_service app/services/llm_service.py:1llm_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_serviceSRC 1›ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1
component 5every box and arrow cites a source line; click one

← app/services component flow

job_service code

4 functions

create_job app/services/job_service.py:12create_jobSRC 1get_job app/services/job_service.py:35get_jobSRC 1list_user_jobs app/services/job_service.py:64list_user_jobsSRC 1update_job_status app/services/job_service.py:45update_job_statusSRC 1
function 4every box and arrow cites a source line; click one

← app/services component flow

mineru_service code

1 class and 3 functions

MinerUService app/services/mineru_service.py:125MinerUServiceSRC 1_image_to_pdf app/services/mineru_service.py:59_image_to_pdfSRC 1_run_mineru_sync app/services/mineru_service.py:74_run_mineru_syncSRC 1_write_mineru_config app/services/mineru_service.py:41_write_mineru_configSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/api/routes request flow

app/utils component flow

6 components

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›
component 6every box and arrow cites a source line; click one

← app/utils component flow

exceptions code

6 classes

inherits app/utils/exceptions.py:21inheritsinherits app/utils/exceptions.py:9inherits app/utils/exceptions.py:5inheritsinherits app/utils/exceptions.py:13inherits app/utils/exceptions.py:17inheritsDocumentExtractionError app/utils/exceptions.py:1DocumentExtractionErrorSRC 1JobNotFoundError app/utils/exceptions.py:21JobNotFoundErrorSRC 1LLMExtractionError app/utils/exceptions.py:9LLMExtractionErrorSRC 1OCRError app/utils/exceptions.py:5OCRErrorSRC 1SchemaValidationError app/utils/exceptions.py:13SchemaValidationErrorSRC 1StorageError app/utils/exceptions.py:17StorageErrorSRC 1
class 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

model_sync code

4 functions

calls app/utils/model_sync.py:96callscalls app/utils/model_sync.py:59callscalls app/utils/model_sync.py:38calls_make_s3_client app/utils/model_sync.py:22_make_s3_clientSRC 1ensure_models app/utils/model_sync.py:75ensure_modelsSRC 1pull_models_from_minio app/utils/model_sync.py:52pull_models_from_minioSRC 1push_models_to_minio app/utils/model_sync.py:33push_models_to_minioSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

prompts code

2 functions

build_user_prompt app/utils/prompts.py:66build_user_promptSRC 1get_system_prompt app/utils/prompts.py:70get_system_promptSRC 1
function 2every box and arrow cites a source line; click one

← app/utils component flow

text_processing code

5 functions

calls app/utils/text_processing.py:41calls_find_sentence_boundary app/utils/text_processing.py:59_find_sentence_boundarySRC 1chunk_text app/utils/text_processing.py:21chunk_textSRC 1clean_markdown app/utils/text_processing.py:69clean_markdownSRC 1clean_text app/utils/text_processing.py:6clean_textSRC 1sanitize_filename app/utils/text_processing.py:86sanitize_filenameSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

validators code

4 functions

calls app/utils/validators.py:50callsgenerate_storage_key app/utils/validators.py:47generate_storage_keySRC 1sanitize_filename app/utils/validators.py:35sanitize_filenameSRC 1validate_file_size app/utils/validators.py:25validate_file_sizeSRC 1validate_file_type app/utils/validators.py:14validate_file_typeSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes request flow

app/workers component flow

3 components

6 uses app/workers/tasks.py:17 app/workers/tasks.py:43 app/workers/tasks.py:65 app/workers/tasks.py:74 app/workers/tasks.py:86 app/workers/tasks.py:119__init__ app/workers/__init__.py__init__SRC 1sync_db app/workers/sync_db.py:1sync_dbSRC 1tasks app/workers/tasks.py:1tasksSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/workers component flow

tasks code

3 functions

calls app/workers/tasks.py:120callscalls app/workers/tasks.py:44 app/workers/tasks.py:66 app/workers/tasks.py:75 app/workers/tasks.py:87callscalls app/workers/tasks.py:99 app/workers/tasks.py:104 app/workers/tasks.py:109 app/workers/tasks.py:113calls_get_job app/workers/tasks.py:23_get_jobSRC 1_mark_failed app/workers/tasks.py:117_mark_failedSRC 1process_document app/workers/tasks.py:35process_documentSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes component flow

auth code

2 functions

__init__ app/api/routes/__init__.py__init__SRC 1documents app/api/routes/documents.py:1documentsSRC 1›health app/api/routes/health.py:1healthSRC 1auth app/api/routes/auth.py:1auth×login app/api/routes/auth.py:45loginSRC 1register app/api/routes/auth.py:23registerSRC 1
function 2every box and arrow cites a source line; click one

← app/api/routes component flow

documents code

3 functions

__init__ app/api/routes/__init__.py__init__SRC 1auth app/api/routes/auth.py:1authSRC 1›health app/api/routes/health.py:1healthSRC 1documents app/api/routes/documents.py:1documents×get_result app/api/routes/documents.py:83get_resultSRC 1list_jobs app/api/routes/documents.py:103list_jobsSRC 1upload_document app/api/routes/documents.py:25upload_documentSRC 1
function 3every box and arrow cites a source line; click one

← app/core component flow

database code

1 class and 1 function

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1database app/core/database.py:1database×Base app/core/database.py:25BaseSRC 1get_db app/core/database.py:29get_dbSRC 1
class 1 function 1every box and arrow cites a source line; click one

← app/core component flow

logging code

1 class and 2 functions

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1logging app/core/logging.py:1logging×CorrelationIdMiddleware app/core/logging.py:47CorrelationIdMiddlewareSRC 1configure_logging app/core/logging.py:14configure_loggingSRC 1get_logger app/core/logging.py:43get_loggerSRC 1
class 1 function 2every box and arrow cites a source line; click one

← app/core component flow

redis_client code

5 functions

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›logging app/core/logging.py:1loggingSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1redis_client app/core/redis_client.py:1redis_client×calls app/core/redis_client.py:39callscalls app/core/redis_client.py:34callscheck_redis_connectivity app/core/redis_client.py:37check_redis_connectivitySRC 1close_redis app/core/redis_client.py:20close_redisSRC 1get_redis app/core/redis_client.py:33get_redisSRC 1get_redis_pool app/core/redis_client.py:27get_redis_poolSRC 1init_redis app/core/redis_client.py:10init_redisSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/core component flow

security code

5 functions

1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›storage app/core/storage.py:1storageSRC 1security app/core/security.py:1security×calls app/core/security.py:55callscreate_access_token app/core/security.py:26create_access_tokenSRC 1decode_access_token app/core/security.py:35decode_access_tokenSRC 1get_current_user app/core/security.py:49get_current_userSRC 1hash_password app/core/security.py:18hash_passwordSRC 1verify_password app/core/security.py:22verify_passwordSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/schemas component flow

auth code

4 classes

1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1jobSRC 1›auth app/schemas/auth.py:1auth×TokenRequest app/schemas/auth.py:30TokenRequestSRC 1TokenResponse app/schemas/auth.py:35TokenResponseSRC 1UserCreate app/schemas/auth.py:7UserCreateSRC 1UserResponse app/schemas/auth.py:21UserResponseSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

documents code

4 classes

1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›job app/schemas/job.py:1jobSRC 1›documents app/schemas/documents.py:1documents×ESGExtraction app/schemas/documents.py:37ESGExtractionSRC 1InvoiceExtraction app/schemas/documents.py:13InvoiceExtractionSRC 1LegalExtraction app/schemas/documents.py:29LegalExtractionSRC 1LineItem app/schemas/documents.py:6LineItemSRC 1
class 4every box and arrow cites a source line; click one

← app/schemas component flow

job code

4 classes

1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1job×inherits app/schemas/job.py:33inheritsDocumentType app/schemas/job.py:16DocumentTypeSRC 1JobResponse app/schemas/job.py:22JobResponseSRC 1JobResultResponse app/schemas/job.py:33JobResultResponseSRC 1JobStatus app/schemas/job.py:9JobStatusSRC 1
class 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/services component flow

job_service code

4 functions

__init__ app/services/__init__.py__init__SRC 1llm_service app/services/llm_service.py:1llm_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_serviceSRC 1›ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1job_service app/services/job_service.py:1job_service×create_job app/services/job_service.py:12create_jobSRC 1get_job app/services/job_service.py:35get_jobSRC 1list_user_jobs app/services/job_service.py:64list_user_jobsSRC 1update_job_status app/services/job_service.py:45update_job_statusSRC 1
function 4every box and arrow cites a source line; click one

← app/services component flow

mineru_service code

1 class and 3 functions

__init__ app/services/__init__.py__init__SRC 1job_service app/services/job_service.py:1job_serviceSRC 1›llm_service app/services/llm_service.py:1llm_serviceSRC 1ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_service×MinerUService app/services/mineru_service.py:125MinerUServiceSRC 1_image_to_pdf app/services/mineru_service.py:59_image_to_pdfSRC 1_run_mineru_sync app/services/mineru_service.py:74_run_mineru_syncSRC 1_write_mineru_config app/services/mineru_service.py:41_write_mineru_configSRC 1
class 1 function 3every box and arrow cites a source line; click one

← app/utils component flow

exceptions code

6 classes

__init__ app/utils/__init__.py__init__SRC 1model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›exceptions app/utils/exceptions.py:1exceptions×inherits app/utils/exceptions.py:21inheritsinherits app/utils/exceptions.py:9inherits app/utils/exceptions.py:5inheritsinherits app/utils/exceptions.py:13inherits app/utils/exceptions.py:17inheritsDocumentExtractionError app/utils/exceptions.py:1DocumentExtractionErrorSRC 1JobNotFoundError app/utils/exceptions.py:21JobNotFoundErrorSRC 1LLMExtractionError app/utils/exceptions.py:9LLMExtractionErrorSRC 1OCRError app/utils/exceptions.py:5OCRErrorSRC 1SchemaValidationError app/utils/exceptions.py:13SchemaValidationErrorSRC 1StorageError app/utils/exceptions.py:17StorageErrorSRC 1
class 6solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

model_sync code

4 functions

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›model_sync app/utils/model_sync.py:1model_sync×calls app/utils/model_sync.py:96callscalls app/utils/model_sync.py:59callscalls app/utils/model_sync.py:38calls_make_s3_client app/utils/model_sync.py:22_make_s3_clientSRC 1ensure_models app/utils/model_sync.py:75ensure_modelsSRC 1pull_models_from_minio app/utils/model_sync.py:52pull_models_from_minioSRC 1push_models_to_minio app/utils/model_sync.py:33push_models_to_minioSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

prompts code

2 functions

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›prompts app/utils/prompts.py:1prompts×build_user_prompt app/utils/prompts.py:66build_user_promptSRC 1get_system_prompt app/utils/prompts.py:70get_system_promptSRC 1
function 2every box and arrow cites a source line; click one

← app/utils component flow

text_processing code

5 functions

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›validators app/utils/validators.py:1validatorsSRC 1›text_processing app/utils/text_processing.py:1text_processing×calls app/utils/text_processing.py:41calls_find_sentence_boundary app/utils/text_processing.py:59_find_sentence_boundarySRC 1chunk_text app/utils/text_processing.py:21chunk_textSRC 1clean_markdown app/utils/text_processing.py:69clean_markdownSRC 1clean_text app/utils/text_processing.py:6clean_textSRC 1sanitize_filename app/utils/text_processing.py:86sanitize_filenameSRC 1
function 5solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/utils component flow

validators code

4 functions

__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validators×calls app/utils/validators.py:50callsgenerate_storage_key app/utils/validators.py:47generate_storage_keySRC 1sanitize_filename app/utils/validators.py:35sanitize_filenameSRC 1validate_file_size app/utils/validators.py:25validate_file_sizeSRC 1validate_file_type app/utils/validators.py:14validate_file_typeSRC 1
function 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/workers component flow

tasks code

3 functions

6 uses app/workers/tasks.py:17 app/workers/tasks.py:43 app/workers/tasks.py:65 app/workers/tasks.py:74 app/workers/tasks.py:86 app/workers/tasks.py:119__init__ app/workers/__init__.py__init__SRC 1sync_db app/workers/sync_db.py:1sync_dbSRC 1tasks app/workers/tasks.py:1tasks×calls app/workers/tasks.py:120callscalls app/workers/tasks.py:44 app/workers/tasks.py:66 app/workers/tasks.py:75 app/workers/tasks.py:87callscalls app/workers/tasks.py:99 app/workers/tasks.py:104 app/workers/tasks.py:109 app/workers/tasks.py:113calls_get_job app/workers/tasks.py:23_get_jobSRC 1_mark_failed app/workers/tasks.py:117_mark_failedSRC 1process_document app/workers/tasks.py:35process_documentSRC 1
function 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes request flow

app/api component flow

2 components

handler app/api/routes/auth.py:17handlerhop 1 app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:12hop 1reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writesroutes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyrouteshandler · FastAPI · 6 routes · FastAPI se…SRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycorehop 1 · FastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1modelshop 1 · 3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemashop 1 · 4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyserviceshop 1 · 5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutilshop 1 · 6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkershop 1 · Celery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6api app/api/deps.py:1 app/api/__init__.pyapi×__init__ app/api/__init__.py__init__SRC 1deps app/api/deps.py:1depsSRC 1
component 2every box and arrow cites a source line; click one

← app/api/routes request flow

app/api/routes component flow

4 components

handler app/api/routes/auth.py:17handlerhop 1 app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:12hop 1reads/writes app/api/deps.py:42 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writesapi app/api/deps.py:1 app/api/__init__.pyapihop 1 · 2 filesSRC 2›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycorehop 1 · FastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1modelshop 1 · 3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemashop 1 · 4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyserviceshop 1 · 5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutilshop 1 · 6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkershop 1 · Celery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyroutes×__init__ app/api/routes/__init__.py__init__SRC 1auth app/api/routes/auth.py:1authSRC 1›documents app/api/routes/documents.py:1documentsSRC 1›health app/api/routes/health.py:1healthSRC 1
component 4every box and arrow cites a source line; click one

← app/api/routes request flow

app/core component flow

8 components

handler app/api/routes/auth.py:17handlerhop 1 app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:12hop 1reads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5reads/writescalls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writesapi app/api/deps.py:1 app/api/__init__.pyapihop 1 · 2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyrouteshandler · FastAPI · 6 routes · FastAPI se…SRC 4›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1modelshop 1 · 3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemashop 1 · 4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyserviceshop 1 · 5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutilshop 1 · 6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkershop 1 · Celery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycore×1 use app/core/celery_app.py:31 use app/core/database.py:61 use app/core/logging.py:111 use app/core/redis_client.py:51 use app/core/security.py:111 use app/core/security.py:121 use app/core/storage.py:9__init__ app/core/__init__.py__init__SRC 1celery_app app/core/celery_app.py:1celery_appSRC 1config app/core/config.py:1configSRC 1database app/core/database.py:1databaseSRC 1›logging app/core/logging.py:1loggingSRC 1›redis_client app/core/redis_client.py:1redis_clientSRC 1›security app/core/security.py:1securitySRC 1›storage app/core/storage.py:1storageSRC 1
component 8solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes request flow

app/models component flow

3 components

handler app/api/routes/auth.py:17handlerhop 1 app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:12hop 1reads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writesreads/writes app/models/job.py:4 app/models/user.py:4calls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writesapi app/api/deps.py:1 app/api/__init__.pyapihop 1 · 2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyrouteshandler · FastAPI · 6 routes · FastAPI se…SRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycorehop 1 · FastAPI security · JWTSRC 6›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemashop 1 · 4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyserviceshop 1 · 5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutilshop 1 · 6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkershop 1 · Celery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1models×1 use app/models/__init__.py:11 use app/models/__init__.py:2__init__ app/models/__init__.py:1__init__SRC 1job app/models/job.py:1jobSRC 1user app/models/user.py:1userSRC 1
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes request flow

app/schemas component flow

4 components

handler app/api/routes/auth.py:17handlerhop 1 app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:12hop 1reads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writesreads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writesapi app/api/deps.py:1 app/api/__init__.pyapihop 1 · 2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyrouteshandler · FastAPI · 6 routes · FastAPI se…SRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycorehop 1 · FastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1modelshop 1 · 3 filesSRC 3›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyserviceshop 1 · 5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutilshop 1 · 6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkershop 1 · Celery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemas×1 use app/schemas/__init__.py:11 use app/schemas/__init__.py:21 use app/schemas/__init__.py:3__init__ app/schemas/__init__.py:1__init__SRC 1auth app/schemas/auth.py:1authSRC 1›documents app/schemas/documents.py:1documentsSRC 1›job app/schemas/job.py:1jobSRC 1›
component 4solid arrows are imports (count on hover)every box and arrow cites a source line; click one

← app/api/routes request flow

app/services component flow

5 components

handler app/api/routes/auth.py:17handlerhop 1 app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:12hop 1reads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4reads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writesapi app/api/deps.py:1 app/api/__init__.pyapihop 1 · 2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyrouteshandler · FastAPI · 6 routes · FastAPI se…SRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycorehop 1 · FastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1modelshop 1 · 3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemashop 1 · 4 filesSRC 4›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutilshop 1 · 6 filesSRC 6›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkershop 1 · Celery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyservices×__init__ app/services/__init__.py__init__SRC 1job_service app/services/job_service.py:1job_serviceSRC 1›llm_service app/services/llm_service.py:1llm_serviceSRC 1mineru_service app/services/mineru_service.py:1mineru_serviceSRC 1›ocr_service app/services/ocr_service.py:1ocr_serviceSRC 1
component 5every box and arrow cites a source line; click one

← app/api/routes request flow

app/utils component flow

6 components

handler app/api/routes/auth.py:17handlerhop 1 app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:12hop 1reads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writesapi app/api/deps.py:1 app/api/__init__.pyapihop 1 · 2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyrouteshandler · FastAPI · 6 routes · FastAPI se…SRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycorehop 1 · FastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1modelshop 1 · 3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemashop 1 · 4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyserviceshop 1 · 5 filesSRC 5›workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkershop 1 · Celery · 1 taskSRC 3›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutils×__init__ app/utils/__init__.py__init__SRC 1exceptions app/utils/exceptions.py:1exceptionsSRC 1›model_sync app/utils/model_sync.py:1model_syncSRC 1›prompts app/utils/prompts.py:1promptsSRC 1›text_processing app/utils/text_processing.py:1text_processingSRC 1›validators app/utils/validators.py:1validatorsSRC 1›
component 6every box and arrow cites a source line; click one

← app/api/routes request flow

app/workers component flow

3 components

handler app/api/routes/auth.py:17handlerhop 1 app/api/routes/auth.py:8 app/api/routes/auth.py:9 app/api/routes/auth.py:10 app/api/routes/auth.py:11 app/api/routes/documents.py:11 app/api/routes/documents.py:12hop 1reads/writes app/api/deps.py:4reads/writes2 imports app/api/routes/auth.py:8 app/api/routes/documents.py:85 imports app/api/routes/auth.py:9 app/api/routes/documents.py:9 app/api/routes/health.py:8 app/api/routes/health.py:9 app/api/routes/health.py:101 import app/api/routes/auth.py:102 imports app/api/routes/auth.py:11 app/api/routes/documents.py:101 import app/api/routes/documents.py:112 imports app/api/routes/documents.py:12 app/api/routes/documents.py:131 import app/api/routes/documents.py:69reads/writes app/api/routes/auth.py:5 app/api/routes/health.py:5reads/writescalls app/core/storage.py:5 app/core/storage.py:6callsreads/writes app/core/redis_client.py:3reads/writes app/core/database.py:3 app/core/security.py:8reads/writesreads/writes app/models/job.py:4 app/models/user.py:4reads/writescalls app/services/llm_service.py:4callsreads/writes app/services/job_service.py:5calls app/utils/model_sync.py:13 app/utils/model_sync.py:14callsreads/writes app/workers/sync_db.py:4 app/workers/tasks.py:7reads/writesapi app/api/deps.py:1 app/api/__init__.pyapihop 1 · 2 filesSRC 2›routes app/api/routes/auth.py:1 app/api/routes/documents.py:1 app/api/routes/health.py:1 app/api/routes/__init__.pyrouteshandler · FastAPI · 6 routes · FastAPI se…SRC 4›core app/core/celery_app.py:1 app/core/config.py:1 app/core/database.py:1 app/core/logging.py:1 app/core/redis_client.py:1 app/core/__init__.pycorehop 1 · FastAPI security · JWTSRC 6›models app/models/__init__.py:1 app/models/job.py:1 app/models/user.py:1modelshop 1 · 3 filesSRC 3›schemas app/schemas/__init__.py:1 app/schemas/auth.py:1 app/schemas/documents.py:1 app/schemas/job.py:1schemashop 1 · 4 filesSRC 4›services app/services/job_service.py:1 app/services/llm_service.py:1 app/services/mineru_service.py:1 app/services/ocr_service.py:1 app/services/__init__.pyserviceshop 1 · 5 filesSRC 5›utils app/utils/exceptions.py:1 app/utils/model_sync.py:1 app/utils/prompts.py:1 app/utils/text_processing.py:1 app/utils/validators.py:1 app/utils/__init__.pyutilshop 1 · 6 filesSRC 6›AWS SDK app/core/storage.py:5 app/core/storage.py:6 app/utils/model_sync.py:13 app/utils/model_sync.py:14AWS SDKvia boto3, botocoreSRC 4OpenAI API app/services/llm_service.py:4OpenAI APIvia openaiSRC 1Redis app/core/redis_client.py:3Redisvia redisSRC 1SQL database app/api/deps.py:4 app/api/routes/auth.py:5 app/api/routes/health.py:5 app/core/database.py:3 app/core/security.py:8 app/models/job.py:4SQL databasevia sqlalchemySRC 6workers app/workers/sync_db.py:1 app/workers/tasks.py:1 app/workers/__init__.pyworkers×6 uses app/workers/tasks.py:17 app/workers/tasks.py:43 app/workers/tasks.py:65 app/workers/tasks.py:74 app/workers/tasks.py:86 app/workers/tasks.py:119__init__ app/workers/__init__.py__init__SRC 1sync_db app/workers/sync_db.py:1sync_dbSRC 1tasks app/workers/tasks.py:1tasksSRC 1›
component 3solid arrows are imports (count on hover)every box and arrow cites a source line; click one

Not drawn

These were not produced. No empty diagram is ever fabricated to fill a tab.