No embedding found while querying qdrant
Describe the bug After creating new Qdrant Index while we perform the query to the qdrant db sometime we are not getting
To Reproduce Steps to reproduce the behavior:
- Create a Qdrant Index used following command
opt := qdrant.Options{CollectionName: collectionName}
qdrantIndex := index.New(
qdrant.New(opt).WithAPIKeyAndEdpoint(token, "http://localhost:6333"),
embedder,
)
- Perform Query operation on qdrant
similarity, err := qdrantIndex.Query(context.Background(), "pizza", option.WithTopK(100), option.WithFilter(queryFilter))
- Got Panic from Qdrant
Expected behavior
Instead of throwing panic it should have thrown out the error
Screenshots
Desktop (please complete the following information):
- OS: macOS 12.7.1 (21G920)
- Browser NA
- Version v0.1.2
Additional context May be I am creating index incorrectly even tough we should return error over panicking the entire system
@parikxxit Please provide a full example, this will add more context. From your PR it looks like your embedder failed to produce embeddings, and accessing to embeddings[0] will cause panic. If so the problem is elsewhere.
no more information received