Ricardo Mello4 articles
Table of Contents Adding filters: From story to codeFirst try: Add a post-filter in MovieServiceSecond try: Use a pre-filterRefining the search with extra filtersApplying toCriteria() in the searchReducing embedding costs with cachingStrategy with @CacheableA minimal frontendStep 1: HTMLStep 2: JavaScriptStep …
-
Beyond Keywords: Implementing Semantic Search in Java With Spring Data (Part 1)
Table of Contents The magic behind vector searchPrerequisitesEmbeddings with Voyage AIPreparing the datasetMongoDB Atlas Vector Search (index and retrieval)Building the movie search appConfiguring the applicationThe document modelWire the request DTOCommunicating with Voyage AIThe EmbeddingServiceQuerying with Spring Data Vector Search operationThe …
-
Queryable Encryption With Spring Data MongoDB: How to Query Encrypted Fields
Table of Contents Why Queryable Encryption?A quick look at Spring Data MongoDBUse case: HR system with encrypted fieldsSetting up the projectConfiguring dependencies and propertiesAdding mongodb-cryptApplication.yml configurationAccessing properties in the codeBuilding the application layersThe domain modelThe repositoryThe serviceThe controllerSetting up encryptionConfiguring …
-
Why Mirroring Production in Dev Helps You Avoid Costly Mistakes
Table of Contents The setup: A realistic aggregation scenarioThe application behind the testTesting on M0: The hidden riskTaking it to production: Same query, different outcomeReal-time metrics: Detecting the bottleneckQuery insights: The detective toolDon’t guess, let Performance Advisor show the wayResilience …