Update dataset - 2025-11-25
Browse files- README.md +79 -0
- chroma.sqlite3.gz +3 -0
- metadata.json +24 -0
- movies.json +0 -0
README.md
CHANGED
|
@@ -1,3 +1,82 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- movies
|
| 5 |
+
- embeddings
|
| 6 |
+
- rag
|
| 7 |
+
- chromadb
|
| 8 |
+
- sentence-transformers
|
| 9 |
+
size_categories:
|
| 10 |
+
- 1K<n<10K
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
# Movie Embeddings RAG Dataset
|
| 14 |
+
|
| 15 |
+
This dataset contains movie embeddings for Retrieval-Augmented Generation (RAG) in a movie recommendation chatbot.
|
| 16 |
+
|
| 17 |
+
## Dataset Information
|
| 18 |
+
|
| 19 |
+
- **Total Movies:** 750
|
| 20 |
+
- **Date Range:** Unknown - Unknown
|
| 21 |
+
- **Last Updated:** 2025-11-25
|
| 22 |
+
- **Embedding Model:** sentence-transformers/all-MiniLM-L6-v2
|
| 23 |
+
- **Embedding Dimension:** 384
|
| 24 |
+
|
| 25 |
+
## Files
|
| 26 |
+
|
| 27 |
+
- `chroma.sqlite3.gz` - Compressed ChromaDB database with embeddings
|
| 28 |
+
- `movies.json` - Movie metadata (title, overview, cast, crew, etc.)
|
| 29 |
+
- `metadata.json` - Dataset statistics and version info
|
| 30 |
+
|
| 31 |
+
## Top Genres
|
| 32 |
+
|
| 33 |
+
- Thriller: 263 movies
|
| 34 |
+
- Action: 256 movies
|
| 35 |
+
- Drama: 222 movies
|
| 36 |
+
- Comedy: 217 movies
|
| 37 |
+
- Horror: 167 movies
|
| 38 |
+
|
| 39 |
+
## Usage
|
| 40 |
+
|
| 41 |
+
### Download and Extract
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
from huggingface_hub import hf_hub_download
|
| 45 |
+
import gzip
|
| 46 |
+
import shutil
|
| 47 |
+
|
| 48 |
+
# Download compressed database
|
| 49 |
+
db_path = hf_hub_download(
|
| 50 |
+
repo_id="YOUR_USERNAME/movie-embeddings-rag",
|
| 51 |
+
filename="chroma.sqlite3.gz",
|
| 52 |
+
repo_type="dataset"
|
| 53 |
+
)
|
| 54 |
+
|
| 55 |
+
# Decompress
|
| 56 |
+
with gzip.open(db_path, 'rb') as f_in:
|
| 57 |
+
with open('chroma.sqlite3', 'wb') as f_out:
|
| 58 |
+
shutil.copyfileobj(f_in, f_out)
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
### Use with ChromaDB
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
import chromadb
|
| 65 |
+
|
| 66 |
+
client = chromadb.PersistentClient(path="./chroma_db")
|
| 67 |
+
collection = client.get_collection("movies")
|
| 68 |
+
|
| 69 |
+
# Search for movies
|
| 70 |
+
results = collection.query(
|
| 71 |
+
query_texts=["science fiction movie about space"],
|
| 72 |
+
n_results=5
|
| 73 |
+
)
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
## Automated Updates
|
| 77 |
+
|
| 78 |
+
This dataset is automatically updated monthly via GitHub Actions with new movie releases.
|
| 79 |
+
|
| 80 |
+
## License
|
| 81 |
+
|
| 82 |
+
MIT License - Free to use for any purpose.
|
chroma.sqlite3.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:601477aa49f1015c3f493099f8936e2ce036aaee6de1e49d871a61d046aa5032
|
| 3 |
+
size 6741031
|
metadata.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "2025-11-25",
|
| 3 |
+
"total_movies": 750,
|
| 4 |
+
"date_range": {
|
| 5 |
+
"earliest": "Unknown",
|
| 6 |
+
"latest": "Unknown"
|
| 7 |
+
},
|
| 8 |
+
"movies_by_year": {},
|
| 9 |
+
"top_genres": {
|
| 10 |
+
"Thriller": 263,
|
| 11 |
+
"Action": 256,
|
| 12 |
+
"Drama": 222,
|
| 13 |
+
"Comedy": 217,
|
| 14 |
+
"Horror": 167,
|
| 15 |
+
"Adventure": 141,
|
| 16 |
+
"Crime": 98,
|
| 17 |
+
"Science Fiction": 93,
|
| 18 |
+
"Romance": 92,
|
| 19 |
+
"Fantasy": 92
|
| 20 |
+
},
|
| 21 |
+
"last_updated": "2025-11-25T08:08:53.030589",
|
| 22 |
+
"embedding_model": "sentence-transformers/all-MiniLM-L6-v2",
|
| 23 |
+
"embedding_dimension": 384
|
| 24 |
+
}
|
movies.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|