Package org.machanism.machai.bindex.core
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.
-
ClassDescriptionRepresents metadata information for a Bindex record, including its identifier, version, description, and relevance score.Repository interface for managing
Bindexrecords.MongoDB-backed repository for persisting and retrievingBindexdocuments.Performs Bindex registration, lookup, and semantic retrieval using embeddings and MongoDB.