Skip to content

codebase error :Error getting context items from codebase: Error: Warning: No results found for @codebase context provider. #1026

@mintisan

Description

@mintisan

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue: v0.8.22
- IDE:Version: 1.87.2 (Universal)

Description

I encountered the following error after changing the embedding model as title.

image
{
  "slashCommands":[
    {
      "name": "edit",
      "description": "Edit highlighted code"
    },
    {
      "name": "comment",
      "description": "Write comments for the highlighted code"
    },
    {
      "name": "share",
      "description": "Download and share this session"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    },
    {
      "name": "commit",
      "description": "Generate a commit message for the current changes"
    },
    {
      "name": "so",
      "description": "Reference StackOverflow to answer the question"
    }
  ],
  "contextProviders":[
    { "name": "code" },
    { "name": "open", "params": { "onlyPinned": true } },
    {
      "name": "codebase",
      "params": {
        "nRetrieve": 25,
        "nFinal": 5,
        "useReranking": true
      }
    },
    { "name": "folder" },
    { "name": "search" },
    { "name": "tree" },
    { "name": "outline" },
    { "name": "highlights" },
    { "name": "docs" },
    { "name": "terminal" },
    { "name": "diff" }
  ],
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text",
    "apiBase": "http://100.122.227.134:11434"
  },
  "models": [
    {
      "title": "DeepSeek-33b",
      "provider": "ollama",
      "model": "deepseek-coder:33b",
      "apiBase": "http://100.122.227.134:11434"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Tab Autocomplete Model",
    "provider": "ollama",
    "model": "deepseek-coder:33b-base-q4_K_S",
    "apiBase": "http://100.122.227.134:11434"
  }
}

To reproduce

No response

Log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:context-providersRelates to context providersarea:slash-commandsRelates to the slash commands featurekind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions