Загрузка данных


и изменения в действующий ВНД?' chat_context={}
2026-08-17T11:31:13.304779845Z 2026-08-17 11:31:13 INFO     infrastructure.docpipe.decomposer — DocpipeDecomposerService.decompose start text='Как внести изменения в действующий ВНД?' forced_domain=None
2026-08-17T11:31:13.321347125Z 2026-08-17 11:31:13 INFO     openai._base_client — Retrying request to /embeddings in 0.496872 seconds
2026-08-17T11:31:13.830948520Z 2026-08-17 11:31:13 INFO     openai._base_client — Retrying request to /embeddings in 0.961192 seconds
2026-08-17T11:31:14.803165469Z 2026-08-17 11:31:14 INFO     openai._base_client — Retrying request to /embeddings in 1.875606 seconds
2026-08-17T11:31:16.701417012Z 2026-08-17 11:31:16 ERROR    boot.chat_worker_app.consumer — Message processing failed, discarding. routing_key=jurist.message.processing
2026-08-17T11:31:16.701454619Z Traceback (most recent call last):
2026-08-17T11:31:16.701458586Z   File "/app/.venv/lib/python3.14/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions
2026-08-17T11:31:16.701462223Z     yield
2026-08-17T11:31:16.701465353Z   File "/app/.venv/lib/python3.14/site-packages/httpx/_transports/default.py", line 394, in handle_async_request
2026-08-17T11:31:16.701468664Z     resp = await self._pool.handle_async_request(req)
2026-08-17T11:31:16.701471629Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701474916Z   File "/app/.venv/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request
2026-08-17T11:31:16.701478117Z     raise exc from None
2026-08-17T11:31:16.701481064Z   File "/app/.venv/lib/python3.14/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request
2026-08-17T11:31:16.701484201Z     response = await connection.handle_async_request(
2026-08-17T11:31:16.701487114Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701489984Z         pool_request.request
2026-08-17T11:31:16.701530066Z         ^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701533535Z     )
2026-08-17T11:31:16.701536646Z     ^
2026-08-17T11:31:16.701539571Z   File "/app/.venv/lib/python3.14/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request
2026-08-17T11:31:16.701542854Z     raise exc
2026-08-17T11:31:16.701545685Z   File "/app/.venv/lib/python3.14/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request
2026-08-17T11:31:16.701548789Z     stream = await self._connect(request)
2026-08-17T11:31:16.701551700Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701554693Z   File "/app/.venv/lib/python3.14/site-packages/httpcore/_async/connection.py", line 156, in _connect
2026-08-17T11:31:16.701557759Z     stream = await stream.start_tls(**kwargs)
2026-08-17T11:31:16.701560765Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701563741Z   File "/app/.venv/lib/python3.14/site-packages/httpcore/_backends/anyio.py", line 67, in start_tls
2026-08-17T11:31:16.701574577Z     with map_exceptions(exc_map):
2026-08-17T11:31:16.701577731Z          ~~~~~~~~~~~~~~^^^^^^^^^
2026-08-17T11:31:16.701580734Z   File "/usr/local/lib/python3.14/contextlib.py", line 162, in __exit__
2026-08-17T11:31:16.701583774Z     self.gen.throw(value)
2026-08-17T11:31:16.701586647Z     ~~~~~~~~~~~~~~^^^^^^^
2026-08-17T11:31:16.701589606Z   File "/app/.venv/lib/python3.14/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
2026-08-17T11:31:16.701592809Z     raise to_exc(exc) from exc
2026-08-17T11:31:16.701595793Z httpcore.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1082)
2026-08-17T11:31:16.701599007Z
2026-08-17T11:31:16.701602509Z The above exception was the direct cause of the following exception:
2026-08-17T11:31:16.701606437Z
2026-08-17T11:31:16.701609290Z Traceback (most recent call last):
2026-08-17T11:31:16.701612237Z   File "/app/.venv/lib/python3.14/site-packages/openai/_base_client.py", line 1694, in request
2026-08-17T11:31:16.701615356Z     response = await self._send_request(
2026-08-17T11:31:16.701618361Z                ^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701621282Z     ...<3 lines>...
2026-08-17T11:31:16.701624584Z     )
2026-08-17T11:31:16.701627442Z     ^
2026-08-17T11:31:16.701630258Z   File "/app/.venv/lib/python3.14/site-packages/openai/_client.py", line 1083, in _send_request
2026-08-17T11:31:16.701633322Z     response = await self._send_with_auth_retry(request, stream=stream, **kwargs)
2026-08-17T11:31:16.701636414Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701641404Z   File "/app/.venv/lib/python3.14/site-packages/openai/_client.py", line 1061, in _send_with_auth_retry
2026-08-17T11:31:16.701644595Z     response = await super()._send_request(request, stream=stream, **kwargs)
2026-08-17T11:31:16.701647521Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701650467Z   File "/app/.venv/lib/python3.14/site-packages/openai/_base_client.py", line 1613, in _send_request
2026-08-17T11:31:16.701655683Z     return await self._client.send(request, stream=stream, **kwargs)
2026-08-17T11:31:16.701658669Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701661569Z   File "/app/.venv/lib/python3.14/site-packages/httpx/_client.py", line 1629, in send
2026-08-17T11:31:16.701664657Z     response = await self._send_handling_auth(
2026-08-17T11:31:16.701667564Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701670588Z     ...<4 lines>...
2026-08-17T11:31:16.701673526Z     )
2026-08-17T11:31:16.701676354Z     ^
2026-08-17T11:31:16.701679192Z   File "/app/.venv/lib/python3.14/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
2026-08-17T11:31:16.701682272Z     response = await self._send_handling_redirects(
2026-08-17T11:31:16.701685179Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701688062Z     ...<3 lines>...
2026-08-17T11:31:16.701690878Z     )
2026-08-17T11:31:16.701693735Z     ^
2026-08-17T11:31:16.701696541Z   File "/app/.venv/lib/python3.14/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
2026-08-17T11:31:16.701699659Z     response = await self._send_single_request(request)
2026-08-17T11:31:16.701702535Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701705424Z   File "/app/.venv/lib/python3.14/site-packages/httpx/_client.py", line 1730, in _send_single_request
2026-08-17T11:31:16.701708459Z     response = await transport.handle_async_request(request)
2026-08-17T11:31:16.701711445Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701714377Z   File "/app/src/infrastructure/llm_limits/transport.py", line 40, in handle_async_request
2026-08-17T11:31:16.701717810Z     return await self._inner.handle_async_request(request)
2026-08-17T11:31:16.701720835Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701723775Z   File "/app/.venv/lib/python3.14/site-packages/httpx/_transports/default.py", line 393, in handle_async_request
2026-08-17T11:31:16.701726943Z     with map_httpcore_exceptions():
2026-08-17T11:31:16.701729818Z          ~~~~~~~~~~~~~~~~~~~~~~~^^
2026-08-17T11:31:16.701732726Z   File "/usr/local/lib/python3.14/contextlib.py", line 162, in __exit__
2026-08-17T11:31:16.701735897Z     self.gen.throw(value)
2026-08-17T11:31:16.701740616Z     ~~~~~~~~~~~~~~^^^^^^^
2026-08-17T11:31:16.701743649Z   File "/app/.venv/lib/python3.14/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
2026-08-17T11:31:16.701746777Z     raise mapped_exc(message) from exc
2026-08-17T11:31:16.701749859Z httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1082)
2026-08-17T11:31:16.701753021Z
2026-08-17T11:31:16.701755838Z The above exception was the direct cause of the following exception:
2026-08-17T11:31:16.701758825Z
2026-08-17T11:31:16.701761569Z Traceback (most recent call last):
2026-08-17T11:31:16.701764412Z   File "/app/src/boot/chat_worker_app/consumer.py", line 77, in _process_message
2026-08-17T11:31:16.701767514Z     await self._dispatch(event_type, payload)
2026-08-17T11:31:16.701770425Z   File "/app/src/boot/chat_worker_app/consumer.py", line 88, in _dispatch
2026-08-17T11:31:16.701773416Z     await self._container.resolve(ProcessNewMessageUseCase)(
2026-08-17T11:31:16.701776328Z         ProcessNewMessageInput(message_id=UUID(payload["message_id"]))
2026-08-17T11:31:16.701779411Z     )
2026-08-17T11:31:16.701782219Z   File "/app/src/use_cases/process_messages/process_new_message.py", line 96, in __call__
2026-08-17T11:31:16.701785261Z     decomp = await self._decomposer.decompose(message.original_text, forced_domain=forced_domain)
2026-08-17T11:31:16.701788300Z              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701791402Z   File "/app/src/infrastructure/docpipe/decomposer.py", line 51, in decompose
2026-08-17T11:31:16.701794422Z     ood = await self._ood_classifier.classify(text)
2026-08-17T11:31:16.701797396Z           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701800283Z   File "/app/src/infrastructure/docpipe/ood_classifier.py", line 36, in classify
2026-08-17T11:31:16.701803283Z     embedding = await self._vectorizer.process_text(text, prefix=EmbeddingPrefix.CATEGORIZE_TOPIC)
2026-08-17T11:31:16.701806272Z                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701809250Z   File "/app/src/infrastructure/docpipe/vectorizer.py", line 48, in process_text
2026-08-17T11:31:16.701812308Z     vectors = await self._embed_texts(text, prefix=prefix)
2026-08-17T11:31:16.701815570Z               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701818563Z   File "/app/src/infrastructure/docpipe/vectorizer.py", line 62, in _embed_texts
2026-08-17T11:31:16.701821560Z     response = await self._client.embeddings.create(
2026-08-17T11:31:16.701824474Z                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701827420Z     ...<3 lines>...
2026-08-17T11:31:16.701830538Z     )
2026-08-17T11:31:16.701835599Z     ^
2026-08-17T11:31:16.701838455Z   File "/app/.venv/lib/python3.14/site-packages/openai/resources/embeddings.py", line 260, in create
2026-08-17T11:31:16.701841693Z     return await self._post(
2026-08-17T11:31:16.701844585Z            ^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701847448Z     ...<11 lines>...
2026-08-17T11:31:16.701850448Z     )
2026-08-17T11:31:16.701853203Z     ^
2026-08-17T11:31:16.701856029Z   File "/app/.venv/lib/python3.14/site-packages/openai/_base_client.py", line 1977, in post
2026-08-17T11:31:16.701859096Z     return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
2026-08-17T11:31:16.701862142Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2026-08-17T11:31:16.701865243Z   File "/app/.venv/lib/python3.14/site-packages/openai/_base_client.py", line 1729, in request
2026-08-17T11:31:16.701868340Z     raise APIConnectionError(request=request) from err
2026-08-17T11:31:16.701871257Z openai.APIConnectionError: Connection error.