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

TypeError: must be real number, not NoneType #49

Closed
gotsysdba opened this issue Nov 21, 2024 · 0 comments · Fixed by #50
Closed

TypeError: must be real number, not NoneType #49

gotsysdba opened this issue Nov 21, 2024 · 0 comments · Fixed by #50
Assignees

Comments

@gotsysdba
Copy link
Contributor

With multiple embeddings:

File "app/src/content/chatbot.py", line 59, in main
    st_common.save_settings_sidebar()
File "app/src/modules/st_common.py", line 833, in save_settings_sidebar
    data=create_zip(state_dict_filt, state.provider),  # Generate zip on the fly
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "app/src/modules/st_common.py", line 429, in create_zip
    env_content = get_yaml_env(state_dict_filt, provider)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "app/src/modules/st_common.py", line 340, in get_yaml_env
    vector_table,_= utilities.get_vs_table(session_state_json["rag_params"]["model"],session_state_json["rag_params"]["chunk_size"],session_state_json["rag_params"]["chunk_overlap"],session_state_json["rag_params"]["distance_metric"])
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "app/src/modules/utilities.py", line 238, in get_vs_table
    chunk_overlap_ceil = math.ceil(chunk_overlap)
                         ^^^^^^^^^^^^^^^^^^^^^^^^
@gotsysdba gotsysdba self-assigned this Nov 21, 2024
@gotsysdba gotsysdba linked a pull request Nov 21, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant