A plugin to add support for using Qdrant in Rivet.
[!IMPORTANT]
You must use the Node Executor with this plugin.
To use this plugin in Rivet:
Import the plugin and Rivet into your project:
import * as Rivet from "@ironclad/rivet";
import RivetPluginQdrant from "rivet-plugin-qdrant";
Initialize the plugin and register the nodes with the globalRivetNodeRegistry
:
Rivet.globalRivetNodeRegistry.registerPlugin(RivetPluginQdrant(Rivet));
(You may also use your own node registry if you wish, instead of the global one.)
The nodes will now work when run with runGraphInFile
or createProcessor
.
By default, the plugin will attempt to connect to a Qdrant instance at http://localhost:6333
. To configure this value, you can open the Settings window, navigate to the Plugins area, and configure the Database URL
value. There's also an option to set an optional API key.
Using createProcessor
or runGraphInFile
, pass in via pluginSettings
in RunGraphOptions
:
await createProcessor(project, {
...etc,
pluginSettings: {
qdrant: {
qdrantUrl: "http://localhost:6333",
},
},
});