MangoDB error in RAG tutorial

I am trying to reproduce RAG tutorial (https://docs.langchain.com/oss/javascript/langchain/get-help) in Colab but it is throwing following error.

@JayKayNJIT You need to define the variable `MONGODB_COLLECTION` first.

from pymongo import MongoClient
from langchain_mongodb import MongoDBAtlasVectorSearch

MongoDB connection

MONGODB_URI = “your_mongodb_connection_string”
client = MongoClient(MONGODB_URI)

Database and collection

db = client[“your_database_name”]
collection = db[“your_collection_name”]

Vector index name created in MongoDB Atlas

ATLAS_VECTOR_SEARCH_INDEX_NAME = “vector_index”

Create vector store

vector_store = MongoDBAtlasVectorSearch(
embedding=embeddings,
collection=collection,
index_name=ATLAS_VECTOR_SEARCH_INDEX_NAME,
relevance_score_fn=“cosine”,
)