Load/Save FAISS index using fsspec
{'login': 'Dref360', 'id': 8976546, 'node_id': 'MDQ6VXNlcjg5NzY1NDY=', 'avatar_url': 'https://avatars.githubusercontent.com/u/8976546?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/Dref360', 'html_url': 'https://github.com/Dref360', 'followers_url': 'https://api.github.com/users/Dref360/followers', 'following_url': 'https://api.github.com/users/Dref360/following{/other_user}', 'gists_url': 'https://api.github.com/users/Dref360/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/Dref360/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/Dref360/subscriptions', 'organizations_url': 'https://api.github.com/users/Dref360/orgs', 'repos_url': 'https://api.github.com/users/Dref360/repos', 'events_url': 'https://api.github.com/users/Dref360/events{/privacy}', 'received_events_url': 'https://api.github.com/users/Dref360/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892871, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODcx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/enhancement', 'name': 'enhancement', 'color': 'a2eeef', 'default': True, 'description': 'New feature or request'}]
[]
Hi! Sure, feel free to submit a PR. Maybe if we want to be consistent with the existing API, it would be cleaner to directly add support for `fsspec` paths in `Dataset.load_faiss_index`/`Dataset.save_faiss_index` in the same manner as it was done in `Dataset.load_from_disk`/`Dataset.save_to_disk`. That's a great idea! I'll do that instead. 
### Feature request

From what I understand `faiss` already support this [link](https://github.com/facebookresearch/faiss/wiki/Index-IO,-cloning-and-hyper-parameter-tuning#generic-io-support)

I would like to use a stream as input to `Dataset.load_faiss_index` and `Dataset.save_faiss_index`.

### Motivation

In my case, I'm saving faiss index in cloud storage and use `fsspec` to load them. It would be ideal if I could send the stream directly instead of copying the file locally (or mounting the bucket) and then load the index.

### Your contribution

I can submit the PR
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5428/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}