
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

vectore-db is a Rust library leveraging WebAssembly to efficiently process and store string embeddings. It provides functionality to transform strings or string arrays into embeddings (arrays of floating-point numbers), which are then stored in a k-d tree data structure. Once stored, the library allows you to input a string and retrieve similar strings based on the embeddings.
Check out this demo video to see vectore-db in action:

You can install vectore-db using npm:
npm i vectore_db
Here's a simple example of how to use vectore-db in a react project:
import init, { VectorStore } from "vectore_node";
import { useEffect, useState } from "react";
export default function useVectoreStore() {
const [vector_store, setVector_store] = useState();
const [first, setfirst] = useState(false);
useEffect(() => {
async function initg() {
await init();
setVector_store(VectorStore.new());
}
if (!first) {
setfirst(true);
initg();
}
}, [first, vector_store]);
return { vector_store };
}
In any client component, you can use the hook useVectoreStore() to access the vector store:
vector_store.get_words(); // Get all words or text inserted in the vectore database
await vector_store.add_vectore_by_word("hello world"); // Add a single word or text to the vectore database
await vector_store.add_vectore_by_text("sky\ncolor"); // Add multiple texts separated by \n to the vectore database
await vector_store.similar_words("color", 1); // Get similar words to the input string and specify the number of related strings desired
To transform text into embeddings, you can set up an embedding server. The default server provided by our library has limited resources. Please note that the first request to the server may incur a wait time of 50 seconds due to rendering policy. However, if you prefer to use your own server, you can follow the example provided at the following URL:
Example Embedding Server Configuration
After configuring your own server, initialize the library with the server URL and the length of the embedding vector. For example:
const vectore = VectoreStore.new(url, vectore_length);
If you encounter any issues or have questions about using vectore-db, please check out our FAQ or open an issue on GitHub.
vectore-db is licensed under the MIT License.
FAQs
Embedding Rust library in WebAssembly for use in web apps.
We found that vectore_db demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.