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/langchain/embeddings
Nguyen Trung Duc (john) 49e4aaf673
Fix subclassing OpenAIEmbeddings (#4500)
# Fix subclassing OpenAIEmbeddings

Fixes #4498 

## Before submitting

- Problem: Due to annotated type `Tuple[()]`.
- Fix: Change the annotated type to "Iterable[str]". Even though
tiktoken use
[Collection[str]](095924e02c/tiktoken/core.py (L80))
type annotation, but pydantic doesn't support Collection type, and
[Iterable](https://docs.pydantic.dev/latest/usage/types/#typing-iterables)
is the closest to Collection.
1 year ago
..
__init__.py Add ChatModel, LLM, and Embeddings for Google's PaLM APIs (#3575) 1 year ago
aleph_alpha.py Add aleph alpha api key attribute (#4489) 1 year ago
base.py FAISS and embedding support (#48) 2 years ago
cohere.py changed cohere.py to update the default model of embedding (#4709) 1 year ago
fake.py add fake embeddings class (#1503) 1 year ago
google_palm.py Exponential back-off support for Google PaLM api (#4001) 1 year ago
huggingface.py Fix typo in huggingface.py (#4277) 1 year ago
huggingface_hub.py Minor: Remove duplicated word in error message (#2706) 1 year ago
jina.py Minor: Remove duplicated word in error message (#2706) 1 year ago
llamacpp.py llama-cpp: add gpu layers parameter (#4739) 1 year ago
openai.py Fix subclassing OpenAIEmbeddings (#4500) 1 year ago
sagemaker_endpoint.py Fix Sagemaker Batch Endpoints (#3249) 1 year ago
self_hosted.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
self_hosted_hugging_face.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
sentence_transformer.py Sentence Transformers Aliasing (#3541) 1 year ago
tensorflow_hub.py pass list of strings to embed method in tf_hub (#3284) 1 year ago