Article body
Full article
Enterprise natural-language analytics needs to understand an organization’s tables, terminology and metric definitions. Vector retrieval can find semantically relevant knowledge at scale. Whether it needs a separate vector service depends on the product release and query path. Start with the actual dependencies, then decide how much to invest in models, storage, networking and operations.
HENGSHI’s 6.3 documentation describes a vector deployment with an embedding service and a separate database. HENGSHI SENSE 7.0 Data Agent can be enabled without the legacy vector service and vectorization entry point. Treat the releases separately. Evaluate retrieval as one part of the analysis path by checking whether it finds relevant knowledge, respects access and supports correct metric calculations.
1. Define what you are deploying
HENGSHI natural-language analytics uses data resources, model relationships, business metrics and permissions. Vector similarity can produce candidates. Business owners determine whether revenue includes tax, and platform authorization controls access.
| Goal | Prepare | Avoid |
|---|---|---|
| Maintain a HENGSHI 6.x environment using the legacy vector path | Release-matched embedding service, separate database, model files and connection settings | Mixing deployment bundles, extensions and models from different releases |
| Deploy HENGSHI SENSE 7.0 Data Agent | Compatible runtime and OpenSandbox service, a Responses model configuration, authorization and data preparation | Treating the old vector service as a fixed prerequisite |
| Build a separate document RAG system | Document governance, chunking, embedding, retrieval, permissions and evaluation | Assuming an external knowledge base automatically connects to BI metrics and data permissions |
SENSE 7.0 supports queries and operations through a unified server-side conversation capability. Business definitions can live in dataset knowledge and runtime skills. Confirm the release and analytics goal before buying or maintaining additional components.
2. What the two legacy components do
2.1 The embedding service encodes text as comparable vectors
HENGSHI 6.3 deployment materials include vector-serve with a text embedding interface at /v1/embeddings. They use intfloat/multilingual-e5-base and describe how to prepare an offline model bundle.
The model converts field descriptions, business terms and questions into vectors for relevance comparison. Successful encoding says little about whether the source knowledge is correct. If the text equates order-item count with order count, the service faithfully encodes that mistake.
2.2 The database stores index data and supports retrieval
In the older architecture, vector-postgres or vectorize-pg handles database work. Deployment scripts prepare the relevant extension. This separately maintained service needs its matching configuration. A generic PostgreSQL instance or arbitrary vector image is not an equivalent substitute.
Separating the services makes computation and storage easier to monitor. Slow batch encoding starts with the embedding service, and database connection errors start with the address, authentication and network. Model, output dimensions, extension, index data and application version still have to work together.
2.3 A model change usually affects existing embeddings
Matching dimensions is a minimum requirement. Retrieval also depends on a compatible vector space. Two 768-dimensional models may produce incompatible query and document embeddings.
For a custom system, evaluate re-embedding after changing the model, preprocessing, chunking or normalization. Prepare and validate a new index for quality and access before switching reads. Keep the old index through the rollback window. Use the supported delivery path for model changes in existing HENGSHI environments.
3. Evaluate models on business questions
Model cards describe dimensions, language coverage and input limits. Latency, throughput and memory depend on hardware, batching, input length, precision and concurrency. Latencies such as 50 or 80 milliseconds from unmatched environments cannot support capacity planning.
| Candidate | Verifiable characteristics | What to test |
|---|---|---|
| intfloat/multilingual-e5-base | 768 dimensions, multilingual, listed in HENGSHI 6.3 materials | Chinese and English terminology, query and document prefixes, and recall quality |
| BAAI/bge-large-zh-v1.5 | 1,024 dimensions, designed for Chinese embeddings | Domain terminology, truncation of long descriptions, hardware and interface compatibility |
| Other local or managed embeddings | Model, dimensions, protocol and deployment depend on the choice | Data flows, authorization, quality, cost and migration effort |
The table suggests evaluation priorities. Integration certification depends on the actual HENGSHI configuration and supported model.
E5 calls for query: and passage: prefixes for retrieval, including non-English inputs. Check whether a serving wrapper already applies them. Missing or duplicate prefixes can affect results even with the same model.
A representative evaluation set covers synonyms, shared terms with different meanings, acronyms, codes, cross-language queries, expired entries and questions without answers. Check whether transaction value and GMV find the same valid definition, and whether net revenue and tax-inclusive sales stay distinct.
4. Size storage and indexes, then measure
A single-precision pgvector vector takes 4 × dimensions + 8 bytes. For 100,000 embeddings, 768 dimensions take about 294 MiB and 1,536 take about 587 MiB for the vectors alone. Add source text, metadata, tables, indexes, WAL, backups and replicas.
Lower dimensions can save vector storage. Measure actual tables, indexes and queries to learn total storage and latency. Make room for both indexes during a migration.
pgvector supports exact and approximate search. HNSW typically costs more build time and memory. IVFFlat tuning depends on data volume and query parameters. Filters can affect candidates returned by approximate search, so test under real tenant and permission scopes.
These are generic pgvector engineering considerations. Use the documentation for the deployed HENGSHI release to check extensions, indexes and settings before changing any platform-managed tables.
5. Check deployment and data flows for a private installation
5.1 Maintain the legacy stack through its documented entry point
HENGSHI 6.3 deployment separates packages from data. The package contains scripts, orchestration, a version manifest and offline resources. Configuration, model files and database data are persisted separately. Keep those assets when upgrading so replacing the deployment directory does not remove them.
Use deploy.sh for the versioned deployment package to check the environment, status and logs.
./deploy.sh -m check
./deploy.sh -m status
./deploy.sh -m logs
Prepare images, model files and Docker and Compose installation artifacts before deploying offline. Check effective configuration and startup logs for service ports, which can change due to conflicts.
5.2 Test from the HENGSHI service’s network
Access from an operator’s laptop does not prove that an application container can reach the service. Check the embedding interface from the main HENGSHI host or container’s network path, then test the database connection and the full query path.
This connectivity check applies to the old vector stack. Replace the example with the deployed embedding endpoint and use nonsensitive test text.
VECTOR_ENDPOINT='http://vector-serve.internal:3000/v1/embeddings'
curl --fail-with-body "$VECTOR_ENDPOINT" \
-H 'Content-Type: application/json' \
-d '{"input":["Connectivity check text"],"model":"intfloat/multilingual-e5-base"}' \
| jq '{model, count: (.data | length), dimensions: (.data[0].embedding | length)}'
This verifies response shape, result count and dimensions. Continue with known-answer questions to test database writes, retrieval quality and end-to-end analytics.
5.3 Trace the entire request path for on-premises operation
For data that must remain inside the enterprise network, inventory generation and embedding models, object storage, logs, images and model updates as well as the database. Prompts, table names, field descriptions and error logs can contain sensitive information.
HENGSHI supports private deployment. Check where model requests actually go, how services connect, which outbound destinations are allowed and how a business request traverses the system. A local vector database establishes only one part of that path.
6. Operate for content updates, quality and recovery
6.1 Give knowledge changes an effective date
Field renames, metric changes and permission changes should be reflected in retrieval. Keep the source, scope, update time and owner of each knowledge item. In indexed systems, record the embedding and preprocessing versions.
Balance correctness and availability. Large changes can use alternating collections. Small changes can use controlled increments. Prove that searches read the intended knowledge version and that expired material no longer guides answers.
6.2 Monitor infrastructure and business outcomes
| Area | Evidence to record | Question it answers |
|---|---|---|
| Embedding service | Request volume, errors, queues, P95 and CPU/GPU and memory use | Is encoding the bottleneck? |
| Database and retrieval | Connection waits, query times, candidate counts, disk and index size | Is there a connection, query or capacity issue? |
| Knowledge updates | Failed updates, backlog, last successful update and expired entries | Is the knowledge behind the business? |
| Business evaluation | Correct candidates, incorrect definitions selected and no-answer cases | Does relevance lead to correct analysis? |
| Permission checks | Visibility by identity, denials and behavior after grants change | Does access stay inside the authorized scope? |
Top-K retrieval accuracy needs a human-verified reference set. End-to-end accuracy also depends on metric selection, querying and explanation. Record these separately to see where to improve.
6.3 Recover the full system
Keep the database, model files, effective configuration, extension and image versions and authoritative knowledge or its source. Embeddings without their model and processing rules can be incompatible with future updates.
Rehearse in an isolated environment. Start the services, retrieve the expected knowledge for known questions, check access under different identities and confirm rebuild times meet business needs. Data volume, hardware and migration strategy determine downtime and duration.
7. Test the new serving path when upgrading to HENGSHI 7.0
SENSE 7.0 Data Agent uses a server-side runtime and OpenSandbox, with models connected through the Responses API. Deployment materials call for matching runtime images, network conditions and session configuration. The main service can remain on its existing VM. The sandbox can run on the same host, a separate Linux host or Kubernetes as appropriate.
Use existing infrastructure where it fits. Accept the new release by exercising its actual model calls, tool execution, permissions, chart delivery and session continuity.
Review existing prompts, workflows and business rules before upgrading. Move still-valid knowledge into dataset descriptions or runtime skills and check them against representative questions. Audit dependencies, backups and rollback before retiring legacy databases or infrastructure.
HENGSHI connects data preparation, metric semantics, authorization, natural-language analytics and operations. The vector store is one possible component. Acceptance should show that users can consistently get verifiable and reusable answers within their authorized scope.
About HENGSHI
Founded in 2016, HENGSHI Technology develops Agentic BI for the Data+AI era. Its enterprise analytics platform, HENGSHI SENSE, works with the HENGSHI JARVIS Digital Employee, HENGSHI CLI execution engine and HENGSHI BOX for private deployment. Drawing on a decade of BI experience and the Powered by Hengshi ecosystem, HENGSHI helps software vendors and enterprise groups in manufacturing, finance, retail and government deploy trusted AI analytics in their own environments and use them for business decisions.