add cloning examples

This commit is contained in:
vbarda
2024-12-03 11:37:26 -05:00
parent 05d33b3503
commit 0ee7b37d3f
2 changed files with 30 additions and 2 deletions
+15 -1
View File
@@ -92,7 +92,21 @@ The dataset used can be found [here](https://smith.langchain.com/public/640df79c
### Using the dataset
To use the data from this dataset in your own project, you can create a new dataset with the same examples using the following command:
To use the data from this dataset in your own project, you can:
(1) clone the dataset using LangSmith SDK:
```python
from langsmith import Client
client = Client()
cloned_dataset = client.clone_public_dataset(
"https://smith.langchain.com/public/640df79c-1831-494e-8824-d7300205dc8e/d",
dataset_name="Public Company Data Enrichment"
)
```
(2) create a new dataset with the same examples using the following command:
```shell
python public_company_data_enrichment/create_dataset.py
+15 -1
View File
@@ -116,7 +116,21 @@ The dataset used can be found [here](https://smith.langchain.com/public/afabd12a
### Using the dataset
To use the data from this dataset in your own project, you can create a new dataset with the same examples using the following command:
To use the data from this dataset in your own project, you can:
(1) clone the dataset using LangSmith SDK:
```python
from langsmith import Client
client = Client()
cloned_dataset = client.clone_public_dataset(
"https://smith.langchain.com/public/afabd12a-62fa-4c09-b083-6b1742b4cc3a/d",
dataset_name="Startup Data Enrichment"
)
```
(2) create a new dataset with the same examples using the following command:
```shell
python startup_data_enrichment/create_dataset.py