Skip to content

Commit 81c8a2d

Browse files
chore: Clean up write_turbopuffer guide (#5093)
## Changes Made 1. Fix typo 2. Add proper links in example
1 parent 5f39ded commit 81c8a2d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/connectors/turbopuffer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This example does the following:
3030
model = "BAAI/bge-base-en-v1.5"
3131

3232
turbopuffer_config = {
33-
"namespace": "daft-tpuf-example2",
33+
"namespace": "daft-tpuf-example",
3434
"region": "gcp-us-central1",
3535
"distance_metric": "cosine_distance",
3636
"schema": {

docs/examples/text-embeddings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Now we'll execute the complete data processing pipeline:
232232
5. **Generate embeddings**: Apply embedding UDF to text
233233
6. **Create IDs**: Generate unique IDs combining URL and chunk_id
234234
7. **Select columns**: Keep only the necessary columns
235-
8. **Write to Turbopuffer**: Store data and vectors in Turbopuffer
235+
8. **Write to Turbopuffer**: Store data and vectors in Turbopuffer using Daft's [`DataFrame.write_turbopuffer`](../api/dataframe#daft.DataFrame.write_turbopuffer) method
236236

237237
If all works out well, when you run this script on your cluster, you should notice that network I/O, CPU work, and GPU work are pipelined to run in parallel, and you should see high GPU utilization :)
238238

0 commit comments

Comments
 (0)