@@ -55,22 +55,23 @@ your system Python or project-local virtual environments.
5555
5656After installing ` uv ` , run:
5757``` bash
58- uv tool install vectorcode
58+ uv tool install " vectorcode<1.0.0 "
5959```
6060in your shell. To specify a particular version of Python, use the ` --python `
6161flag. For example, ` uv tool install vectorcode --python python3.11 ` . For hardware
6262accelerated embedding, refer to [ the relevant section] ( #hardware-acceleration ) .
6363If you want a CPU-only installation without CUDA dependencies required by
6464default by PyTorch, run:
6565``` bash
66- uv tool install vectorcode --index https://download.pytorch.org/whl/cpu --index-strategy unsafe-best-match
66+ uv tool install " vectorcode<1.0.0 " --index https://download.pytorch.org/whl/cpu --index-strategy unsafe-best-match
6767```
6868
6969If you need to install multiple dependency group (for [ LSP] ( #lsp-mode ) or
7070[ MCP] ( #mcp-server ) ), you can use the following syntax:
7171``` bash
72- uv tool install ' vectorcode[lsp,mcp]'
72+ uv tool install " vectorcode[lsp,mcp]<1.0.0 "
7373```
74+
7475> [ !NOTE]
7576> The command only install VectorCode and ` SentenceTransformer ` , the default
7677> embedding engine. If you need to install an extra dependency, you can use
@@ -580,7 +581,7 @@ following options in the JSON config file:
580581 "embedding_params": {
581582 "backend": "torch",
582583 "device": "cuda"
583- },
584+ }
584585}
585586` ` `
586587
@@ -593,8 +594,8 @@ need to configure `SentenceTransformer` to use `openvino` backend. In your
593594` ` ` json
594595{
595596 "embedding_params": {
596- "backend": "openvino",
597- },
597+ "backend": "openvino"
598+ }
598599}
599600` ` `
600601This will run the embedding model on your GPU . This is supported even for
@@ -618,14 +619,14 @@ fact, this is exactly what I did when I wrote the neovim plugin.
618619For the query command, here' s the format printed in the ` pipe` mode :
619620` ` ` json
620621[
621- {
622- "path": "path_to_your_code.py",
623- "document":"import something"
624- },
625- {
626- "path": "path_to_another_file.py",
627- "document": "print('hello world')"
628- }
622+ {
623+ "path": "path_to_your_code.py",
624+ "document": "import something"
625+ },
626+ {
627+ "path": "path_to_another_file.py",
628+ "document": "print('hello world')"
629+ }
629630]
630631` ` `
631632Basically an array of dictionaries with 2 keys : ` "path"` for the path to the
@@ -634,20 +635,20 @@ document, and `"document"` for the content of the document.
634635If you used ` --include chunk path` parameters , the array will look like this :
635636` ` ` json
636637[
637- {
638- "path": "path_to_your_code.py",
639- "chunk": "foo",
640- "start_line": 1,
641- "end_line": 1,
642- "chunk_id": "chunk_id_1"
643- },
644- {
645- "path": "path_to_another_file.py",
646- "chunk": "bar",
647- "start_line": 1,
648- "end_line": 1,
649- "chunk_id": "chunk_id_2"
650- }
638+ {
639+ "path": "path_to_your_code.py",
640+ "chunk": "foo",
641+ "start_line": 1,
642+ "end_line": 1,
643+ "chunk_id": "chunk_id_1"
644+ },
645+ {
646+ "path": "path_to_another_file.py",
647+ "chunk": "bar",
648+ "start_line": 1,
649+ "end_line": 1,
650+ "chunk_id": "chunk_id_2"
651+ }
651652]
652653` ` `
653654Keep in mind that both ` start_line` and ` end_line` are inclusive . The ` chunk_id`
@@ -668,13 +669,13 @@ The output is in JSON format. It contains a dictionary with the following fields
668669A JSON array of collection information of the following format will be printed:
669670```json
670671{
671- "project_root": str,
672- "user": str,
673- "hostname": str,
674- "collection_name": str,
675- "size": int,
676- "num_files": int,
677- "embedding_function": str
672+ "project_root": str,
673+ "user": str,
674+ "hostname": str,
675+ "collection_name": str,
676+ "size": int,
677+ "num_files": int,
678+ "embedding_function": str
678679}
679680```
680681- `"project_root"`: the path to the `project-root`;
@@ -711,8 +712,8 @@ pipx inject vectorcode 'vectorcode[lsp]' --force
711712The LSP request for the ` workspace/executeCommand` is defined as follows:
712713` ` `
713714{
714- command: str
715- arguments: list[Any]
715+ command: str
716+ arguments: list[Any]
716717}
717718` ` `
718719For the ` vectorcode-server` , the only valid value for the ` command` key is
@@ -721,8 +722,8 @@ command. For example, to execute `vectorcode query -n 10 reranker`, the request
721722would be:
722723` ` `
723724{
724- command: "vectorcode",
725- arguments: ["query", "-n", "10", "reranker"]
725+ command: "vectorcode",
726+ arguments: ["query", "-n", "10", "reranker"]
726727}
727728` ` `
728729
0 commit comments