@ragpipe/plugin-gemini 0.2.0 → 0.3.0-alpha.1

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/dist/index.cjs CHANGED
@@ -30,7 +30,7 @@ function geminiEmbedding(options) {
30
30
  const { model } = options;
31
31
  return {
32
32
  name: "gemini",
33
- dimensions: options.dimensions ?? 3072,
33
+ dimensions: options.dimensions,
34
34
  rateLimit: { delayMs: 800 },
35
35
  model,
36
36
  async embed(text) {
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { EmbeddingPlugin, GenerationPlugin } from 'ragpipe';
3
3
  interface GeminiEmbeddingOptions {
4
4
  apiKey: string;
5
5
  model: string;
6
- dimensions?: number;
6
+ dimensions: number;
7
7
  }
8
8
  declare function geminiEmbedding(options: GeminiEmbeddingOptions): EmbeddingPlugin;
9
9
 
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { EmbeddingPlugin, GenerationPlugin } from 'ragpipe';
3
3
  interface GeminiEmbeddingOptions {
4
4
  apiKey: string;
5
5
  model: string;
6
- dimensions?: number;
6
+ dimensions: number;
7
7
  }
8
8
  declare function geminiEmbedding(options: GeminiEmbeddingOptions): EmbeddingPlugin;
9
9
 
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ function geminiEmbedding(options) {
3
3
  const { model } = options;
4
4
  return {
5
5
  name: "gemini",
6
- dimensions: options.dimensions ?? 3072,
6
+ dimensions: options.dimensions,
7
7
  rateLimit: { delayMs: 800 },
8
8
  model,
9
9
  async embed(text) {
package/package.json CHANGED
@@ -1,64 +1,61 @@
1
1
  {
2
- "name": "@ragpipe/plugin-gemini",
3
- "version": "0.2.0",
4
- "description": "Gemini embedding and generation plugin for ragpipe",
5
- "type": "module",
6
- "license": "MIT",
7
- "author": {
8
- "name": "yungblud",
9
- "url": "https://github.com/yungblud"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/yungblud/ragpipe",
14
- "directory": "packages/plugin-gemini"
15
- },
16
- "bugs": {
17
- "url": "https://github.com/yungblud/ragpipe/issues"
18
- },
19
- "homepage": "https://github.com/yungblud/ragpipe#readme",
20
- "publishConfig": {
21
- "registry": "https://registry.npmjs.org/",
22
- "access": "public"
23
- },
24
- "exports": {
25
- ".": {
26
- "types": "./dist/index.d.ts",
27
- "import": "./dist/index.js",
28
- "require": "./dist/index.cjs"
29
- }
30
- },
31
- "main": "./dist/index.cjs",
32
- "module": "./dist/index.js",
33
- "types": "./dist/index.d.ts",
34
- "files": [
35
- "dist",
36
- "README.md"
37
- ],
38
- "keywords": [
39
- "ragpipe",
40
- "rag",
41
- "gemini",
42
- "google-ai",
43
- "embedding",
44
- "generation",
45
- "plugin"
46
- ],
47
- "peerDependencies": {
48
- "ragpipe": ">=0.2.0"
49
- },
50
- "devDependencies": {
51
- "tsup": "^8.4.0",
52
- "typescript": "^5.8.3",
53
- "vitest": "^3.1.1",
54
- "ragpipe": "0.2.0"
55
- },
56
- "scripts": {
57
- "build": "tsup",
58
- "dev": "tsup --watch",
59
- "typecheck": "tsc --noEmit",
60
- "test": "vitest run",
61
- "test:watch": "vitest",
62
- "test:coverage": "vitest run --coverage"
63
- }
64
- }
2
+ "name": "@ragpipe/plugin-gemini",
3
+ "version": "0.3.0-alpha.1",
4
+ "description": "Gemini embedding and generation plugin for ragpipe",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": {
8
+ "name": "yungblud",
9
+ "url": "https://github.com/yungblud"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/yungblud/ragpipe",
14
+ "directory": "packages/plugin-gemini"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/yungblud/ragpipe/issues"
18
+ },
19
+ "homepage": "https://github.com/yungblud/ragpipe#readme",
20
+ "publishConfig": {
21
+ "registry": "https://registry.npmjs.org/",
22
+ "access": "public"
23
+ },
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js",
28
+ "require": "./dist/index.cjs"
29
+ }
30
+ },
31
+ "main": "./dist/index.cjs",
32
+ "module": "./dist/index.js",
33
+ "types": "./dist/index.d.ts",
34
+ "files": ["dist", "README.md"],
35
+ "scripts": {
36
+ "build": "tsup",
37
+ "dev": "tsup --watch",
38
+ "typecheck": "tsc --noEmit",
39
+ "test": "vitest run",
40
+ "test:watch": "vitest",
41
+ "test:coverage": "vitest run --coverage"
42
+ },
43
+ "keywords": [
44
+ "ragpipe",
45
+ "rag",
46
+ "gemini",
47
+ "google-ai",
48
+ "embedding",
49
+ "generation",
50
+ "plugin"
51
+ ],
52
+ "peerDependencies": {
53
+ "ragpipe": ">=0.2.0"
54
+ },
55
+ "devDependencies": {
56
+ "ragpipe": "workspace:*",
57
+ "tsup": "^8.4.0",
58
+ "typescript": "^5.8.3",
59
+ "vitest": "^3.1.1"
60
+ }
61
+ }