Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error: Missing Embedder and Options Not Displayed in 'Add Document #51

Closed
atifemreyuksel opened this issue Nov 23, 2023 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@atifemreyuksel
Copy link

I have deployed Verba via Docker, and I can successfully access the frontend side. However, I've encountered an issue where no options are displayed in the "Add document" section. Upon inspecting the Docker logs, I've come across the following error message:
File "/Verba/goldenverba/server/api.py", line 300, in get_components config_manager.get_embedder(), embedders[config_manager.get_embedder()] KeyError: ''

Additionally, I've created my own .env file and have added only the Hugging Face API token.

Could you please help me understand why this error is occurring right after the initialization? Is there any crucial installation step that I might have missed?

@thomashacker
Copy link
Collaborator

Interesting! Thanks for the issue.
The FastAPI Service creates a config.json which it uses to cache selected components and their configuration. This is a bug, where the config saved an empty string as the embedder component, and now throws an KeyError. I will look into it and fix this! 🚀

@thomashacker thomashacker added the bug Something isn't working label Nov 24, 2023
@thomashacker
Copy link
Collaborator

Fixed the issue on the main branch, will be included in the coming release! 🚀 You can install from source by cloning the project and installing it via pip install -e .

@hubciorz
Copy link

@thomashacker I'm not sure if it has been fixed. I'm still encountering the same error but now the line number is different.

   File "/Users/hubciorz/Verba/goldenverba/server/api.py", line 294, in get_components
    config_manager.get_embedder(), embedders[config_manager.get_embedder()]
                                   ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: ''

@koshyviv
Copy link

koshyviv commented Mar 8, 2024

Im still getting this issue

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants