0.10.22-rc.20250304 • Published 11 months ago

@mediapipe/tasks-genai-experimental v0.10.22-rc.20250304

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

MediaPipe Tasks GenAI Experimental Package

This package contains experimental GenAI tasks for MediaPipe.

RAG Pipeline Inference

You can use the RAG Pipeline to augment an LLM Inference Task with existing knowledge.

const genaiFileset = await FilesetResolver.forGenAiTasks();
const genaiExperimentalFileset =
  await FilesetResolver.forGenAiExperimentalTasks();
const llmInference = await LlmInference.createFromModelPath(genaiFileset, ...);
const ragPipeline = await RagPipeline.createWithEmbeddingModel(
  genaiExperimentalFileset,
  llmInference,
  EMBEDDING_MODEL_URL,
);
await ragPipeline.recordBatchedMemory([
  'Paris is the capital of France.',
  'Berlin is the capital of Germany.',
]);
const result = await ragPipeline.generateResponse(
  'What is the capital of France?',
);
console.log(result);
0.10.18

1 year ago

0.10.19

1 year ago

0.10.20

1 year ago

0.10.21

11 months ago

0.10.22-rc.20250304

11 months ago

0.10.21-rc.20250131

12 months ago

0.10.21-rc.20250129

12 months ago

0.10.21-rc.20250128

12 months ago

0.10.21-rc.20250121

12 months ago

0.10.21-rc.20250120

12 months ago

0.10.21-rc.20250123

12 months ago

0.10.21-rc.20250122

12 months ago

0.10.21-rc.20250125

12 months ago

0.10.21-rc.20250124

12 months ago

0.10.21-rc.20250127

12 months ago

0.10.21-rc.20250126

12 months ago

0.10.21-rc.20250130

12 months ago

0.10.21-rc.20250118

12 months ago

0.10.21-rc.20250117

12 months ago

0.10.21-rc.20250119

12 months ago

0.10.21-rc.20250206

11 months ago

0.10.21-rc.20250205

12 months ago

0.10.21-rc.20250202

12 months ago

0.10.21-rc.20250201

12 months ago

0.10.21-rc.20250204

12 months ago

0.10.21-rc.20250203

12 months ago

0.10.15

1 year ago

0.10.16

1 year ago

0.10.14

2 years ago