-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
On MacOS 15.2, running postgres 16 from home-brew, and building lantern from master, the following inscrutable errors are thrown when using an external index:
[+] [Lantern External Index] New connection: 127.0.0.1:63501
[*] [Lantern External Index] Number of available CPU cores: 20
[*] [Lantern External Index] Index Params - pq: false, metric_kind: Cos, quantization: I8, dim: 768, m: 34, ef_construction: 256, ef: 256, num_subvectors: 0, num_centroids: 0, element_bits: 32
[*] [Lantern External Index] Creating index with parameters dimensions=768 m=34 ef=256 ef_construction=256, hardware_acceleration=serial
[*] [Lantern External Index] Estimated capcity is 38979200
[+] [Lantern External Index] Indexed 3897920 tuples [speed 1110 tuples/s]...
[+] [Lantern External Index] Indexing took 6948s, indexed 7764322 items
[*] [Lantern External Index] Start streaming index
[+] [Lantern External Index] Writing index to file took 12s722ms
[+] [Lantern External Index] Reading index file took 1s662ms
[X] [Lantern External Index] Indexing error: Invalid argument (os error 22)
The corresponding command on the postgres side:
create index on embeddings_denormalized using lantern_hnsw (cast(vec as vector(768)) dist_vec_cos_ops) with (m = 34, ef_construction = 256, ef = 256, dim = 768, quant_bits = 8, external=true) where abs(ulid_hash(page_id) % 100) < 20;
INFO: done init usearch index
INFO: connecting to external indexing server on 127.0.0.1:8998
INFO: successfully connected to external indexing server
ERROR: external index error: Invalid argument (os error 22)
Time: 6963287.590 ms (01:56:03.288)
The partial index (where) has no impact, I simply put this in because the table is large and debugging this problem is a PITA.
Lantern was invoked using:
lantern-cli start-indexing-server --tmp-dir /opt/homebrew/var/
Thinking that this might be gatekeeper related, I tried changing tmp-dir but it had no impact.
greptile-apps
Metadata
Metadata
Assignees
Labels
No labels