Skip to main content

Model-agnostic semantic embedding enrichment framework

Project description

🧠 NeuroEmbed

NeuroEmbed is a model-agnostic semantic embedding enrichment framework.

It does not replace embedding models.
Instead, it modulates embeddings using semantic context, producing controlled directional shifts in vector space while preserving dimensionality and normalization.

Designed for:

  • RAG systems
  • Conversational memory
  • Knowledge-aware retrieval
  • Agent architectures
  • Local / offline-first AI systems

⭐ Why NeuroEmbed Exists

NeuroEmbed was built to explore context-aware vector representations in a simple, testable, and model-independent way — without hype or overengineering. If you work on RAG, memory systems, or agent architectures, NeuroEmbed is designed to be a clean building block you can trust.

❌ What NeuroEmbed Is NOT

  • Not a vector database
  • Not a retriever
  • Not a model replacement
  • Not a “state-of-the-art accuracy” claim

NeuroEmbed is a semantic modulation layer, designed to integrate cleanly into existing systems.

🏗️ Architecture Overview

Text Input
   │
   ▼
[ Base Encoder ]
   │
   ▼
Base Embedding  ──────────────┐
                              │
Context Texts ─▶ Encoder ─▶ Context Mean
                              │
                              ▼
                  Context Injector (α)
                              │
                              ▼
                   Enriched Embedding

GitHub: https://github.com/Umeshkumar667/NeuroEmbed

🚀 Installation

Standard install (recommended)

pip install neuroembed

⚡ Quick Start

from neuroembed.core import NeuroEmbed
from neuroembed.encoders.sentence_transformer import SentenceTransformerEncoder

# Initialize encoder (replaceable)
encoder = SentenceTransformerEncoder()

# Initialize NeuroEmbed
ne = NeuroEmbed(encoder=encoder, alpha=0.6)

# Input text
query = "bank interest rate"

# Optional semantic context
context = [
    "RBI monetary policy",
    "repo rate",
    "inflation control"
]

# Generate enriched embedding
embedding = ne.embed(query, context)

print("Embedding shape:", embedding.shape)
print("Embedding norm:", (embedding @ embedding) ** 0.5)

embedding = ne.embed("hello world")

base = encoder.encode(["bank interest rate"])[0]
enriched = ne.embed("bank interest rate", context)

print("Cosine similarity:", base @ enriched)

Project details


Download files

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

Source Distribution

neuroembed-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

neuroembed-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file neuroembed-0.1.1.tar.gz.

File metadata

  • Download URL: neuroembed-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for neuroembed-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6f1547021b8ffe42c0d33d7f660e726d696083dc7262d9d339bc839085b1b7c0
MD5 7507476aaf6efe0ac9dd75b9396d23c8
BLAKE2b-256 352c776d37ea970de8976dbfb2daf11e6e06e019afa8f1f97dccb2b73b6cf5d8

See more details on using hashes here.

File details

Details for the file neuroembed-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: neuroembed-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for neuroembed-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77b50d9522509789a7cc406675059a6266d0ce086e891978b08656353afd31bf
MD5 f3581cd0f6854e9bb0e111baa901b5e4
BLAKE2b-256 7e9f8baae424d4180b25ecb2c67d5c81918b2dfd247e89ac889a74f86016abaa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page