
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
The Ruby library, Documentrix, is designed to provide a way to build and query vector databases for applications in natural language processing (NLP) and large language models (LLMs). It allows users to store and retrieve dense vector embeddings for text strings.
To install Documentrix, you can use the following methods:
Type gem install documentrix
in your terminal.
Add the line gem 'documentrix'
to your Gemfile and run bundle install
in
your terminal.
In your own software the library can be used as shown in this example:
# Require necessary libraries: ollama-ruby and documentrix
require 'ollama'
require 'documentrix'
# Initialize an Ollama client instance, pointing to a local server
ollama = Ollama::Client.new(base_url: 'http://localhost:11434')
# Create a new Documentrix documents instance
documents = Documentrix::Documents.new(
ollama: ollama,
model: 'mxbai-embed-large',
collection: 'my-collection',
cache: Documentrix::Documents::SQLiteCache
)
# Split sample text into individual chunks using recursive character splitting
splitter = Documentrix::Documents::Splitters::RecursiveCharacter.new
text = "hay hay hay…" # Sample text data
chunks = splitter.split(text)
documents.add(chunks)
# Search the document collection for matching records
query = "What needles can you find in a haystack" # Search query
records = documents.find_where(
query,
prompt: 'Represent this sentence for searching relevant passages: %s',
text_size: 4096,
text_count: 10
)
The homepage of this library is located at
Documentrix was written by Florian Frank
This software is licensed under the MIT license.
FAQs
Unknown package
We found that documentrix demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.