Before you start
- Get a Quivr checkout. Use the Go version in its root
go.modand check it withgo versionfrom the checkout. - For Python, check that
python3 --versionis 3.12 or later and thatpython3 -m venv --helpworks. - 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.- Python · CSV reader
- Go · Search ranking
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
- Python · CSV reader
- Go · Search ranking
Replace Replace 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.
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
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
fixtures/events.csv
fixtures/events.json
4
Run it and check the contract
- Python · CSV reader
- Go · Search ranking
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.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 ofplugin 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.