Skip to content

Commit

Permalink
Update readme index weaviate component (#843)
Browse files Browse the repository at this point in the history
Small changes to the index weaviate component readme.
  • Loading branch information
mrchtr authored Feb 6, 2024
1 parent a0ba72c commit 7ec04dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions components/index_weaviate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dataset = pipeline.read(
}
)

dataset = dataset.apply(
dataset.write(
"index_weaviate",
arguments={
"weaviate_url": "http://localhost:8080",
Expand All @@ -35,7 +35,7 @@ dataset = dataset.apply(
}
},
consumes={
"text": "text"
"text": pa.string()
}
)
```
Expand Down Expand Up @@ -66,14 +66,14 @@ dataset = dataset.apply(
},
)

dataset = dataset.apply(
dataset.write(
"index_weaviate",
arguments={
"weaviate_url": "http://localhost:8080",
"class_name": "my_class",
},
consumes={
"embedding": "embedding"
"embedding": pa.list_(pa.float32())
}
)
```
Expand Down
8 changes: 4 additions & 4 deletions components/index_weaviate/fondant_component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ description: |
}
)
dataset = dataset.apply(
dataset.write(
"index_weaviate",
arguments={
"weaviate_url": "http://localhost:8080",
Expand All @@ -33,7 +33,7 @@ description: |
}
},
consumes={
"text": "text"
"text": pa.string()
}
)
```
Expand Down Expand Up @@ -64,14 +64,14 @@ description: |
},
)
dataset = dataset.apply(
dataset.write(
"index_weaviate",
arguments={
"weaviate_url": "http://localhost:8080",
"class_name": "my_class",
},
consumes={
"embedding": "embedding"
"embedding": pa.list_(pa.float32())
}
)
```
Expand Down

0 comments on commit 7ec04dc

Please sign in to comment.