mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-12 21:01:56 +08:00
fix: add chinese embedding model
This commit is contained in:
parent
93342b4708
commit
03ffebc52d
@ -320,7 +320,7 @@ class AbstractGraph(ABC):
|
|||||||
elif "azure" in embedder_params["model"]:
|
elif "azure" in embedder_params["model"]:
|
||||||
return AzureOpenAIEmbeddings()
|
return AzureOpenAIEmbeddings()
|
||||||
elif "ollama" in embedder_params["model"]:
|
elif "ollama" in embedder_params["model"]:
|
||||||
embedder_params["model"] = embedder_params["model"].split("ollama/")[-1]
|
embedder_params["model"] = "/".join(embedder_params["model"].split("/")[1:])
|
||||||
try:
|
try:
|
||||||
models_tokens["ollama"][embedder_params["model"]]
|
models_tokens["ollama"][embedder_params["model"]]
|
||||||
except KeyError as exc:
|
except KeyError as exc:
|
||||||
|
|||||||
@ -59,7 +59,8 @@ models_tokens = {
|
|||||||
"qwen:110b": 32000,
|
"qwen:110b": 32000,
|
||||||
"stablelm-zephyr": 8192,
|
"stablelm-zephyr": 8192,
|
||||||
"wizardlm2:8x22b": 65536,
|
"wizardlm2:8x22b": 65536,
|
||||||
# embedding models
|
# embedding models
|
||||||
|
"shaw/dmeta-embedding-zh": 8192,
|
||||||
"snowflake-arctic-embed": 8192,
|
"snowflake-arctic-embed": 8192,
|
||||||
"mxbai-embed-large": 512
|
"mxbai-embed-large": 512
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user