Bindex Core
Introduction
Bindex Core provides the core services for Bindex metadata management in the MachAI ecosystem. It combines structured metadata storage, semantic recommendation, schema-based classification, and AI function-tool integration so projects and assistants can discover reusable libraries, inspect their metadata, and register new library descriptors from local workspaces.
The module is designed to make library reuse more reliable and automation-friendly. Instead of relying only on informal descriptions, it works with schema-compliant metadata documents, persists them in a shared repository, enriches them with embedding vectors, and exposes lookup and recommendation capabilities through callable tools. This helps teams standardize library discovery, improve recommendation quality, and support higher-level implementation workflows driven by Ghostwriter and related tooling.
Overview
Bindex Core supports a metadata-driven workflow for discovering, registering, and reusing software libraries:
- Repository access manages MongoDB connectivity and stores serialized metadata records together with searchable fields.
- Semantic picking converts natural-language requests into structured classifications, generates embeddings, and performs vector search with language and architectural-layer filtering.
- Tool integration exposes retrieval, schema inspection, recommendation, and registration operations as callable AI tools.
- Workflow templates provide reusable prompts for library selection, metadata generation, and assembly-oriented implementation flows.
Architecture

The architecture is organized around a small set of collaborating responsibilities.
- A repository layer handles database connections and direct metadata persistence and retrieval.
- A semantic selection layer interprets user requests, generates embeddings from classification data, and queries the shared repository for relevant libraries.
- A tool layer bridges these capabilities into AI-assisted workflows by registering callable operations for lookup, schema access, recommendation, and local metadata registration.
- Supporting resources define the metadata schema and workflow templates that guide discovery and implementation tasks.
Together, these parts allow a user request to move from natural-language intent to structured library recommendations backed by stored metadata.
Key Features
- Persist Bindex metadata as serialized JSON documents in MongoDB.
- Resolve repository access through configurable connection settings, including registration-capable access.
- Generate embeddings from classification metadata for semantic library search.
- Classify natural-language requests into schema-aligned metadata criteria.
- Filter recommendations by programming language and architectural layer.
- Expose metadata lookup, schema retrieval, recommendation, and registration as AI function tools.
- Register local
bindex.jsonfiles from the working directory into the shared repository. - Provide reusable workflow acts for discovery, metadata authoring, and project assembly.
How to use
This library is included in Ghostwriter CLI as default.
If you use gw-maven-plugin, you need to add this library by the dependency, e.g:
<plugin>
<groupId>org.machanism.machai</groupId>
<artifactId>gw-maven-plugin</artifactId>
<version>1.1.1</version>
...
<dependencies>
<dependency>
<groupId>org.machanism.machai</groupId>
<artifactId>bindex-core</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
</plugin>
After adding the dependency, Bindex Core can be used in Ghostwriter-driven workflows to:
- retrieve a registered metadata document by Bindex identifier,
- load the bundled Bindex schema,
- request semantic library recommendations from a natural-language prompt,
- register a local
bindex.jsonfile into the shared repository.
Acts
assembly
Use this act when the goal is to implement a user request by assembling a solution with recommended libraries. It is intended for end-to-end development workflows where the assistant should discover libraries, inspect their metadata, update the project, build it, and iterate until the requested behavior is implemented.
bindex
Use this act when creating or updating a bindex.json file for a project or library. It is best suited for metadata-authoring workflows where the assistant analyzes source code and documentation, generates schema-compliant metadata, includes practical examples, and can register the file when it exists in the project root.
pick
Use this act when the task is to recommend suitable libraries for a requirement without implementing the solution itself. It is ideal for discovery workflows where the assistant should request recommendations, review the returned metadata summaries, and present relevant options to the user.
Configuration
| Parameter | Description | Default value |
|---|---|---|
BINDEX_REPO_URL |
MongoDB connection URI for the shared Bindex repository. | mongodb+srv://cluster0.hivfnpr.mongodb.net/?appName=Cluster0 |
BINDEX_REG_PASSWORD |
Password that enables registration-capable repository access. | unset |
pick.model |
GenAI model used for classification and recommendation workflows. | CodeMie:gpt-5.4-2026-03-05 |
pick.score |
Minimum similarity threshold for semantic recommendation results. | 0.86 |
gw.model |
GenAI model used by Bindex-related workflow tools. | CodeMie:gpt-5.4-2026-03-05 |
embedding.model |
Embedding model used for semantic indexing and search. | text-embedding-005 |
gw.interactive |
Enables interactive execution for applicable acts. | true |
gw.nonRecursive |
Limits processing to the current project scope for applicable acts. | true |
gw.scanDir |
Scan scope used by the metadata-generation workflow. | glob:. |

