Giter VIP home page Giter VIP logo

server's Introduction

Mixpeek Logo

Sign Up | Documentation | Email List | Slack

Github stars GitHub issues Join Slack

real-time multi-modal vector embedding pipeline. set and forget.

Overview

NUX automatically listens in on database changes, processes your files, and generates embeddings to send right back into your database.

It removes the need of setting up architecture to track database changes, extracting content, processing and embedding it. This stuff doesn't move the needle in your business, so why focus on it?

Integrations

Services Architecture

NUX is structured into four main services, each designed to handle a specific part of the process:

  • API (Orchestrator): Coordinates the flow between services, ensuring smooth operation and handling failures gracefully.
  • Listener: Monitors the database for specified changes, triggering the process when changes are detected.
  • Parser: Loads and parses the changed files, preparing them for processing (supports image, video audio and text)
  • Embedder: Processes the parsed data, generating embeddings that can then be integrated back into the database.

These services are containerized and can be deployed on separate servers for optimal performance and scalability.

Getting Started

Installation

Clone the NUX repository and navigate to the SDK directory:

git clone [email protected]:nux-ai/server.git
cd server

First, build the Docker image:

docker build -t my-app .

Then, run the application using Docker Compose:

docker-compose up

Configuration and Usage

Configure each service with your environment's specifics. Here's an illustrative setup:

# Listener Service Configuration

listen_settings = {
    "connection": {
        "engine": "mongodb",
        "dbname": "your_db_name",
        "user": "your_db_user",
        "password": "your_db_password",
        "host": "your_db_host",
        "port": 5432
    },
    "table_name": "my_table_name"
    "filters": {
        "status": "processing"
    },
    "embedding": {
        "model": "sentence-transformers/all-MiniLM-L6-v2",
        "field": "file_id"
    }
}

Now let's setup our listener

# the schema you'd like the insert to adhere to
class InsertSchema:
    file_id: str
    embedding: list
    contents: str

from nuxai import NUX

# add your internal key (or cloud if you're using our managed service)
nux = NUX("INTERNAL-API-KEY")

# add the db to your organization, it's encrypted don't worry
collection_id = nux.add_db(LISTENER_DB_CONFIG)

# now listen in on changes, that's it! 
listener_id = nux.listen(collection_id, listen_settings)f

We can even poll for status of our listener:

nux.listener.status(listener_id)

{'ACTIVE': True, 'PROCESSING': 0, 'READY': 0, 'ERROR': 0}

Are we missing anything?

server's People

Contributors

esteininger avatar goudete avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.