tballison commented on PR #3674:
URL: https://github.com/apache/tika/pull/3674#issuecomment-7114212295

   Here's what my bot finds. Let me know what you think:
   
   ```
   Edge cases
     1. Empty re-emit wipes the container (QdrantClient.java:118). With 
replaceExisting defaulting to true, an emit with no chunks deletes every point 
for that emit key. A re-run with inference down or misconfigured
        therefore erases good vectors. I'd skip the delete when zero points 
were written, or make that opt-in.
     2. Stale-delete is unbounded (QdrantClient.java:104,134). Every point ID 
for the container is held and sent in one has_id filter. A very large document 
can exceed Qdrant's 32 MB request limit after the upserts
        have succeeded, so that document fails on every retry. Stamping a 
per-emit run id in the payload and deleting on container_id == X AND run != 
current would be constant-size. It adds a payload key, so decide
        before release.
     3. Default metadataFields copies all metadata into every point 
(QdrantClient.java:210). A 1,000-chunk file stores its full metadata 1,000 
times, including stack-trace and other large tk: keys. I'd default to none
        or a short list.
     4. Every chunkless file still issues a delete-by-filter, and the docs call 
the container_id index "optional". Without it each delete is a full scan. I 
believe, but did not verify, that Qdrant strict mode rejects
        unindexed filters, which would fail every emit after writing. The docs 
should say "create the index".
   
     Hygiene
     - Docs: "the container keeps its earlier points" on a rejected upsert is 
wrong once an earlier batch has landed; the container then holds a mix.
     - Dropped fields: modality and the spatial label never reach the payload, 
and only the first locator of each kind is kept. ES does the same, but modality 
is an obvious filter for a vector store.
     - Config: batchSize < 1 silently becomes 64, and apiKey together with 
httpClientConfig.userName is accepted without a warning.
   ```
   
   Separately, after this merges, I'll probably lift out the unit reader into a 
shared module so that we aren't duplicating that across emitters. That's not 
within scope of this PR.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to