Skip to main content

Vecworks

Vecworks is an open-source framework build on top of Pypeworks to procedurally query vector stores in Python. It offers the following features:

  • Standardized access to various vectorization platforms, like OpenAI's, SBERT and fastText
  • Mixing and matching of vectorization procedures, reducable to a single output using ensemblers
  • Remote serving of custom vectorization procedures using the built-in server

Install

Vecworks is available through the PyPI repository and can be installed using pip:

pip install vecworks

Quickstart

Vecworks' key concept is that of the Retriever. A retriever is a specialised Pypeworks node that vectorizes inputs, allowing to cross-reference these inputs with data in a vector store. As nodes retrievers may be embedded in Pypeworks pipeworks, enabling various applications, including semantic text matching, document classification, and RAG (when combined with Langworks).

Assuming a vector store has been set-up on a PostgreSQL-database, a retriever may be instantiated as follows:

import vecworks

from vecworks.retrievers.pgvector import (
    pgvectorRetriever
)

from vecworks.vectorizers.sbert import (
    sbertVectorizer
)

match = pgvectorRetriever(

    url   = "postgresql://127.0.0.1:5432/rag-mini-wikipedia",
    # Populated using https://huggingface.co/datasets/rag-datasets/rag-mini-wikipedia

    authenticator = vecworks.auth.UsernameCredentials("username", "password"),

    table = '"text-corpus"',

    index = [

        vecworks.Index(

            name         = "passage-e5-ml-large-q",
            # Column derived from 'passage', populated with vectorized contents of 'passage'.

            bind         = "input",

            distance     = vecworks.DISTANCES.cosine,
            max_distance = 0.2,
            top_k        = 5,

            vectorizer   = sbertVectorizer.create_from_string(

                "intfloat/multilingual-e5-large",

                prompt_format = "query: "
                normalize     = True

            ),

            density      = vecworks.DENSITY.dense

        ),

    ],

    return_columns = ["passage", "id"]

    top_k       = 3

) 

Metadata

Release files for vecworks 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vecworks 0.1.1
File Size Uploaded Provenance Actions
vecworks-0.1.1.tar.gz 36.4 kB Without provenance Details for vecworks-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vecworks 0.1.1
File Interpreter ABI Platform Actions
vecworks-0.1.1-py3-none-any.whl Python 3 none any Details for vecworks-0.1.1-py3-none-any.whl

Total release size: 84.7 kB

Release files / vecworks-0.1.1.tar.gz

Download URL vecworks-0.1.1.tar.gz
Size 36.4 kB
Tags Source
SHA-256 checksum
How to use checksums
de976c86751e0e62baebf2c3a5af5589926da7f9a004790101cc39f872e226a6
BLAKE2b-256 checksum
How to use checksums
e0affa622baed372383c2616603d4e337684060ccad1f59191faedfff4ec225a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release files / vecworks-0.1.1-py3-none-any.whl

Download URL vecworks-0.1.1-py3-none-any.whl
Size 48.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc6cf1107082873f02825d73cc8caba9b59691559dfe03bcebc28497ffcc6ce4
BLAKE2b-256 checksum
How to use checksums
b293e1fe62b1476c1f8d5f758b5be42c30d6f033bac01f76265446820bf6d945
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Security for vecworks 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page