lingoose icon indicating copy to clipboard operation
lingoose copied to clipboard

No embedding found while querying qdrant

Open parikxxit opened this issue 1 year ago • 1 comments

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:

  1. Create a Qdrant Index used following command
   opt  := qdrant.Options{CollectionName: collectionName}
   qdrantIndex := index.New(
		qdrant.New(opt).WithAPIKeyAndEdpoint(token, "http://localhost:6333"),
		embedder,
	)
	
  1. Perform Query operation on qdrant

similarity, err := qdrantIndex.Query(context.Background(), "pizza", option.WithTopK(100), option.WithFilter(queryFilter))

  1. Got Panic from Qdrant

Expected behavior

Instead of throwing panic it should have thrown out the error

Screenshots

Screenshot 2024-05-25 at 12 18 19 AM Screenshot 2024-05-25 at 12 39 07 AM

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 avatar May 24 '24 19:05 parikxxit

@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.

henomis avatar May 27 '24 13:05 henomis

no more information received

henomis avatar Nov 02 '24 17:11 henomis