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

[Bug]: Hybrid search with expression template does not work #38616

Open
1 task done
xiaocai2333 opened this issue Dec 20, 2024 · 1 comment
Open
1 task done

[Bug]: Hybrid search with expression template does not work #38616

xiaocai2333 opened this issue Dec 20, 2024 · 1 comment
Assignees
Labels
kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@xiaocai2333
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: master & 2.4
- Deployment mode(standalone or cluster):
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2):
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

test example:

{
  "collection_name": "collection_rxobtrdg",
  "requests": [
    {
      "collection_name": "collection_rxobtrdg",
      "partition_names": [],
      "output_fields": ["*"],
      "nq": 1,
      "dsl": "varChar == {value}",
      "dsl_type": 1,
      "placeholder_group": {
        "type": "Buffer",
        "data": [
          10, 40, 10, 2, 36, 48, 16, 101, 26, 32, 0, 0, 128, 63, 0, 0, 0, 64, 0,
          0, 64, 64, 0, 0, 128, 64, 0, 0, 160, 64, 0, 0, 192, 64, 0, 0, 224, 64,
          0, 0, 0, 65
        ]
      },
      "search_params": [
        { "key": "anns_field", "value": "vector" },
        { "key": "params", "value": "{\"nprobe\":2}" },
        { "key": "topk", "value": 1 },
        { "key": "offset", "value": 0 },
        { "key": "metric_type", "value": "" },
        { "key": "ignore_growing", "value": false }
      ],
      "consistency_level": "Strong",
      "expr_template_values": { "value": { "string_val": "d" } }
    }
  ],
  "rank_params": [
    { "key": "strategy", "value": "rrf" },
    { "key": "params", "value": "{\"k\":60}" },
    { "key": "round_decimal", "value": -1 },
    { "key": "limit", "value": 1 }
  ],
  "output_fields": ["*"],
  "consistency_level": "Strong"
}

return error:

failed to create query plan: the value of expression template variable name {value} is not found: invalid parameter

Expected Behavior

search successfully.

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

@xiaocai2333 xiaocai2333 added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 20, 2024
@xiaocai2333
Copy link
Contributor Author

/assign
/unassign @yanliang567

@xiaocai2333 xiaocai2333 changed the title [Bug]: Hybrid search with expression template return error [Bug]: Hybrid search with expression template does not work Dec 20, 2024
sre-ci-robot pushed a commit to milvus-io/pymilvus that referenced this issue Dec 20, 2024
sre-ci-robot pushed a commit to milvus-io/pymilvus that referenced this issue Dec 20, 2024
sre-ci-robot pushed a commit to milvus-io/pymilvus that referenced this issue Dec 20, 2024
czs007 pushed a commit that referenced this issue Dec 20, 2024
sre-ci-robot pushed a commit that referenced this issue Dec 23, 2024
sre-ci-robot pushed a commit that referenced this issue Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

2 participants