Tim Kelly5 articles
Table of Contents What are MongoDB ACID transactions and when should you use them?But do you really need a transaction?Transaction APIs: Callback vs coreWhen to use the callback APIWhen to use the core APISetting up: A simple banking examplePrerequisitesConnecting and …
-
How to Make a RAG Application With LangChain4j
Table of Contents Why use RAG?Use cases for RAGLangChain4J for RAGMongoDB for RAGPrerequisitesOur dependenciesSetting up MongoDB and our embedding storeMongoDB setupConfiguring the embedding storeCreating our embedding modelConfiguring our chat modelHow to load our dataParametersCreating our content retrieverAsking questionsConclusion Retrieval-augmented generation, …
- Tim Kelly
-
Your Complete Guide to Diagnose Slow Queries in MongoDB
Table of Contents 1. MongoDB’s Query ProfilerWhat we’ll needWhat is MongoDB’s Profiler?MongoDB Atlas Query Profiler in the Atlas UIA few important considerationsMongoDB Database ProfilerLet’s make something slow on purpose2. Understanding execution plans with explain()What we’ll needWhat is explain()?Verbosity modesLet’s use …
- Tim Kelly
-
Understanding BSON: A Beginner’s Guide to MongoDB’s Data Format
Table of Contents What is BSON?Why not just JSON?BSON vs. JSONCommon BSON data types (and their Java equivalents)BSON and MongoDB internalsSetup and project structureBSON data types and document creationNested fields and arraysWhy use nested structures?Raw BSON manipulationQuerying with BSONAggregation with …
- Tim Kelly
-
Building a Real-Time AI Fraud Detection System with Spring Kafka and MongoDB
Table of Contents What we are buildingPrerequisitesCreate our MongoDB databaseCreate a Vector Search indexCreate a Spring applicationSetting up configurationMongoDB configurationSpring AI configurationKafka configurationGenerate our synthetic customer profilesThe customer modelCustomer seedingHow the sample customers are structuredThe transaction modelGenerating random transactionsHow do …