Explore Developer Center's New Chatbot! MongoDB AI Chatbot can be accessed at the top of your navigation to answer all your MongoDB questions.

Join us at AWS re:Invent 2024! Learn how to use MongoDB for AI use cases.
MongoDB Developer
MongoDB Developer Centerchevron-right
Developer Topicschevron-right

Python

plus Follow
Sign in to follow topics
A high-level, interpreted programming language and it is used for general purpose. Python is one of the most popular languages for data-intensive tasks and data science because of its rich library support for statistics, machine learning, and AI-related tasks.

Featured

Tutorial

Building Generative AI Applications Using MongoDB: Harnessing the Power of Atlas Vector Search and Open Source Models

Learn how to build generative AI (GenAI) applications by harnessing the power of MongoDB Atlas and Vector Search....
MongoDB thumbnail image
AIVector SearchPythonAtlas

Sep 18, 2024 | 10 min read
Prakul Agarwal
Article

Building a Flask and MongoDB App with Azure Container Apps

MongoDB thumbnail image

Apr 02, 2024 | 8 min read
Video

Build an AWS Lambda Serverless function with PyMongo & MongoDB

MongoDB thumbnail image
Play Button

Sep 25, 2023 | 20 min
Python Articles
All Python Articles
Article

Comparing NLP Techniques for Scalable Product Search

MongoDB thumbnail image

Sep 23, 2024 | 8 min read
Article

Using SuperDuperDB to Accelerate AI Development on MongoDB Atlas Vector Search

MongoDB thumbnail image

Sep 18, 2024 | 6 min read
Article

Multi-agent Systems With AutoGen and MongoDB

MongoDB thumbnail image

Sep 18, 2024 | 10 min read
All Python Articles
Python Quickstarts
All Python Quickstarts
Quickstart

Building RAG Pipelines With Haystack and MongoDB Atlas

MongoDB thumbnail image

Sep 18, 2024 | 4 min read
Quickstart

Best Practices for Using Flask and MongoDB

MongoDB thumbnail image

Sep 16, 2024 | 5 min read
Quickstart

Building AI and RAG Apps With MongoDB, Anyscale and PyMongo

MongoDB thumbnail image

Jul 17, 2024 | 7 min read
Python Code Examples
All Python Code Examples
Code Example

A Spotify Song and Playlist Recommendation Engine

MongoDB thumbnail image

Nov 13, 2023 | 6 min read
Code Example

Example Application for Dog Care Providers (DCP)

MongoDB thumbnail image

Jul 12, 2024 | 3 min read
Code Example

GroupUs

MongoDB thumbnail image

Jul 07, 2022 | 1 min read
Python Tutorials
All Python Tutorials
Tutorial

Trader Joe's Fall Faves Party Planner With Playwright, LlamaIndex, and MongoDB Atlas Vector Search

MongoDB thumbnail image

Nov 12, 2024 | 11 min read
Tutorial

How to Choose the Best Embedding Model for Your LLM Application

MongoDB thumbnail image

Nov 07, 2024 | 16 min read
Tutorial

Simplify Semantic Search With LangChain and MongoDB

MongoDB thumbnail image

Oct 28, 2024 | 4 min read
Python Videos
All Python Videos
Video

Sip, Swig, and Search with Playwright, OpenAI and MongoDB Atlas Search

MongoDB thumbnail image
Play Button

Oct 28, 2024 | 36 min
Video

An Interview With Beanie's Roman Right

MongoDB thumbnail image
Play Button

Sep 05, 2024 | 58 min
Video

Building AI Services with FastAPI & Bedrock

MongoDB thumbnail image
Play Button

Aug 15, 2024 | 58 min
All Python Content
search
  • Latest
  • Highest Rated
Tutorial

Trader Joe's Fall Faves Party Planner With Playwright, LlamaIndex, and MongoDB Atlas Vector Search

ā€‹ā€‹In this tutorial, we create a Trader Joeā€™s AI party planner using Playwright to scrape our fall faves and the LlamaIndex/Atlas Vector Search integration to build a chatbot to answer questions about our items!
MongoDB thumbnail image

Nov 12, 2024
Anaiya Raisinghani
Tutorial

How to Choose the Best Embedding Model for Your LLM Application

In this tutorial, we will see why embeddings are important for RAG, and how to choose the best embedding model for your RAG application.
MongoDB thumbnail image

Nov 07, 2024
Apoorva Joshi
Tutorial

Simplify Semantic Search With LangChain and MongoDB

Dive into semantic search with our tutorial on integrating LangChain and MongoDB. Simplify loading, transforming, embedding, and storing data.
MongoDB thumbnail image

Oct 28, 2024
Brian Leonard
Video

Sip, Swig, and Search with Playwright, OpenAI and MongoDB Atlas Search

āœ… Atlas Search ā†’ https://mdb.link/DzDnm_cB-IAsearch āœ… Playwright ā†’ https://playwright.dev/ āœ… OpenAI's Structured Outputs ā†’ https://openai.com/index/introducing-structured-outputs-in-the-api/ āœ… MongoDB Developer Forum ā†’ https://mdb.link/DzDnm_cB-IA-forum - Join Developer Advocate Anaiya Raisinghani as she takes you through her tutorial finding the best fall drinks from Utah's most famous "dirty" soda chain, Swig! We will be using Playwright, OpenAI's Structured Outputs and MongoDB's Atlas Search to accomplish this goal.
MongoDB thumbnail image
Play Button

Oct 28, 2024
Article

Discover Latent Semantic Structure With Vector Clustering

Leverage the mathematical properties of a population of db AI-embedded vectors to extract potential novel business intelligence.
MongoDB thumbnail image

Oct 11, 2024
SK
Scott Kurowski
Tutorial

How to Use Cohere's Quantized Vectors to Build Cost-effective AI Apps With MongoDB

Learn how to build cost-effective AI apps using Cohere's quantized vectors and MongoDB Atlas. This tutorial covers vector quantization techniques, efficient embedding storage, and optimized vector search operations. Discover how to leverage BSON encoding and int8 quantization to significantly reduce storage requirements while maintaining search accuracy. Ideal for developers looking to scale their AI applications and optimize performance in production environments.
MongoDB thumbnail image

Oct 03, 2024
Richmond Alake (+1)
Tutorial

Optimizing for Relevance Using MongoDB Atlas and LlamaIndex

In this tutorial, we will learn how to perform full-text, vector, and hybrid searches using MongoDBā€™s LlamaIndex integration and explore ways to tune them to optimize for relevance.
MongoDB thumbnail image

Oct 02, 2024
Apoorva Joshi
Tutorial

Smart Filtering: A Guide to Generating Pre-filters for Semantic Search

Dive into what smart filtering is, how it works, and why it's essential for building better search experiences. Use metadata and vector search to deliver search results that truly match your intent.
MongoDB thumbnail image

Oct 02, 2024
Vipul Bhardwaj (+1)
Tutorial

Sip, Swig, and Search With Playwright, OpenAI, and MongoDB Atlas Search

In this tutorial, letā€™s figure out the best fall Utah ā€œdirtyā€ sodas from the soda chain Swig using Playwright, structured OpenAI outputs, and MongoDBā€™s Atlas Search.
MongoDB thumbnail image

Oct 01, 2024
Anaiya Raisinghani
Quickstart

Getting Started with Aggregation Pipelines in Python

Query, group, and join data in MongoDB using aggregation pipelines with Python.
MongoDB thumbnail image

Oct 01, 2024
Mark Smith