voyageai-cli 1.6.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +2 -3
- package/src/cli.js +4 -0
- package/src/commands/benchmark.js +799 -0
- package/src/commands/playground.js +236 -0
- package/src/lib/explanations.js +47 -0
- package/src/lib/ui.js +53 -4
- package/src/playground/index.html +1111 -0
- package/test/commands/benchmark.test.js +252 -0
- package/test/commands/playground.test.js +137 -0
- package/test/lib/explanations.test.js +1 -0
package/README.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# voyageai-cli
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/mrlynn/voyageai-cli/main/voyageai-cli.png" alt="voyageai-cli" width="600" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
3
7
|
[](https://github.com/mrlynn/voyageai-cli/actions/workflows/ci.yml) [](https://www.npmjs.com/package/voyageai-cli) [](https://opensource.org/licenses/MIT) [](https://nodejs.org)
|
|
4
8
|
|
|
5
9
|
CLI for [Voyage AI](https://www.mongodb.com/docs/voyageai/) embeddings, reranking, and [MongoDB Atlas Vector Search](https://www.mongodb.com/docs/atlas/atlas-vector-search/). Pure Node.js — no Python required.
|
|
6
10
|
|
|
7
|
-
<!-- TODO: Add demo GIF -->
|
|
8
|
-
<!--  -->
|
|
9
|
-
|
|
10
11
|
Generate embeddings, rerank search results, store vectors in Atlas, and run semantic search — all from the command line.
|
|
11
12
|
|
|
12
13
|
> **⚠️ Disclaimer:** This is an independent, community-built tool. It is **not** an official product of MongoDB, Inc. or Voyage AI. It is not supported, endorsed, or maintained by either company. For official documentation, support, and products, visit:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voyageai-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "CLI for Voyage AI embeddings, reranking, and MongoDB Atlas Vector Search",
|
|
5
5
|
"bin": {
|
|
6
6
|
"vai": "./src/cli.js"
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
"mongodb": "^6.0.0",
|
|
40
40
|
"ora": "^9.1.0",
|
|
41
41
|
"picocolors": "^1.1.1",
|
|
42
|
-
"update-notifier": "^7.3.1"
|
|
43
|
-
"voyageai-cli": "^1.6.0"
|
|
42
|
+
"update-notifier": "^7.3.1"
|
|
44
43
|
}
|
|
45
44
|
}
|
package/src/cli.js
CHANGED
|
@@ -18,6 +18,8 @@ const { registerExplain } = require('./commands/explain');
|
|
|
18
18
|
const { registerSimilarity } = require('./commands/similarity');
|
|
19
19
|
const { registerIngest } = require('./commands/ingest');
|
|
20
20
|
const { registerCompletions } = require('./commands/completions');
|
|
21
|
+
const { registerPlayground } = require('./commands/playground');
|
|
22
|
+
const { registerBenchmark } = require('./commands/benchmark');
|
|
21
23
|
const { showBanner, showQuickStart, getVersion } = require('./lib/banner');
|
|
22
24
|
|
|
23
25
|
const version = getVersion();
|
|
@@ -40,6 +42,8 @@ registerExplain(program);
|
|
|
40
42
|
registerSimilarity(program);
|
|
41
43
|
registerIngest(program);
|
|
42
44
|
registerCompletions(program);
|
|
45
|
+
registerPlayground(program);
|
|
46
|
+
registerBenchmark(program);
|
|
43
47
|
|
|
44
48
|
// Append disclaimer to all help output
|
|
45
49
|
program.addHelpText('after', `
|