Skip to content
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

ERROR:adalflow.core.embedder:Error processing the output: 'EmbedderOutput' object is not iterable #272

Open
fm1320 opened this issue Nov 21, 2024 · 1 comment · May be fixed by #297
Open
Labels
bug Something isn't working, either in /adalflow, /tutorials, or /use cases...

Comments

@fm1320
Copy link
Collaborator

fm1320 commented Nov 21, 2024

Bug description

Going through tutorial on: https://adalflow.sylph.ai/tutorials/embedder.html and encountering

ERROR:adalflow.core.embedder:Error processing the output: 'EmbedderOutput' object is not iterable
0 -1 False

When running cell from the tutorial:

output = local_embedder_256(query)
print(output.length, output.embedding_dim, output.is_normalized)
# 1 256 True

What version are you seeing the problem on?

No response

How to reproduce the bug

No response

Error messages and logs

# Error messages and logs here please
ERROR:adalflow.core.embedder:Error processing the output: 'EmbedderOutput' object is not iterable
0 -1 False

Environment

  • OS: [e.g., Linux, Windows, macOS]

More info

No response

@fm1320 fm1320 added the bug Something isn't working, either in /adalflow, /tutorials, or /use cases... label Nov 21, 2024
@liyin2015
Copy link
Member

This might not be a bug, but rather legacy tutorial? can you check the new api and change the documentation to fix it?

@ajithvcoder ajithvcoder linked a pull request Dec 12, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, either in /adalflow, /tutorials, or /use cases...
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants