Troubleshoot search
Check stored rows, embeddings, filters and candidate coverage in order.
Skeg 0.8 · Development documentation
Keep the query vector, index name, tenant and one expected row ID at hand. Run the checks on the same endpoint and under the same tenant as the application. If writes or maintenance are running, record that when comparing responses.
| What you saw | Where to start |
|---|---|
| An error instead of a hit array | Check the connection and index. |
| A known row is missing from the hits | Read the row by ID. |
| Results disappear after adding a filter | Check filter eligibility. |
| The right rows exist, but the ranking looks wrong | Check the embedding space, then inspect the plan. |
| The query is slow | Inspect the execution plan. |
Check the connection and index
Use a RESP client with the same authentication as the application. Replace
articles with the index you are investigating.
SKEG.WHOAMI
SKEG.VINDEX.INFO articles
Check the tenant, dimension, backend and index incarnation. If you have recorded the incarnation, compare it with the current one. A changed incarnation means the application is using a different index under the same name.
- For an authentication error, check the connection’s login and tenant.
- For a missing index, confirm the name and tenant before creating anything.
- For
ERR [INDEX_FAULT], read the reason and inspect the index with the diagnostic commands. Follow the remedy in the error if it describes an older store. - For
ERR [STORAGE], check the server logs and the named shard or deadline. A failed request provides no hit array to evaluate.
See authentication and tenants and protocol errors for reply handling.
Read the row by ID
Start with one expected ID. Replace 42 with that ID.
SKEG.VGET articles 42
A null reply means there is no live row with that ID in the selected index. Check the import outcome for the row, especially if it was written in a batch. A complete batch reply can contain rejected items.
If the row exists, decode the vector as little-endian float32 and compare
it with the intended embedding. If the server advertises vget.withpayload,
use WITHPAYLOAD to inspect its payload in the same read:
SKEG.VGET articles 42 WITHPAYLOAD
If the hit exists and the application cannot display its title or text, read the corresponding application key separately. See retrieve application records.
Check filter eligibility
Compare the stored payload with the exact expression the application sends.
| What you saw | What to check |
|---|---|
| A field never matches | Look for UTF-8 key=value tokens. Field names and keyword values are case-sensitive. |
| A numeric range behaves unexpectedly | Check that the stored values and bounds use integers consistently. |
NOT field EXISTS omits a row | The row needs at least one indexed field to be considered by negation. |
| An expression is rejected | Pass it as one argument and check parentheses, operator spelling and allowed token characters. |
| The hits lack returned payloads | Add WITHPAYLOAD to the search request. |
Try the same query with and without the filter. Use the point-read payload to decide whether a specific ID is eligible. The unfiltered top hits show only the limited result of that search. See filter semantics.
If the stored payload matches and filtered hits are still unexpected, check
for payload indexing errors after a reported write success. Compare the
server logs with changes in skeg_payload_post_commit_failures_total.
See write outcomes
before replaying writes.
Check the embedding space
Confirm that documents and queries use the intended model revision, preprocessing and model-specific query or document instructions. Compare both the dimension and the embedding model. Use a finite, nonzero query vector for cosine search.
If the application changed embedding models, populate and evaluate a separate index before switching reads.
Inspect the execution plan
Repeat the query with the same vector, filter, k and l_search and add
EXPLAIN. The response becomes [hits, profile_text]. Decode the hit array
inside it using the same stride as before.
Check the selected plan, matched rows and candidate counts. For a latency problem, compare per-shard phase times with the overall server wall time and your client-side duration. The monitoring guide shows how to compare the server histogram with client latency.
Once the stored vectors and filter eligibility agree with your expectations,
compare the results with an exact ranking of the eligible rows. If a graph
walk ran, follow choose search effort to vary
l_search under comparable conditions.
Record a reproduction
Record the server and client versions, index settings, tenant, requested
k and l_search, filter, expected IDs, actual IDs and the diagnostic
profile. Include whether writes or maintenance were active. Use a small
synthetic dataset when sharing the reproduction and redact credentials
and private data.