Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
lujingxuansc committed Dec 18, 2023
1 parent a087463 commit acc3e51
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
{
"cells": [
{
"cell_type": "raw",
"cell_type": "markdown",
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
"source": [
"# Bytedance Volcano\n",
"# Volc Engine\n",
"\n",
"This notebook provides you with a guide on how to load the Volcano Embedding class.\n",
"\n",
"\n",
"## API Initialization\n",
"\n",
"To use the LLM services based on [Bytedance Volcano](https://www.volcengine.com/docs/82379/1099455), you have to initialize these parameters:\n",
"To use the LLM services based on [VolcEngine](https://www.volcengine.com/docs/82379/1099455), you have to initialize these parameters:\n",
"\n",
"You could either choose to init the AK,SK in environment variables or init params:\n",
"\n",
"```base\n",
"export VOLC_ACCESSKEY=XXX\n",
"export VOLC_SECRETKEY=XXX\n",
"```"
],
"metadata": {
"collapsed": false
}
]
},
{
"cell_type": "code",
Expand All @@ -39,7 +42,7 @@
"from langchain.embeddings import VolcanoEmbeddings\n",
"\n",
"os.environ[\"VOLC_ACCESSKEY\"] = \"\"\n",
"os.environ[\"VOLC_SECRETKEY\"] = \"==\"\n",
"os.environ[\"VOLC_SECRETKEY\"] = \"\"\n",
"\n",
"embed = VolcanoEmbeddings(\n",
" # volcano_ak='xxx',\n",
Expand Down
2 changes: 1 addition & 1 deletion libs/community/langchain_community/embeddings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)
from langchain_community.embeddings.bedrock import BedrockEmbeddings
from langchain_community.embeddings.bookend import BookendEmbeddings
from langchain_community.embeddings.bytedance_volcano import VolcanoEmbeddings
from langchain_community.embeddings.volcengine import VolcanoEmbeddings
from langchain_community.embeddings.clarifai import ClarifaiEmbeddings
from langchain_community.embeddings.cohere import CohereEmbeddings
from langchain_community.embeddings.dashscope import DashScopeEmbeddings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class VolcanoEmbeddings(BaseModel, Embeddings):
"""`Bytedance Volcano Embeddings` embedding models."""
"""`Volcengine Embeddings` embedding models."""

volcano_ak: Optional[str] = None
"""volcano access key
Expand Down

0 comments on commit acc3e51

Please sign in to comment.