Skip to content

A Maiar plugin that allows agents to interact with PDF files

Notifications You must be signed in to change notification settings

zeeman-effect/plugin-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@zeeman-effect/plugin-pdf

This package is a plugin for the Maiar AI ecosystem, designed to work with the @maiar-ai/core package.

Documentation

For detailed documentation on how to use plugins, please refer to the Maiar documentation.

Plugin Information

Actions

  • handlePDF: Handle a PDF file from a buffer or URL and add the text to the conversation context for further analysis
  • analyzePDFFromPrompt: Analyze the text and image in the PDF file and add it to the conversation context for further analysis
  • analyzePDFFromSegment: Analyze a segment of the PDF with a prompt using the full text from the conversation context to provide additional information

Setup

import { PluginPDF } from "@zeeman-effect/plugin-pdf";
import { createRuntime } from "@maiar-ai/core";

const runtime = createRuntime({
    plugins: [new PluginPDF()],
});

Example

See the example directory for a complete example of how to use the plugin.

About

A Maiar plugin that allows agents to interact with PDF files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published