Spaces:
Running
Running
Update custom_utils.py
Browse files- custom_utils.py +1 -1
custom_utils.py
CHANGED
@@ -11,7 +11,7 @@ from pymongo.mongo_client import MongoClient
|
|
11 |
DB_NAME = "airbnb_dataset"
|
12 |
COLLECTION_NAME = "listings_reviews"
|
13 |
|
14 |
-
def rag_ingestion():
|
15 |
dataset = load_dataset("MongoDB/airbnb_embeddings", streaming=True, split="train")
|
16 |
dataset_df = pd.DataFrame(dataset)
|
17 |
listings = process_records(dataset_df)
|
|
|
11 |
DB_NAME = "airbnb_dataset"
|
12 |
COLLECTION_NAME = "listings_reviews"
|
13 |
|
14 |
+
def rag_ingestion(collection):
|
15 |
dataset = load_dataset("MongoDB/airbnb_embeddings", streaming=True, split="train")
|
16 |
dataset_df = pd.DataFrame(dataset)
|
17 |
listings = process_records(dataset_df)
|