8 篇文章带有标签 “Continue AICodingAssistant”

Continue 源码分析 - 向量数据库存储位置

向量数据库存储目录名字的组成部分:

  • IndexTag.directory: /Users/junjian/GitHub/continuedev/continue-0.9.191-vscode/extensions/vscode
  • IndexTag.branch: NONE
  • IndexTag.artifactId: vectordb::_TransformersJsEmbeddingsProvider::bge-small-zh-v1.5

变量IDE ExtensionsBranchEmbedding ProviderEmbedding Model

源代码:core/indexing/refreshIndex.ts

export function tagToString(tag: IndexTag): string {
  return `${tag.directory}::${tag.branch}::${tag.artifactId}`;
}

Continue 源码分析 - 键盘快捷键

源代码:gui/src/components/mainInput/TipTapEditor.tsx

function TipTapEditor(props: TipTapEditorProps) {
  //...
  const editor: Editor = useEditor({
    extensions: [
      Document,
      History,
      Image,
      Placeholder.configure({
        placeholder: () =>
          historyLengthRef.current === 0
            ? "提出任何问题,'/' 斜杠命令,'@' 添加上下文"
            : "提出后续问题",
      }),
      Paragraph.extend({
        addKeyboardShortcuts() {
// ...

源代码:gui/src/pages/gui.tsx

Continue 源码分析 - transformers.js 大模型提供者

模型 语言 类型 URL
jina-embeddings-v2-base-zh 中文 Embedding https://huggingface.co/Xenova/jina-embeddings-v2-base-zh
bge-small-zh-v1.5 中文 Embedding https://huggingface.co/Xenova/bge-small-zh-v1.5
bge-base-zh-v1.5 中文 Embedding https://huggingface.co/Xenova/bge-base-zh-v1.5
bge-large-zh-v1.5 中文 Embedding https://huggingface.co/Xenova/bge-large-zh-v1.5
all-MiniLM-L6-v2 英文 Embedding https://huggingface.co/Xenova/all-MiniLM-L6-v2
bge-base-en-v1.5 英文 Embedding https://huggingface.co/Xenova/bge-base-en-v1.5
bge-reranker-base 英文 Reranker https://huggingface.co/Xenova/bge-reranker-base
TinyLlama-1.1B-Chat-v1.0 英文 LLM https://huggingface.co/Xenova/TinyLlama-1.1B-Chat-v1.0
phi-1_5_dev 英文 LLM https://huggingface.co/Xenova/phi-1_5_dev
Qwen1.5-0.5B 中文 LLM https://huggingface.co/Xenova/Qwen1.5-0.5B
Qwen1.5-1.8B 中文 LLM https://huggingface.co/Xenova/Qwen1.5-1.8B
Qwen1.5-0.5B-Chat 中文 LLM https://huggingface.co/Xenova/Qwen1.5-0.5B-Chat
codegen-350M-mono 英文 LLM https://huggingface.co/Xenova/codegen-350M-mono
codegen-350M-multi 多语言 Code LLM https://huggingface.co/Xenova/codegen-350M-multi
deepseek-coder-1.3b-base 中文 Code LLM https://huggingface.co/Xenova/deepseek-coder-1.3b-base
deepseek-coder-1.3b-instruct 中文 Code LLM https://huggingface.co/Xenova/deepseek-coder-1.3b-instruct

Continue 源码分析

通过配置创建新的 Extension,用于区别于 Continue 。

{
  "name": "continue",
  "icon": "media/icon.png",
  "version": "0.9.218",
  "displayName": "LNSoft Continue",
  "description": "The leading open-source AI code assistant",
  "publisher": "LNSoft Continue"
}

目录:extensions/vscode

package.json

package.json 由开发者手动创建和维护,主要用于定义项目的配置信息。

  • configuration
  • commands
  • keybindings
  • menus
  • views

package-lock.json

package-lock.json 由 npm 自动生成和更新,主要用于锁定依赖的具体版本,确保安装一致性。

可以通过使用 package.nls.json 文件来支持多语言。package.nls.