langchain/libs/community/langchain_community/embeddings
maang-h 9f8d18c028
community[patch]: Fix unintended newline in print statement in exception for BaichuanTextEmbeddings (#21820)
- **Code:** langchain_community/embeddings/baichuan.py:82
- **Description:** When I make an error using 'baichuan embeddings', the
printed error message is wrapped (there is actually no need to wrap)
```python
# example
from langchain_community.embeddings import BaichuanTextEmbeddings

# error key
BAICHUAN_API_KEY = "sk-xxxxxxxxxxxxx"
embeddings = BaichuanTextEmbeddings(baichuan_api_key=BAICHUAN_API_KEY)

text_1 = "今天天气不错"
query_result = embeddings.embed_query(text_1)
```



![unintended
newline](https://github.com/langchain-ai/langchain/assets/55082429/e1178ce8-62bb-405d-a4af-e3b28eabc158)
2024-05-17 16:38:38 +00:00
..
__init__.py community: add SambaNova embeddings integration (#21227) 2024-05-06 13:29:59 -07:00
aleph_alpha.py community[minor]: import fix (#20995) 2024-04-29 10:32:50 -04:00
anyscale.py community[minor]: Add Anyscale embedding support (#17605) 2024-03-29 00:53:53 +00:00
awa.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
azure_openai.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
baichuan.py community[patch]: Fix unintended newline in print statement in exception for BaichuanTextEmbeddings (#21820) 2024-05-17 16:38:38 +00:00
baidu_qianfan_endpoint.py community:qianfan endpoint support init params & remove useless params definietion (#15381) 2024-01-01 13:12:31 -08:00
bedrock.py community[minor]: import fix (#20995) 2024-04-29 10:32:50 -04:00
bookend.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
clarifai.py community[patch] : Tidy up and update Clarifai SDK functions (#18314) 2024-03-07 19:47:44 -08:00
cloudflare_workersai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
cohere.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
dashscope.py Fixing the Issue with DashScopeEmbeddings Handling More than 25 Rows of Data (#14662) 2024-01-01 16:50:13 -08:00
databricks.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
deepinfra.py [community][fix](DeepInfraEmbeddings): Implement chunking for large batches (#21189) 2024-05-08 14:45:42 -07:00
edenai.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
elasticsearch.py elasticsearch[patch], community[patch]: update references, deprecate community classes (#18506) 2024-03-06 15:09:12 -08:00
embaas.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
ernie.py community[patch]: deprecate ErnieBotChat and ErnieEmbeddings classes (#15862) 2024-01-15 11:14:44 -08:00
fake.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
fastembed.py community[patch]: support fastembed v1 and v2 (#19125) 2024-03-15 18:33:51 -07:00
gigachat.py community[minor]: Added GigaChat Embeddings support + updated previous GigaChat integration (#19516) 2024-03-25 16:08:37 -07:00
google_palm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
gpt4all.py community: Instantiate GPT4AllEmbeddings with parameters (#21238) 2024-05-08 14:44:47 -07:00
gradient_ai.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
huggingface_hub.py community[patch]: Fixed 'coroutine' object is not subscriptable error (#15986) 2024-01-15 10:34:10 -08:00
huggingface.py Added additional headers for HuggingFaceInferenceAPIEmbeddings endpoint. (#21282) 2024-05-07 14:17:53 -04:00
infinity_local.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
infinity.py docs: community docstring updates (#21040) 2024-04-29 17:40:23 -04:00
itrex.py community[minor]: Add ITREX optimized Embeddings (#18474) 2024-03-27 07:22:06 +00:00
javelin_ai_gateway.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
jina.py Refactor: use SecretStr for jina embeddings (#15068) 2023-12-22 11:42:29 -08:00
johnsnowlabs.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
laser.py community: Add Laser Embedding Integration (#18111) 2024-02-26 12:16:37 -08:00
llamacpp.py community[minor]: import fix (#20995) 2024-04-29 10:32:50 -04:00
llamafile.py community[minor]: llamafile embeddings support (#17976) 2024-03-01 13:49:18 -08:00
llm_rails.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
localai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
minimax.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
mlflow_gateway.py community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
mlflow.py docs: fix databricks document url (#19096) 2024-03-15 22:25:11 +00:00
modelscope_hub.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
mosaicml.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
nemo.py mark NemoEmbeddings as deprecated (#21239) 2024-05-06 19:44:58 +00:00
nlpcloud.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
oci_generative_ai.py community[minor]: import fix (#20995) 2024-04-29 10:32:50 -04:00
octoai_embeddings.py community[patch]: octoai embeddings bug fix (#17216) 2024-02-07 22:25:52 -05:00
ollama.py community[patch]: OllamaEmbeddings - Pass headers to post request (#16880) 2024-03-29 18:44:52 +00:00
openai.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
openvino.py community[minor]: import fix (#20995) 2024-04-29 10:32:50 -04:00
optimum_intel.py community: fix tqdm import (#20263) 2024-04-25 19:44:53 +00:00
oracleai.py community[minor]: Oraclevs integration (#21123) 2024-05-04 03:15:35 +00:00
premai.py docs: community docstring updates (#21040) 2024-04-29 17:40:23 -04:00
sagemaker_endpoint.py community[patch]: Add explicit error message to Bedrock error output. (#17328) 2024-03-29 03:07:33 +00:00
sambanova.py community: add SambaNova embeddings integration (#21227) 2024-05-06 13:29:59 -07:00
self_hosted_hugging_face.py docs: Update documentation to use 'model_id' rather than 'model_name' to match actual API (#16615) 2024-01-26 15:01:12 -08:00
self_hosted.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
sentence_transformer.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
solar.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
spacy_embeddings.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
sparkllm.py docs: community docstring updates (#21040) 2024-04-29 17:40:23 -04:00
tensorflow_hub.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
text2vec.py Update text2vec.py (#19657) 2024-03-27 13:13:30 -04:00
titan_takeoff.py docs: community docstring updates (#21040) 2024-04-29 17:40:23 -04:00
vertexai.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
volcengine.py Feat add volcano embedding (#14693) 2024-01-01 14:37:35 -08:00
voyageai.py (all): update removal in deprecation warnings from 0.2 to 0.3 (#21265) 2024-05-03 14:29:36 -04:00
xinference.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
yandex.py community[patch]: YandexGPT API add ability to disable request logging (#20670) 2024-04-19 21:40:37 -04:00