Skip to content

Commit

Permalink
Fix Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pparmar30 authored and bsowell committed Sep 28, 2023
1 parent b63590a commit 68554a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ See our [documentation](https://sycamore.readthedocs.io) for lots more informati
# Import and initialize the Sycamore library.
import sycamore
from sycamore.transforms.partition import UnstructuredPdfPartitioner
from sycamore.transforms.embedding import SentenceTransformerEmbedder
from sycamore.transforms.embed import SentenceTransformerEmbedder

context = sycamore.init()

Expand All @@ -64,9 +64,9 @@ embedded_doc_set = partitioned_doc_set.explode() \
# Write the embedded documents to a local OpenSearch index.
os_client_args = {
"hosts": [{"host": "localhost", "port": 9200}],
use_ssl=True,
verify_certs=False,
http_auth=("admin", "admin")
"use_ssl":True,
"verify_certs":False,
"http_auth":("admin", "admin")
}
embedded_doc_set.write.opensearch(os_client_args, "my_index_name")
```
Expand Down

0 comments on commit 68554a0

Please sign in to comment.