/simple-vectors

Simple vector examples

Primary LanguageJupyter Notebook

About this project

This project is an attempt to improve my understanding of vector-based retrieval and semantic modelling of text via very simple examples.

Pre-requisites

To run this project you need:

  1. Some familiarity with Jupyter notebooks and the Python programming language
  2. Access to a MongoDB Atlas cluster

Data

I used data from these sources for my examples:

Usage

Connect to Atlas

To use the notebook you will need to set up a .env file in this directory to store the connection URL for your Atlas cluster in the MDB_URI variable. E.g. MDB_URI="mongodb+srv://<user>:<password>@<cluster id>.mongodb.net/<database>"

Read this tutorial for more information about connecting to MongoDB Atlas.

Create Atlas Search Index

Create a new search index on your database using the JSON editor and the index definition included in this project.