Skip to content
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

LanceError(IO): k must be positive, when executing the request over @codebase #2789

Open
3 tasks done
ishatalkin opened this issue Nov 2, 2024 · 1 comment
Open
3 tasks done
Assignees
Labels
area:context-providers Relates to context providers area:indexing Relates to embedding and indexing ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior priority:high Indicates high priority

Comments

@ishatalkin
Copy link

Before submitting your bug report

Relevant environment info

- OS: Windows
- Continue version: v0.8.55
- IDE version: VSCode 1.95.1
- Model: embeddings all-MiniLM-L6-v2 / ollama nomic-embed-text
- config.json:
  
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text"
  },

Description

While executing a request, using @codebase context provider, an error occurrs: Error: lance error: LanceError(IO): k must be positive. I tried reindexing the files via "Click to reindex", also tried deleting the .continue/index, but it didn't help.

The error occurs both with default all-MiniLM-L6-v2 embedding provider and with ollama nomic-embed-text.

The same error occurs in Rider (Rider 2024.2.7, continue 0.0.75)

To reproduce

  1. Open Continue chat
  2. Enter the request with @codebase context provider, e.g. "what are application entry points? @codebase"

Expected Result: Prompt with some codebase is sent to LLM

Actual Result: The error occurs:
Error getting context items from codebase: Error: lance error: LanceError(IO): k must be positive, C:\Users\runneradmin.cargo\registry\src\index.crates.io-6f17d22bba15001f\lance-0.10.18\src\dataset\scanner.rs:432:27

Log output

notificationsAlerts.ts:42 Error getting context items from codebase: Error: lance error: LanceError(IO): k must be positive, C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\lance-0.10.18\src\dataset\scanner.rs:432:27
@sestinj sestinj self-assigned this Nov 2, 2024
@dosubot dosubot bot added area:context-providers Relates to context providers ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior labels Nov 2, 2024
@ishatalkin
Copy link
Author

The workaround is to set params for codebase context provider:

  "contextProviders": [
    {
      "name": "codebase",
      "params": {
        "nRetrieve": 25,
        "nFinal": 5,
        "useReranking": false
      }
    }
  ],

@RomneyDa RomneyDa added area:indexing Relates to embedding and indexing priority:high Indicates high priority labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:context-providers Relates to context providers area:indexing Relates to embedding and indexing ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior priority:high Indicates high priority
Projects
None yet
Development

No branches or pull requests

3 participants