La sample_mflix la base de datos contiene datos sobre películas y cines. La base de datos también contiene colecciones para ciertos metadatos, incluidos usuarios y comentarios sobre películas específicas.
Para saber cómo cargar los datos de muestra proporcionados por Atlas en el clúster, consulta Cargar datos de muestra en Atlas.
Colecciones
La base de datos sample_mflix contiene las siguientes colecciones:
Nombre de colección | Descripción |
|---|---|
Contiene comentarios asociados con películas específicas. | |
Contiene detalles sobre películas de los géneros
| |
Contiene información sobre películas, incluidos el año de lanzamiento, el director y las revisiones. | |
Campo de metadatos. Contiene de los usuarios JSON Web Tokens. | |
Contiene las ubicaciones de los cines. | |
Contiene información de usuario. |
sample_mflix.comments
Esta colección contiene comentarios asociados con películas específicas. Cada documento contiene el texto del comentario, el usuario que lo envió y la película a la que se aplica el comentario.
Indexes
Esta colección contiene los siguientes índices:
Nombre | Index | Descripción |
|---|---|---|
|
| Índice de llave primaria en el campo |
Documento de muestra
{ "_id": { "$oid": "5a9427648b0beebeb69579cc" }, "name": "Andrea Le", "email": "andrea_le@fakegmail.com", "movie_id": { "$oid": "573a1390f29313caabcd418c" }, "text": "Rem officiis eaque repellendus amet eos doloribus. Porro dolor voluptatum voluptates neque culpa molestias. Voluptate unde nulla temporibus ullam.", "date": { "$date": { "$numberLong": "1332804016000" } } }
sample_mflix.embedded_movies
Esta colección contiene detalles sobre películas con genres de Western, Action o Fantasy. Cada documento contiene una sola película e información como su título, año de lanzamiento y reparto.
Además, los documentos de esta colección incluyen los siguientes campos:
plot_embedding_voyage_3_large- Contiene embeddings de 2048d creados a partir del campoplotutilizando el modelo de embeddingvoyage-3-largede Voyage IA y convertidos abinDatapara un almacenamiento y recuperación eficientes.plot_embedding- Contiene incrustaciones 1536d creadas a partir del campoplotutilizando el modelo de incrustacióntext-embedding-ada-002de OpenAI y convertido abinDatapara un almacenamiento y recuperación eficiente.
Indexes
Esta colección contiene los siguientes índices:
Nombre | Index | Descripción |
|---|---|---|
|
| Índice de llave primaria en el campo |
Documento de muestra
Nota
El número de dimensiones en la muestra ha sido truncado para mejorar la legibilidad.
{ "_id": { "$oid": "573a1396f29313caabce582d" }, "plot": "A young swordsman comes to Paris and faces villains, romance, adventure and intrigue with three Musketeer friends.", "genres": ["Action", "Adventure", "Comedy"], "runtime": { "$numberInt": "106" }, "rated": "PG", "cast": ["Oliver Reed", "Raquel Welch", "Richard Chamberlain", "Michael York"], "num_mflix_comments": { "$numberInt": "0" }, "poster": "https://m.media-amazon.com/images/M/MV5BODQwNmI0MDctYzA5Yy00NmJkLWIxNGMtYzgyMDBjMTU0N2IyXkEyXkFqcGdeQXVyMjI4MjA5MzA@._V1_SY1000_SX677_AL_.jpg", "title": "The Three Musketeers", "lastupdated": "2015-09-16 06:21:07.210000000", "languages": ["English"], "released": { "$date": { "$numberLong": "133747200000" } }, "directors": ["Richard Lester"], "writers": ["George MacDonald Fraser (screenplay)", "Alexandre Dumas père (novel)"], "awards": { "wins": { "$numberInt": "4" }, "nominations": { "$numberInt": "7" }, "text": "Won 1 Golden Globe. Another 3 wins & 7 nominations." }, "year": { "$numberInt": "1973" }, "imdb": { "rating": { "$numberDouble": "7.3" }, "votes": { "$numberInt": "11502" }, "id": { "$numberInt": "72281" } }, "countries": ["Spain", "USA", "Panama", "UK"], "type": "movie", "tomatoes": { "viewer": { "rating": { "$numberDouble": "3.5" }, "numReviews": { "$numberInt": "9600" }, "meter": { "$numberInt": "78" } }, "dvd": { "$date": { "$numberLong": "982022400000" } }, "critic": { "rating": { "$numberDouble": "7.1" }, "numReviews": { "$numberInt": "11" }, "meter": { "$numberInt": "82" } }, "lastUpdated": { "$date": { "$numberLong": "1441307415000" } }, "rotten": { "$numberInt": "2" }, "production": "Live Home Video", "fresh": { "$numberInt": "9" } }, "plot_embedding": Binary.createFromBase64('JwATQn+8iGwMvRuAeTwtiy6908...), "plot_embedding_voyage_3_large": Binary.createFromBase64('JwCnhcc7zQ1TPCq6QLuIdzM71sj...) }
sample_mflix.movies
Esta colección contiene detalles sobre películas. Cada documento contiene una sola película e información como su título, año de lanzamiento y reparto.
Indexes
Esta colección contiene los siguientes índices:
Nombre | Index | Descripción | Propiedades |
|---|---|---|---|
|
| Índice de llave primaria en el campo | |
|
| Índice de texto en los campos |
Documento de muestra
{ "_id": { "$oid": "573a1390f29313caabcd413b" }, "title": "The Arrival of a Train", "year": { "$numberInt": "1896" }, "runtime": { "$numberInt": "1" }, "released": { "$date": { "$numberLong": "-2335219200000" } }, "poster": "http://ia.media-imdb.com/images/M/MV5BMjEyNDk5MDYzOV5BMl5BanBnXkFtZTgwNjIxMTEwMzE@._V1_SX300.jpg", "plot": "A group of people are standing in a straight line along the platform of a railway station, waiting for a train, which is seen coming at some distance. When the train stops at the platform, ...", "fullplot": "A group of people are standing in a straight line along the platform of a railway station, waiting for a train, which is seen coming at some distance. When the train stops at the platform, the line dissolves. The doors of the railway-cars open, and people on the platform help passengers to get off.", "lastupdated": "2015-08-15 00:02:53.443000000", "type": "movie", "directors": [ "Auguste Lumière", "Louis Lumière" ], "imdb": { "rating": { "$numberDouble": "7.3" }, "votes": { "$numberInt": "5043" }, "id": { "$numberInt": "12" } }, "cast": [ "Madeleine Koehler" ], "countries": [ "France" ], "genres": [ "Documentary", "Short" ], "tomatoes": { "viewer": { "rating": { "$numberDouble": "3.7" }, "numReviews": { "$numberInt": "59" } }, "lastUpdated": { "$date": { "$numberLong": "1441993589000" } } }, "num_mflix_comments": { "$numberInt": "1" } }
sample_mflix.sessions
Esta colección contiene metadatos sobre usuarios. Cada documento contiene un usuario y su correspondiente JSON Web Token.
Indexes
Esta colección contiene los siguientes índices:
Nombre | Index | Descripción | Propiedades |
|---|---|---|---|
|
| Índice de llave primaria en el campo | |
|
| Índice ascendente en el campo |
Documento de muestra
{ "_id": { "$oid": "5a98348755593fdf68350932" }, "user_id": "bfb9vc1zz@xhasq.5h9", "jwt": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..." }
sample_mflix.theaters
Esta colección contiene ubicaciones de teatros de cine. Cada documento contiene una única sala de cine y su ubicación en forma de string y GeoJSON.
Indexes
Nombre | Index | Descripción | Propiedades |
|---|---|---|---|
|
| Índice de llave primaria en el campo | |
|
| Índice geoespacial en el campo |
Documento de muestra
{ "_id": { "$oid": "59a47286cfa9a3a73e51e72c" }, "theaterId": { "$numberInt": "1000" }, "location": { "address": { "street1": "340 W Market", "city": "Bloomington", "state": "MN", "zipcode": "55425" }, "geo": { "type": "Point", "coordinates": [ { "$numberDouble": "-93.24565" }, { "$numberDouble": "44.85466" } ] } } }
sample_mflix.users
Esta colección contiene información sobre usuarios mflix. Cada documento contiene un único usuario, y su nombre, correo electrónico y contraseña.
Indexes
Nombre | Index | Descripción | Propiedades |
|---|---|---|---|
|
| Índice de llave primaria en el campo | |
|
| Índice único ascendente en el campo |
Documento de muestra
{ "_id": { "$oid": "59b99db4cfa9a34dcd7885b6" }, "name": "Ned Stark", "email": "sean_bean@gameofthron.es", "password": "$2b$12$UREFwsRUoyF0CRqGNK0LzO0HM/jLhgUCNNIJ9RJAqMUQ74crlJ1Vu" }