def get_embedding_function():
embeddings = BedrockEmbeddings(
credentials_profile_name="default", region_name="us-east-1"
)
# embeddings = OllamaEmbeddings(model="nomic-embed-text")
return embeddings
Can we have similar function using Azure OPENAI
Wondering where is the text passed to this embedding? Sorry novice
def get_embedding_function():
embeddings = BedrockEmbeddings(
credentials_profile_name="default", region_name="us-east-1"
)
# embeddings = OllamaEmbeddings(model="nomic-embed-text")
return embeddings
Can we have similar function using Azure OPENAI
Wondering where is the text passed to this embedding? Sorry novice