Skip to main content
Start from a working template, change what the plugin does, and check its answers with the same validators Quivr uses. The Python path turns CSV rows into searchable text. The Go path changes how search ranks results.

Before you start

  • Get a Quivr checkout. Use the Go version in its root go.mod and check it with go version from the checkout.
  • For Python, check that python3 --version is 3.12 or later and that python3 -m venv --help works.
  • The first build and dependency install need network access. You can run the fixtures without a Quivr server.
1

Build the CLI

From the root of your checkout, install quivr and create a temporary workspace:
2

Scaffold and inspect

quivr plugin init creates your project, including quivr-plugin.yaml. The manifest names the plugin and declares the jobs, or Contributions, it can do.
Start with the default normalizer, a plugin that turns file bytes into Parts. A Part is a named piece of content such as a title or a text passage.
The first line of the inspection report is Plugin csv-rows 0.1.0: valid.
3

Change the plugin

Replace quivr-plugin.yaml with this manifest. Its plugin_api range opts into signed calls, and media_types says it accepts CSV files.
quivr-plugin.yaml
Replace csv_rows/normalizer.py. The SDK reads the input and verifies its size and checksum. Return one body Part per nonempty row, so a search hit can identify the row by its Part key.
csv_rows/normalizer.py
The scaffold includes fixtures and unit tests for the original Markdown handler. Remove them from this temporary example and give the new handler its own fixture.
fixtures/events.csv
fixtures/events.json
4

Run it and check the contract

The one-shot dev run prints the response and exits. Look for three Parts with keys row-1 through row-3 and the status line beginning quivr plugin dev: response valid: 3 Parts.
Look for CERTIFIED and zero failed checks. If you see NOT CERTIFIED, open contract-report.json and look for the failing fixture and issue.

What you built

You have a plugin project with a manifest, a changed handler, a fixture and a contract report. Each run of plugin test writes a fresh report. If you want to start over, create a new temporary workspace. To keep the plugin, move its project somewhere permanent before deleting the temporary folder. Publish and pin your plugin so a Quivr deployment can call it.