diff --git a/app.log b/app.log index 2ada6c6..ba96933 100644 --- a/app.log +++ b/app.log @@ -9,8 +9,8 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -22,65 +22,81 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:urllib3.connectionpool:https://us-api.i.posthog.com:443 "POST /batch/ HTTP/1.1" 200 15 DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=11434 local_address=None timeout=None socket_options=None -DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.connection:connect_tcp.complete return_value= DEBUG:httpcore.http11:send_request_headers.started request= DEBUG:httpcore.http11:send_request_headers.complete DEBUG:httpcore.http11:send_request_body.started request= DEBUG:httpcore.http11:send_request_body.complete DEBUG:httpcore.http11:receive_response_headers.started request= -DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Content-Type', b'application/json; charset=utf-8'), (b'Date', b'Tue, 20 Aug 2024 16:26:41 GMT'), (b'Transfer-Encoding', b'chunked')]) +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Content-Type', b'application/json; charset=utf-8'), (b'Date', b'Wed, 21 Aug 2024 10:17:26 GMT'), (b'Transfer-Encoding', b'chunked')]) +INFO:httpx:HTTP Request: POST http://127.0.0.1:11434/api/generate "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.21.8.3:9090 +DEBUG:urllib3.connectionpool:http://10.21.8.3:9090 "POST /DecisionService/rest/v1/assurance_deploy/OD_assurance/ HTTP/1.1" 200 149 +INFO:root:Response generated. with model : openchat:latest +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:urllib3.connectionpool:https://us-api.i.posthog.com:443 "POST /batch/ HTTP/1.1" 200 15 +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Content-Type', b'application/x-ndjson'), (b'Date', b'Wed, 21 Aug 2024 10:17:27 GMT'), (b'Transfer-Encoding', b'chunked')]) +INFO:httpx:HTTP Request: POST http://127.0.0.1:11434/api/generate "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:httpcore.connection:close.started +DEBUG:httpcore.connection:close.complete +DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=11434 local_address=None timeout=None socket_options=None +DEBUG:httpcore.connection:connect_tcp.complete return_value= +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Content-Type', b'application/json; charset=utf-8'), (b'Date', b'Wed, 21 Aug 2024 10:18:06 GMT'), (b'Transfer-Encoding', b'chunked')]) +INFO:httpx:HTTP Request: POST http://127.0.0.1:11434/api/generate "HTTP/1.1 200 OK" +DEBUG:httpcore.http11:receive_response_body.started request= +DEBUG:httpcore.http11:receive_response_body.complete +DEBUG:httpcore.http11:response_closed.started +DEBUG:httpcore.http11:response_closed.complete +DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 10.21.8.3:9090 +DEBUG:urllib3.connectionpool:http://10.21.8.3:9090 "POST /DecisionService/rest/v1/assurance_deploy/OD_assurance/ HTTP/1.1" 200 151 +INFO:root:Response generated. with model : openchat:latest +DEBUG:httpcore.http11:send_request_headers.started request= +DEBUG:httpcore.http11:send_request_headers.complete +DEBUG:httpcore.http11:send_request_body.started request= +DEBUG:httpcore.http11:send_request_body.complete +DEBUG:httpcore.http11:receive_response_headers.started request= +DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Content-Type', b'application/x-ndjson'), (b'Date', b'Wed, 21 Aug 2024 10:18:08 GMT'), (b'Transfer-Encoding', b'chunked')]) INFO:httpx:HTTP Request: POST http://127.0.0.1:11434/api/generate "HTTP/1.1 200 OK" DEBUG:httpcore.http11:receive_response_body.started request= DEBUG:httpcore.http11:receive_response_body.complete DEBUG:httpcore.http11:response_closed.started DEBUG:httpcore.http11:response_closed.complete -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -91,38 +107,24 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -132,35 +134,21 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -176,22 +164,9 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -199,78 +174,13 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:chromadb.api.segment:Collection documentsTest already exists, returning existing collection. -DEBUG:urllib3.connectionpool:Resetting dropped connection: us-api.i.posthog.com -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_0 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_1 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_2 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_3 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_4 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: luck.txt_0 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: luck.txt_1 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: luck.txt_2 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: luck.txt_3 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_0 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_1 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_2 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_3 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_4 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: luck.txt_0 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: luck.txt_1 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: luck.txt_2 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: luck.txt_3 -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:httpcore.connection:close.started -DEBUG:httpcore.connection:close.complete -DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=11434 local_address=None timeout=None socket_options=None -DEBUG:httpcore.connection:connect_tcp.complete return_value= -DEBUG:httpcore.http11:send_request_headers.started request= -DEBUG:httpcore.http11:send_request_headers.complete -DEBUG:httpcore.http11:send_request_body.started request= -DEBUG:httpcore.http11:send_request_body.complete -DEBUG:httpcore.http11:receive_response_headers.started request= -DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Content-Type', b'application/json; charset=utf-8'), (b'Date', b'Tue, 20 Aug 2024 16:28:42 GMT'), (b'Transfer-Encoding', b'chunked')]) -INFO:httpx:HTTP Request: POST http://127.0.0.1:11434/api/generate "HTTP/1.1 200 OK" -DEBUG:httpcore.http11:receive_response_body.started request= -DEBUG:httpcore.http11:receive_response_body.complete -DEBUG:httpcore.http11:response_closed.started -DEBUG:httpcore.http11:response_closed.complete -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:urllib3.connectionpool:https://us-api.i.posthog.com:443 "POST /batch/ HTTP/1.1" 200 15 +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -283,91 +193,73 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -375,27 +267,23 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -404,33 +292,19 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -446,42 +320,23 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -489,74 +344,10 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:chromadb.api.segment:Collection documentsTest already exists, returning existing collection. -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_0 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_1 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_2 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_3 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: text.txt_4 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: luck.txt_0 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: luck.txt_1 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: luck.txt_2 -WARNING:chromadb.segment.impl.metadata.sqlite:Insert of existing embedding ID: luck.txt_3 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_0 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_1 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_2 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_3 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: text.txt_4 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: luck.txt_0 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: luck.txt_1 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: luck.txt_2 -WARNING:chromadb.segment.impl.vector.local_persistent_hnsw:Add of existing embedding ID: luck.txt_3 -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:urllib3.connectionpool:Resetting dropped connection: us-api.i.posthog.com -DEBUG:httpcore.connection:close.started -DEBUG:httpcore.connection:close.complete -DEBUG:httpcore.connection:connect_tcp.started host='127.0.0.1' port=11434 local_address=None timeout=None socket_options=None -DEBUG:httpcore.connection:connect_tcp.complete return_value= -DEBUG:httpcore.http11:send_request_headers.started request= -DEBUG:httpcore.http11:send_request_headers.complete -DEBUG:httpcore.http11:send_request_body.started request= -DEBUG:httpcore.http11:send_request_body.complete -DEBUG:httpcore.http11:receive_response_headers.started request= -DEBUG:httpcore.http11:receive_response_headers.complete return_value=(b'HTTP/1.1', 200, b'OK', [(b'Content-Type', b'application/json; charset=utf-8'), (b'Date', b'Tue, 20 Aug 2024 16:31:25 GMT'), (b'Transfer-Encoding', b'chunked')]) -INFO:httpx:HTTP Request: POST http://127.0.0.1:11434/api/generate "HTTP/1.1 200 OK" -DEBUG:httpcore.http11:receive_response_body.started request= -DEBUG:httpcore.http11:receive_response_body.complete -DEBUG:httpcore.http11:response_closed.started -DEBUG:httpcore.http11:response_closed.complete -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:urllib3.connectionpool:https://us-api.i.posthog.com:443 "POST /batch/ HTTP/1.1" 200 15 DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -565,61 +356,26 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -628,25 +384,16 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -654,42 +401,20 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event +DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event @@ -699,18 +424,8 @@ DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event -DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event DEBUG:watchdog.observers.inotify_buffer:in-event diff --git a/data/db/chroma.sqlite3 b/data/db/chroma.sqlite3 index a155bf5..69328e5 100644 Binary files a/data/db/chroma.sqlite3 and b/data/db/chroma.sqlite3 differ diff --git a/src/brmsAPI/brmsCall.py b/src/brmsAPI/brmsCall.py new file mode 100644 index 0000000..b001ba1 --- /dev/null +++ b/src/brmsAPI/brmsCall.py @@ -0,0 +1,52 @@ +import ollama +import re +import src.brmsAPI.payload_construction as pc +import src.brmsAPI.api as ap + +def brmsCall(user_input:str)->str: + request = ( + "Tu es un expêrt en data capture, ton role est d'extraire uniquement les données requises.\n\n" + "Extrait les informations au format liste suivant :\n Nom ; Prenom ; Age ; Adresse.\n\n." + "Si il y a des informations manquantes laisse les zonnes vides.\n\n" + "Si il y a des données manquantes n'écris rien, laise vide.\n\n" + "Ne répond rien d'autre que la liste. Nom ; Prenom ; Age ; Adresse] .\n\n" + "Voici quelques exemples pour te montrer: \n\n" + "Exemple numéro 1; utilisateur:'Je veux une information sur une assurance, il s'agit de madame Durant Jenny' reponse:Durant ; Jenny.\n\n" + "Exemple numéro 2; utilisateur:'Nous voulons les données d'assurance de monsieur Alexandre Gigof agé de 56 ans et résident au 6 rue labradore, Paris' reponse: Gigof ; Alexandre ; 56 ; 6 rue labradore, Paris .\n\n" + "Exemple numéro 3; utilisateur:'' reponse: .\n\n" + "Exemple numéro 4; utilisateur:'j'aurais une question sur l assurance' reponse: .\n\n" + "Voici la phrase cible: " f"{user_input}" + ) + + elements = ollama.generate( + model="mistral:latest", + prompt=request, + stream=False, + options= {'temperature': 1} + ) + print("1 : ------------------------------------------------>>>>>>------------------------------------------------>>>>>>------------------------------------------------>>>>>>",elements["response"]) + + elements2 = re.sub(r'[^a-zA-Z0-9;]', '', elements["response"]) + elements3 = [elem.strip() for elem in elements2.split(';') if elem.strip()] + print("2: ------------------------------------------------>>>>>>------------------------------------------------>>>>>>",elements3) + payload = pc.payload_construction(nom=elements3[0], prenom=elements3[1], age=elements3[2], adresse=elements3[3]) + + api = ap.ApiCall(url="http://10.21.8.3:9090/DecisionService/rest/v1/assurance_deploy/OD_assurance/", payload=payload, headers={'Content-Type': 'application/json'}) + test_completion = api.test_arguments() + print("3: ------------------------------------------------>>>>>>", test_completion) + if test_completion is not None: + sentence = "Tu dois indiquer à ton interlocuteur que tu ne peux pas répondre pour la raison suivante : ", test_completion, "Il dois ipérativement te donner touteslesinformations dans l'ordre si possible" + solve = False + else: + sentence = "D'après les informations que tu as renseignée le prix de l'assurance calculer par le model est : ", api.call_api() + solve = True + + print(solve) + + return sentence, elements3, solve + +def clear_dialog_element(input:str, liste_element:list)->str: + liste_element.append('assurance') + clear_input = [element for element in input[0].split() if not element in liste_element] + + return " ".join(clear_input) \ No newline at end of file diff --git a/src/generateS.py b/src/generateS.py index e3fc4eb..45c43b5 100644 --- a/src/generateS.py +++ b/src/generateS.py @@ -1,14 +1,15 @@ import ollama import logging -import re +import streamlit as st +import os from src.memory import ChatbotMemory, memory_counter, compressed_memory from src.rag.new_chromadb import rag_pipeline + +#BRMS integration import src.brmsAPI.api as ap import src.brmsAPI.payload_construction as pc - -import streamlit as st -import os +from src.brmsAPI.brmsCall import brmsCall, clear_dialog_element # Désactiver le parallélisme pour éviter les deadlocks os.environ["TOKENIZERS_PARALLELISM"] = "false" @@ -66,46 +67,8 @@ def ans(self, user_input="l'assurance de manon qui à 34 ans et qui habite à pa # BRMS Integration # #################### if "assurance" in user_input: - self.assurance_phase = True - - # payload = {"__DecisionID__": "exampleID","contract": {"id": 12345,"clients": [{"nom": nom,"prenom": prenom,"age": age,"adresse": adresse}],"montant": 0}} - request = ( - "Tu es un expêrt en data capture, ton role est d'extraire uniquement les données requises.\n\n" - "Extrait les informations au format liste suivant :\n Nom ; Prenom ; Age ; Adresse.\n\n." - "Si il y a des informations manquantes laisse les zonnes vides.\n\n" - "Si il y a des données manquantes n'écris rien, laise vide.\n\n" - "Ne répond rien d'autre que la liste. Nom ; Prenom ; Age ; Adresse] .\n\n" - "Voici quelques exemples pour te montrer: \n\n" - "Exemple numéro 1; utilisateur:'Je veux une information sur une assurance, il s'agit de madame Durant Jenny' reponse:Durant ; Jenny.\n\n" - "Exemple numéro 2; utilisateur:'Nous voulons les données d'assurance de monsieur Alexandre Gigof agé de 56 ans et résident au 6 rue labradore, Paris' reponse: Gigof ; Alexandre ; 56 ; 6 rue labradore, Paris .\n\n" - "Exemple numéro 3; utilisateur:'' reponse: .\n\n" - "Exemple numéro 4; utilisateur:'j'aurais une question sur l assurance' reponse: .\n\n" - "Voici la phrase cible: " f"{user_input}" - ) - - elements = ollama.generate( - # model=self.model, - model="mistral:latest", - prompt=request, - stream=False, - options=self._ollama_option - ) - print("------------------------------------------------>>>>>>------------------------------------------------>>>>>>",elements["response"]) - - elements2 = re.sub(r'[^a-zA-Z0-9;]', '', elements["response"]) - elements3 = elements2.split(';') - print(elements3) - print(elements3[0]) - payload = pc.payload_construction(nom=elements3[0], prenom=elements3[1], age=elements3[2], adresse=elements3[3]) - - api = ap.ApiCall(url="http://10.21.8.3:9090/DecisionService/rest/v1/assurance_deploy/OD_assurance/", payload=payload, headers={'Content-Type': 'application/json'}) - test_completion = api.test_arguments() - print("------------------------------------------------>>>>>>", test_completion) - if test_completion is not None: - sentence = "Tu dois indiquer à ton interlocuteur que tu ne peux pas répondre pour la raison suivante : ", test_completion - else: - sentence = "D'après les informations que tu as renseignée la réponse est : ", api.call_api() + sentence, liste_element, solve_statue = brmsCall(user_input) #################### context = rag_pipeline(query=user_input) @@ -129,7 +92,6 @@ def ans(self, user_input="l'assurance de manon qui à 34 ans et qui habite à pa result = ollama.generate( model=self.model, prompt=prompt, - # stream=False, stream=True, options=self._ollama_option ) @@ -141,6 +103,10 @@ def ans(self, user_input="l'assurance de manon qui à 34 ans et qui habite à pa self.response += chunk['response'] yield chunk['response'] + # clean user_input to avoid any confusion and recall assurance entity + if solve_statue: + user_input = clear_dialog_element(user_input, liste_element) + self.memory.update_memory(user_input, self.response) # TODO: effectuer cette tache en async pour eviter qu'elle ne ralentisse tout le processus