Python
Sign in to follow topics
Featured
All Python Content
- Latest
- Highest Rated
Quickstart
Best Practices for Using Flask and MongoDB
Learn some of the best practices for using Flask and MongoDB so you can set yourself up for success.Sep 16, 2024
(+1)
Tutorial
Building an Advanced RAG System With Self-Querying Retrieval
In this tutorial, we will see how to build an advanced RAG system with self-query retrieval.Sep 12, 2024
(+1)
Article
Implementing Robust RAG Pipelines: Integrating Google's Gemma 2 (2B) Open Model, MongoDB, and LLM Evaluation Techniques
This tutorial explores building a retrieval-augmented generation (RAG) pipeline by integrating Google’s Gemma 2 (2B) model, MongoDB, and LLM evaluation techniques. Gemma 2, a lightweight model with two billion parameters, is used for efficient response generation, while MongoDB acts as the vector database, enabling semantic search for relevant documents. The tutorial demonstrates how to create an asset management assistant that analyzes market reports stored in MongoDB. It covers embedding generation, vector search, and the use of the DeepEval library to assess the relevance and faithfulness of LLM-generated responses. By combining these tools, the tutorial highlights an efficient approach to building AI-driven solutions with robust performance evaluation in a RAG pipeline.Sep 12, 2024
Tutorial
Build a RESTful API With Flask, MongoDB, and Python
Learn how I built a RESTful API for a collection of cocktail recipes. Although it's a small example, it covers important factors like data validation and pagination.Sep 11, 2024
Article
3 Underused MongoDB Features
This article is about three features of MongoDB that deserve to be better known: TTL Indexes, Capped Collections, and Change Streams.Sep 11, 2024
Quickstart
Introduction to Multi-Document ACID Transactions in Python
With multi-document ACID transactions, we wrap a set of database operations inside a start and commit transaction call so the external view meets constraints.Sep 11, 2024
Tutorial
Build a Property Booking Website with Starlette, MongoDB, and Twilio
Learn how to build a property booking website in Python with Starlette, MongoDB, and Twilio.Sep 09, 2024