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

hashing_kv.global_config["embedding_func"]["func"] TypeError: 'function' object is not subscriptable #536

Open
rayshaw001 opened this issue Jan 2, 2025 · 1 comment

Comments

@rayshaw001
Copy link

python3.12 TypeError: 'function' object is not subscriptable

embedding_model_func = hashing_kv.global_config["embedding_func"]["func"]

embedding_model_func = hashing_kv.global_config["embedding_func"] works well, why we use ["func"] ?

image

@jin38324
Copy link
Contributor

jin38324 commented Jan 9, 2025

change to this:
embedding_model_func = hashing_kv.global_config["embedding_func"].func

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants