-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to access aws bed rock embedding models for vectorizer? #143
Comments
@neeraj-mahapatra Can you show what your index schema looks like (the yaml or dict)? And also verify the output of |
bsbodden
added a commit
to bsbodden/redis-vl-python
that referenced
this issue
Nov 25, 2024
bsbodden
added a commit
that referenced
this issue
Nov 27, 2024
bsbodden
added a commit
that referenced
this issue
Nov 27, 2024
bsbodden
added a commit
that referenced
this issue
Nov 27, 2024
bsbodden
added a commit
that referenced
this issue
Dec 2, 2024
bsbodden
added a commit
that referenced
this issue
Dec 2, 2024
bsbodden
added a commit
that referenced
this issue
Dec 2, 2024
bsbodden
added a commit
that referenced
this issue
Dec 2, 2024
bsbodden
added a commit
that referenced
this issue
Dec 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to use Amazon bedrock models as vectorizer but there is no such vectorizer. How can i use such embedding models?
I have created a custom vectorizer:
`import os
import boto3
from typing import Callable, Dict, List, Optional
from tenacity import retry, stop_after_attempt, wait_random_exponential
from langchain_community.embeddings.bedrock import BedrockEmbeddings
from tenacity.retry import retry_if_not_exception_type
from redisvl.utils.vectorize.base import BaseVectorizer
class AmazonBedrockTextVectorizer(BaseVectorizer):
It is working perfectly and creating vectors.
But when I check the vectors dimensions for Huggingface, OpenAI, AmazonTitan Models
Hf : 768 AZ : 1536 OpenAI : 1536
Here I found one similarity that amazon titan and OpenAI models have same dimensions. and its greater than HFace.
I guess that why it giving this error:
ResponseError: Error parsing vector similarity query: query vector blob size (6144) does not match index's expected size (3072).
While using Hugging face default model its working great.
The text was updated successfully, but these errors were encountered: