Repository navigation
Conversation
…the vector DB used by `occ context_chat:wipe` Signed-off-by: kyteinsky <kyteinsky@gmail.com> Assisted-by: Github Copilot:claude-opus-5-5
Signed-off-by: kyteinsky <kyteinsky@gmail.com> Assisted-by: Github Copilot:claude-opus-5-5
Signed-off-by: kyteinsky <kyteinsky@gmail.com> Assisted-by: Github Copilot:claude-opus-5-5
don't fetch the chunk ids into the python app Signed-off-by: kyteinsky <kyteinsky@gmail.com> Assisted-by: Github Copilot:claude-opus-5-5
Synchronous counterpart of the delete_provider_id action, so context_chat:wipe --provider can report the result and reindex right after. The bg threads are stopped while it runs. Signed-off-by: kyteinsky <kyteinsky@gmail.com> Assisted-by: Github Copilot:claude-opus-5-5
| Any batch the threads are working on is finished first, so nothing they fetched | ||
| before can be written to the vector db while the caller runs. | ||
| ''' | ||
| with BG_THREADS_PAUSE_LOCK: |
There was a problem hiding this comment.
nice catch!
yeah this will just be received in one pod, we don't know about others.
see the context_chat part of the change: nextcloud/context_chat#290, we can turn the tap off there and wait for the locked docs to be done before starting a wipe, that might work well.
there is one issue that some docs are locked for 24h due to failures, they won't clear up in the timeout of 30 mins. that we wait for the batch the complete.
this code can probably be removed from CCB then I suppose.
|
Claude says:
|
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
bbbca5c to
401aa3d
Compare
…her deletes Signed-off-by: kyteinsky <kyteinsky@gmail.com>
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
removed it since it was only effective in docker based installs, the tap is closed in the php side now before calling out to CCB
which if fine, we have locks to prevent prompts running in parallel, and we wait for indexing of a batch to complete before doing a wipe for 30 mins and show an error to the admin if that is crossed. also modified k8s integration test to have multiple pods per type and some work in parallel to test the lock and php side indexing stop changes. |
2a7967f to
66dd527
Compare
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
66dd527 to
1f39695
Compare
|
|
||
|
|
||
| class DeleteProviderRequest(BaseModel): | ||
| providerKey: Annotated[str, AfterValidator(_validate_provider_id)] |
There was a problem hiding this comment.
Why is this providerKey and not providerId?
There was a problem hiding this comment.
providerKey is appId__providerId
didn't notice that the two apps refer to provider id differently, ccb thinks it's both appId + providerId, php app thinks it's the different providers by a single app
maybe we can do the change in another PR consistently?
this passes now 🎉 still doing the changes suggested in the context_chat PR |
and some performance improvements.
it needs context chat changes to pass the tests.
related: #359 and nextcloud/context_chat#175
🤖 AI (if applicable)