Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit a420ad1

Browse files
committed
Fri Apr 19 22:33:00 PDT 2024
1 parent ae5d2fc commit a420ad1

8 files changed

Lines changed: 2 additions & 67 deletions

File tree

bun.lockb

0 Bytes
Binary file not shown.

docs/content/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ features:
3939
items:
4040
# TODO: add "to" links
4141
- title: 'Supports almost all major LLMs'
42-
description: 'Support for OpenAI, Anthropic, Llama.cpp and Ollama out of the box.'
42+
description: 'Support for OpenAI, Anthropic, and Ollama out of the box.'
4343
icon: 'i-ph-brain-duotone'
4444
target: '_blank'
4545
- title: 'Built-in Home Assistant integration'

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"@ava/docs",
2424
"@ava/oai-openapi",
2525
"@ava/lang",
26-
"node-llama-cpp",
2726
"hnswlib-node"
2827
]
2928
}

packages/lang/embeddings/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { EMBEDDINGS } from "./config";
2-
import { llamaCpp } from "./providers/llama-cpp";
32
import { ollama } from "./providers/ollama";
43
import { openai } from "./providers/openai";
54

@@ -9,8 +8,6 @@ export const createEmbeddings = () => {
98
return ollama(EMBEDDINGS)
109
case "openai":
1110
return openai(EMBEDDINGS)
12-
case "llama-cpp":
13-
return llamaCpp(EMBEDDINGS)
1411
}
1512
}
1613

packages/lang/embeddings/providers/llama-cpp.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/lang/embeddings/schema.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { z } from "zod"
2-
import { tmpdir } from "os"
3-
import { join } from "path"
42

5-
export const EmbeddingsNamespaceSchema = z.enum(["llama-cpp", "ollama", "openai"])
3+
export const EmbeddingsNamespaceSchema = z.enum(["ollama", "openai"])
64

75
export type ModelNamespace = z.infer<typeof EmbeddingsNamespaceSchema>
86

@@ -15,14 +13,6 @@ export const EmbeddingsSchema = z.object({
1513
token: z.optional(z.string()),
1614
baseURL: z.optional(z.string().url()),
1715
extra: z.any(),
18-
}).default({
19-
namespace: "llama-cpp",
20-
baseURL: `file://${join(tmpdir(), "ava", "llama-cpp", "nomic-embed-text-v1-GGUF")}`,
21-
name: "https://huggingface.co/nomic-ai/nomic-embed-text-v1-GGUF/resolve/main/nomic-embed-text-v1.Q4_K_M.gguf?download=true",
22-
extra: {
23-
contextSize: 8192,
24-
batchSize: 8192,
25-
}
2616
})
2717

2818
export type Embeddings = z.infer<typeof EmbeddingsSchema>

packages/lang/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@
1717
"easydl": "^1.1.1",
1818
"hnswlib-node": "^3",
1919
"langchain": "^0.1.34",
20-
"node-llama-cpp": "^2.8.9",
2120
"xml-js": "^1.6.11",
2221
"znv": "^0.4.0",
2322
"zod": "^3.22.5"
2423
},
2524
"trustedDependencies": [
26-
"node-llama-cpp",
2725
"hnswlib-node"
2826
]
2927
}

server/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"trustedDependencies": [
2626
"@ava/oai-openapi",
2727
"@ava/lang",
28-
"node-llama-cpp",
2928
"hnswlib-node"
3029
]
3130
}

0 commit comments

Comments
 (0)