Skip to content

Commit

Permalink
fix: doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
srini047 committed Sep 5, 2024
1 parent 2188200 commit 9afd366
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions haystack/components/converters/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class CSVToDocument:
Converts CSV files to Documents.
By default, it uses UTF-8 encoding when converting files but
you can also set custom encoding.
you can also set a custom encoding.
It can attach metadata to the resulting documents.
Usage example:
Expand All @@ -29,7 +29,7 @@ class CSVToDocument:
results = converter.run(sources=["sample.csv"], meta={"date_added": datetime.now().isoformat()})
documents = results["documents"]
print(documents[0].content)
# b'col1,col2\n\nrow1,row1\n\nrow2row2\n\n'
# 'col1,col2\now1,row1\nrow2row2\n'
```
"""

Expand Down
2 changes: 1 addition & 1 deletion releasenotes/notes/add-csv-converter-5c0d52f180d498f5.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
features:
- |
Add a CSV to Document converter component. Loads the file as bytes object. Adds the loaded bytes string as a new document that can be used for further processing by the Document Splitter.
Add a CSV to Document converter component. Loads the file as bytes object. Adds the loaded string as a new document that can be used for further processing by the Document Splitter.

0 comments on commit 9afd366

Please sign in to comment.