We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"errorMessage": "Unable to import module 'text_embedding_poc': cannot import name 'TextEmbedding' from 'fastembed' (unknown location)",
`
import json from fastembed import TextEmbedding embedding_model = TextEmbedding() print("The model BAAI/bge-small-en-v1.5 is ready to use.") def handler(event, context): try: for record in event['Records']: sns_message = record['Sns']['Message'] sns_payload = json.loads(sns_message) text = sns_payload['text'] embeddings_generator = embedding_model.embed(text) return { 'statusCode': 200, 'body': json.dumps(embeddings_generator) } except Exception as e: return { 'statusCode': 500, 'body': json.dumps(f"Error updating categories: {str(e)}") }
Should allow to import
No response
Python 3.11.0
Latest
MacOS
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
"errorMessage": "Unable to import module 'text_embedding_poc': cannot import name 'TextEmbedding' from 'fastembed' (unknown location)",
`
`
What is the expected behaviour?
Should allow to import
A minimal reproducible example
No response
What Python version are you on? e.g. python --version
Python 3.11.0
FastEmbed version
Latest
What os are you seeing the problem on?
MacOS
Relevant stack traces and/or logs
The text was updated successfully, but these errors were encountered: