mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +00:00
33a2f58fbf
This PR adds `tensoflow_datasets` document loader
32 lines
905 B
Plaintext
32 lines
905 B
Plaintext
# TensorFlow Datasets
|
|
|
|
>[TensorFlow Datasets](https://www.tensorflow.org/datasets) is a collection of datasets ready to use,
|
|
> with TensorFlow or other Python ML frameworks, such as Jax. All datasets are exposed
|
|
> as [tf.data.Datasets](https://www.tensorflow.org/api_docs/python/tf/data/Dataset),
|
|
> enabling easy-to-use and high-performance input pipelines. To get started see
|
|
> the [guide](https://www.tensorflow.org/datasets/overview) and
|
|
> the [list of datasets](https://www.tensorflow.org/datasets/catalog/overview#all_datasets).
|
|
|
|
|
|
|
|
## Installation and Setup
|
|
|
|
You need to install `tensorflow` and `tensorflow-datasets` python packages.
|
|
|
|
```bash
|
|
pip install tensorflow
|
|
```
|
|
|
|
```bash
|
|
pip install tensorflow-dataset
|
|
```
|
|
|
|
|
|
## Document Loader
|
|
|
|
See a [usage example](/docs/integrations/document_loaders/tensorflow_datasets).
|
|
|
|
```python
|
|
from langchain.document_loaders import TensorflowDatasetLoader
|
|
```
|