8000 Bugfix: issue #202 by parikxxit · Pull Request #203 · henomis/lingoose · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bugfix: issue #202 #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions index/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ func (i *Index) Query(ctx context.Context, query string, opts ...option.Option)
if err != nil {
return nil, err
}
if len(embeddings) == 0 {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What embedder did you use? It looks like your embedded returned no embeddings an no error here.

return nil, fmt.Errorf("%w: %w", ErrInternal, errors.New("no embeddings found")
}
return i.Search(ctx, embeddings[0], opts...)
}

Expand Down
0