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

Support fuzzy match and multiple hits for tag scoring #39635

Open
HuskyDanny opened this issue Feb 8, 2025 · 4 comments
Open

Support fuzzy match and multiple hits for tag scoring #39635

HuskyDanny opened this issue Feb 8, 2025 · 4 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Search

Comments

@HuskyDanny
Copy link

We can set up the tag scoring profile by this:

scoring_profiles = [
        ScoringProfile(
            name="my-scoring-profile",
            functions=[
                TagScoringFunction(
                    field_name="tags",
                    boost=10,
                    parameters=TagScoringParameters(
                        tags_parameter="tags",
                    ),
                )
            ],
        )
    ]

But it will just boost the score if exact match is hit and even though I have multiple hits say "tags-house,car,watch" I could only get the same score as the hit is only 1.

So do we have fuzzy match like allowing editdistance within~3 and get multiplier scores if multiple values are hit in the tags. This is especially useful in a lot of cases.

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Feb 8, 2025
@xiangyan99
Copy link
Member

Thanks for reaching out.

Could you provide the information which library do you use?

Do you use azure ai search service?

@xiangyan99 xiangyan99 added needs-author-feedback Workflow: More information is needed from author to address the issue. and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Feb 10, 2025
Copy link

Hi @HuskyDanny. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

@HuskyDanny
Copy link
Author

HuskyDanny commented Feb 10, 2025

Hi @xiangyan99, I am using the latest azure-search-documents for azure ai search service

@github-actions github-actions bot added needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-author-feedback Workflow: More information is needed from author to address the issue. labels Feb 10, 2025
@kristapratico kristapratico added Search Client This issue points to a problem in the data-plane of the library. labels Feb 10, 2025
@xiangyan99
Copy link
Member

@mattgotteiner any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Search
Projects
None yet
Development

No branches or pull requests

4 participants