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

[Question]: [Python API] : ambiguity in api responce. #4610

Closed
senovr opened this issue Jan 23, 2025 · 0 comments
Closed

[Question]: [Python API] : ambiguity in api responce. #4610

senovr opened this issue Jan 23, 2025 · 0 comments
Labels
question Further information is requested

Comments

@senovr
Copy link

senovr commented Jan 23, 2025

Describe your problem

Hi,
I am playing with python api, and now I am trying to update the prompt parameters.
the dictionary that I am pushing via update() mehtod is :

update_message = {
                "prompt": {
                    "keywords_similarity_weight": 0.1,                                                  
                    "similarity_threshold": 0.25,
                    "top_n": 30,                                      
                }
            }

in interface of the assistant, I observe:

Image

as you may observe, similarity_threshold and top_n are updated correctly, but for keywords_similarity_weight - in interface, it shows 0.9 (1 - 0.1), not 0.1.

Can you please clarify this behaviour?
Is it a bug in interface or in API?
What number I should put in API call to set keywords_similarity_weight to 0.1 (and apparently cosine_distance_weight to 0.9) ?

@senovr senovr added the question Further information is requested label Jan 23, 2025
KevinHuSh added a commit that referenced this issue Jan 24, 2025
### What problem does this PR solve?

#4610

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
@senovr senovr closed this as completed Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant