Skip to content

Search Codebase only return several random file #3336

Open
@khanh21011999

Description

@khanh21011999

Before submitting your bug report

Relevant environment info

- OS:MacOS
- Continue version:0.8.61
- IDE version:VS CODE 1.96.0
- Model: ALL
- config.json:
  
// models[]
"tabAutocompleteModel": {
    "title": "Codestral",
    "provider": "mistral",
    "model": "codestral-latest",
    "apiKey": ""
  },
  "disableIndexing": false,
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {
        "nRetrieve": 200,
        "nFinal": 10,
        "useReranking": true
      }
    },
    {
      "name": "web"
    },
    {
      "name": "tree"
    },
    {
      "name": "docs"
    }
  ],
  "slashCommands": [
    {
      "name": "share",
      "description": "Export the current chat session to markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    },
    {
      "name": "commit",
      "description": "Generate a git commit message"
    }
  ]

Description

When, i try to search codebase, it only give me random file and it not even related to the code, my project have 200 files, but it only return random files

Screenshot 2024-12-12 at 14 49 57 image image

It happen when i click search for codebase

To reproduce

  1. Typing anything
  2. Click search codebase
  3. Click search
  4. See the context items

Log output

No response

Metadata

Metadata

Assignees

Labels

area:indexingRelates to embedding and indexingide:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorneeds-triageos:macHappening specifically on Mac

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions