Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
genkitx-milvus
Advanced tools
genkitx-milvus
is a community plugin for using Milvus Vector Database with
Firebase Genkit. Built by The Fire Company. 🔥
Install the plugin in your project with your favorite package manager:
npm install genkitx-milvus
yarn add genkitx-milvus
pnpm add genkitx-milvus
To use this plugin, specify it when you call configureGenkit()
:
import { milvus } from 'genkitx-milvus';
export default configureGenkit({
plugins: [
milvus([
{
collectionName: 'collection_01',
embedder: textEmbeddingGecko,
},
]),
],
// ...
});
You must specify a Milvus collection and the embedding model you want to use. In addition, there are three optional parameters:
dbName
: Specified database
clientParams
: If you're not running your Milvus server on the same machine
as your Genkit flow, you need to specify auth options, or you're otherwise not
running a default Milvus server configuration, you can specify Milvus client connection parameters: address and token.
clientParams: {
address: "",
token: "",
}
embedderOptions
: Use this parameter to pass options to the embedder:
embedderOptions: { taskType: 'RETRIEVAL_DOCUMENT' },
Import retriever and indexer references like so:
import { milvusRetrieverRef, milvusIndexerRef } from 'genkitx-milvus';
Then, pass the references to retrieve()
and index()
:
// To use the index you configured when you loaded the plugin:
let docs = await retrieve({ retriever: milvusRetrieverRef, query });
// To specify an index:
export const customRetriever = milvusRetrieverRef({
collectionName: 'collection_01',
});
docs = await retrieve({ retriever: customRetriever, query });
// To use the index you configured when you loaded the plugin:
await index({ indexer: milvusIndexerRef, documents });
// To specify an index:
export const customIndexer = milvusIndexerRef({
collectionName: 'collection_01',
});
await index({ indexer: customIndexer, documents });
Want to contribute to the project? That's awesome! Head over to our Contribution Guidelines.
[!NOTE]
This repository depends on Google's Firebase Genkit. For issues and questions related to Genkit, please refer to instructions available in Genkit's repository.
Reach out by opening a discussion on Github Discussions.
This plugin is proudly maintained by the team at The Fire Company. 🔥
This project is licensed under the Apache 2.0 License.
FAQs
Genkit AI framework plugin for Milvus vector database.
The npm package genkitx-milvus receives a total of 11 weekly downloads. As such, genkitx-milvus popularity was classified as not popular.
We found that genkitx-milvus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.