Skip to main content

Vector search example notebooks

The examples in this section demonstrate usage of the vector search Python SDK. For reference information, see the Python SDK reference.

LangChain examples

See How to use LangChain with Mosaic AI Vector Search for using Mosaic AI Vector Search as in integration with LangChain packages.

The following notebook shows how to convert your similarity search results to LangChain documents.

Vector search with the Python SDK notebook

Open notebook in new tab

Notebook examples for calling an embeddings model

The following notebooks demonstrate how to configure a Mosaic AI Model Serving endpoint for embeddings generation.

Call an OpenAI embeddings model using Mosaic AI Model Serving notebook

Open notebook in new tab

Call a GTE embeddings model using Mosaic AI Model Serving notebook

Open notebook in new tab

Register and serve an OSS embedding model notebook

Open notebook in new tab

Use Vector Search with an OAuth token

The following notebook shows how to call a vector search endpoint using the vector search SDK or HTTP with a fresh OAuth token.

Use Vector Search with an OAuth token notebook

Open notebook in new tab