Find answers from the community

Updated 2 months ago

Has anyone ever gotten an error like

Has anyone ever gotten an error like this kth(=-12) out of bounds (13)?? I am getting this error when using .retrieve in llamaindex.
L
B
s
11 comments
are you using local embeddings?
no I am using Voyage embeddings. Could it from that?
maybe? Do you have the full traceback handy?
@Logan M how do I enable that?
Uhhh it should just happen automatically lol
Usually there's just a big stack trace when things error out in python
@BioHacker This just happened to me. I was specifying a top_k value that was greater than the number of nodes. Solved it with top_k = min(top_k, len(nodes))
Seems like LlamaIndex should just do that for us, though.
Oh great thank you so much.
I figured it had to do with that but I got busy with something else and didn’t get a chance to debug.
@Logan M would be great to add this to the library
Add a reply
Sign up and join the conversation on Discord