Skip to content

Commit

Permalink
format: apply make format to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cxumol committed Dec 4, 2023
1 parent e5c06ab commit 569ce51
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@
],
"source": [
"embeddings = CloudflareWorkersAIEmbeddings(\n",
" account_id=my_account_id, api_token=my_api_token, model_name = \"@cf/baai/bge-small-en-v1.5\"\n",
" account_id=my_account_id,\n",
" api_token=my_api_token,\n",
" model_name=\"@cf/baai/bge-small-en-v1.5\",\n",
")\n",
"# single string embeddings\n",
"query_result = embeddings.embed_query(\"test\")\n",
"len(query_result),query_result[:3]"
"len(query_result), query_result[:3]"
]
},
{
Expand All @@ -82,7 +84,7 @@
"source": [
"# string embeddings in batches\n",
"batch_query_result = embeddings.embed_documents([\"test1\", \"test2\", \"test3\"])\n",
"len(batch_query_result),len(batch_query_result[0])"
"len(batch_query_result), len(batch_query_result[0])"
]
},
{
Expand Down

0 comments on commit 569ce51

Please sign in to comment.