You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/tests/unit_tests/embeddings
maang-h 13140dc4ff
community[patch]: Update the default api_url and reqeust_body of sparkllm embedding (#22136)
- **Description:** When I was running the SparkLLMTextEmbeddings,
app_id, api_key and api_secret are all correct, but it cannot run
normally using the current URL.

    ```python
    # example
    from langchain_community.embeddings import SparkLLMTextEmbeddings

    embedding= SparkLLMTextEmbeddings(
        spark_app_id="my-app-id",
        spark_api_key="my-api-key",
        spark_api_secret="my-api-secret"
    )
    embedding= "hello"
    print(spark.embed_query(text1))
    ```

![sparkembedding](https://github.com/langchain-ai/langchain/assets/55082429/11daa853-4f67-45b2-aae2-c95caa14e38c)
   
So I updated the url and request body parameters according to
[Embedding_api](https://www.xfyun.cn/doc/spark/Embedding_api.html), now
it is runnable.
4 months ago
..
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_deterministic_embedding.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_edenai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_embaas.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_gradient_ai.py infra: add -p to mkdir in lint steps (#17013) 8 months ago
test_huggingface.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_imports.py community[minor]: Add IPEX-LLM BGE embedding support on both Intel CPU and GPU (#22226) 4 months ago
test_infinity.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_infinity_local.py community[minor]: infinity embedding local option (#17671) 7 months ago
test_llamafile.py community[minor]: llamafile embeddings support (#17976) 7 months ago
test_llm_rails.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_oci_gen_ai_embedding.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_ollama.py community[patch]: OllamaEmbeddings - Pass headers to post request (#16880) 6 months ago
test_openai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_premai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_sparkllm.py community[patch]: Update the default api_url and reqeust_body of sparkllm embedding (#22136) 4 months ago
test_vertexai.py community[minor]: New model parameters and dynamic batching for VertexAIEmbeddings (#13999) 9 months ago
test_yandex.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago