Package org.machanism.machai.bindex.core


package org.machanism.machai.bindex.core
Provides MongoDB-backed Bindex registration, persistence, retrieval, and semantic selection services.

The package is responsible for managing Bindex metadata records that describe projects, libraries, integrations, and their classifications. Bindex records are stored in MongoDB as serialized JSON payloads together with searchable fields such as logical id, name, version, languages, layers, domains, integrations, and classification embeddings.

MongoBindexRepository provides direct repository-style access for reading, deleting, and locating registered Bindex records. It creates the MongoDB client from runtime configuration and exposes the underlying collection for callers that need lower-level operations.

Picker builds on the repository collection to register Bindex records and to recommend matching records for natural-language requirements. It uses configured GenAI providers to classify user requests, embedding providers to convert classifications into vector representations, and MongoDB vector search to retrieve relevant Bindex entries above a configurable score threshold.

Related subpackages expose these capabilities to AI tool-calling workflows, allowing supported GenAI integrations to fetch Bindex metadata, pick libraries, and register new Bindex definitions from files or JSON objects.

  • Class
    Description
    Represents metadata information for a Bindex record, including its identifier, version, description, and relevance score.
    Repository interface for managing Bindex records.
    MongoDB-backed repository for persisting and retrieving Bindex documents.
    Performs Bindex registration, lookup, and semantic retrieval using embeddings and MongoDB.