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:
- Open the plugins overlay at the top of the screen.
- Search for "rivet-plugin-qdrant".
- Click the "Install" button to install the plugin in your current project.
-
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
orcreateProcessor
.
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",
},
},
});