Skip to main content

🏛️ Nexus Enterprise AI (veloxs-nexus)

PyPI Version Python Versions License: Proprietary Vector Dimension Concurrency

A high-performance, headless, layered data intelligence, format-aware chunking, PII sanitization, and 3072-dimensional vector projection engine for enterprise AI applications.


📦 Installation

# Standard in-memory installation
pip install veloxs-nexus

# With PostgreSQL + pgvector support
pip install veloxs-nexus[postgres]

# With YAML configuration support
pip install veloxs-nexus[yaml]

⚡ Quick Start (import nexus)

import nexus

# 1. Initialize client in pure in-memory mode (zero disk I/O, serverless safe)
client = nexus.NexusClient(tenant_id="org-acme", in_memory_only=True)

# 2. Process tabular CSV, JSON, Markdown, or Text into 3072D vectors + PII-masked chunks
doc = client.process_document(
    document_id="doc-001",
    name="department_budgets.csv",
    text="""department,quarter,budget_usd,status
Engineering,Q3 2025,1250000,Completed
Security,Q3 2025,350000,Completed""",
    file_type="csv"
)

print(f"Total chunks: {len(doc.chunks)}")
print(f"First chunk text: {doc.chunks[0].text}")
print(f"Is Tabular: {doc.chunks[0].metadata['is_tabular']}")
print(f"Embedding length: {len(doc.chunks[0].embedding)}")  # 3072 normalized floats

# 3. Ingest and execute fail-closed grounded guardrail Q&A
client.index_document(doc)
response = client.ask("What is the engineering budget?")
print(f"Decision: {response.decision}")
print(f"Answer: {response.answer}")

🏛️ Modular Sub-Layer Architecture

veloxs-nexus exports 7 decoupled sub-layers under the nexus.* namespace:

Submodule Purpose & Capabilities Example Import
nexus.client Top-level in-memory orchestrator from nexus import NexusClient
nexus.processing Format-aware chunking (CSV, JSON, Markdown) & FPE PAN tokenizers from nexus.processing.engine import ProcessingEngine
nexus.retrieval 3072D multi-gram embedding, hybrid RRF search, and knowledge graph from nexus.retrieval.engine import RetrievalEngine
nexus.guardrails Luhn credit card & PII masking, prompt injection defense, grounded RAG from nexus.guardrails.engine import GuardrailsEngine
nexus.security Multi-tenant RBAC, Fernet symmetric encryption & HKDF dynamic salting from nexus.security.encryption import encrypt_text
nexus.experience REST API service, assistant sessions, channel adapters from nexus.experience.service import ExperienceService
nexus.pipeline Batch file ingestion, API connectors, and CDC change data capture from nexus.pipeline.batch import run_batch_job
nexus.observability Distributed trace spans, latency metrics, and error alerting from nexus.observability.service import ObservabilityService
nexus.database PostgreSQL pgvector DDL schema and SQLAlchemy column types from nexus.database import PGVECTOR_DDL_SCHEMA

🗄️ PostgreSQL + pgvector Schema

For production database persistence, use the provided schema:

CREATE EXTENSION IF NOT EXISTS vector;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

CREATE TABLE knowledge_documents (
    document_id         VARCHAR(128) PRIMARY KEY,
    name                VARCHAR(255) NOT NULL,
    file_type           VARCHAR(32) NOT NULL,
    file_size_bytes     BIGINT NOT NULL,
    content_hash        VARCHAR(64) NOT NULL,
    classification      VARCHAR(64) DEFAULT 'general',
    created_at          TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
    updated_at          TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE knowledge_chunks (
    chunk_id            VARCHAR(128) PRIMARY KEY,
    document_id         VARCHAR(128) NOT NULL REFERENCES knowledge_documents(document_id) ON DELETE CASCADE,
    source_job          VARCHAR(64) NOT NULL,
    chunk_index         INTEGER NOT NULL,
    chunk_text          TEXT NOT NULL,
    metadata            JSONB DEFAULT '{}'::jsonb,
    embedding           VECTOR(3072) NOT NULL,
    created_at          TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);

CREATE INDEX idx_knowledge_chunks_embedding_hnsw 
ON knowledge_chunks 
USING hnsw (embedding vector_cosine_ops)
WITH (m = 16, ef_construction = 64);

🔐 Multi-Tenant Cryptographic Isolation

Each tenant's encryption and tokenization uses dynamic salt derivation: 38524\text{salt} = \text{HKDF-SHA256}(\text{"nexus-salt-"} \parallel \text{tenant_id} \parallel \text{"-"} \parallel \text{key_id})38524

This guarantees that two different tenants processing the same sensitive data produce cryptographically distinct ciphertexts.


📄 License

Proprietary and confidential software. Copyright © 2026 Veloxs AI Inc. All rights reserved. See LICENSE for license terms.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veloxs_nexus-2.3.0.tar.gz (58.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veloxs_nexus-2.3.0-py3-none-any.whl (102.9 kB view details)

Uploaded Python 3

File details

Details for the file veloxs_nexus-2.3.0.tar.gz.

File metadata

  • Download URL: veloxs_nexus-2.3.0.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for veloxs_nexus-2.3.0.tar.gz
Algorithm Hash digest
SHA256 99c7f76e59333fa5d8fee2de81484e383a4388c4c23cdcead1f161a0c14e6d51
MD5 af3c3f70e38c3284b9133718fff2a40e
BLAKE2b-256 56c7ad660ae73374973f63541739df6d75d21bebd88844c78aac4ed1cf214e6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for veloxs_nexus-2.3.0.tar.gz:

Publisher: publish.yml on Veloxs-ai/nexus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file veloxs_nexus-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: veloxs_nexus-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 102.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for veloxs_nexus-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68b50b34666957d9669a1220437b017751d3a913484209ce2359e79a9a42d6a2
MD5 8bcf06ebacc19dc28fb07a5ffea83452
BLAKE2b-256 3f152e8a796fff48d1a24fda6e307a9ff82b28122d3af2b011ede53cc9e2e4dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for veloxs_nexus-2.3.0-py3-none-any.whl:

Publisher: publish.yml on Veloxs-ai/nexus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

3.0.0

2 files

2.4.0

2 files

This release

2.3.0 This release

2 files

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