Skip to content

Conversation

JinHai-CN
Copy link
Contributor

What problem does this PR solve?

curl --request GET --url localhost:23820/databases/default/tables/my_table/docs --header 'accept: application/json' --header 'content-type: application/json' --data '
{
    "output":
    [
        "num",
        "body",
        "vec"
    ],
    "fusion": 
    {
        "method": "rrf",
        "match":
        {
            "fields": "body", 
            "query": "bloom",
            "operator": "topn=3"
        },
        "knn":
        {
            "fields": "vec",
            "query_vector": [3.0, 2.8, 2.7, 3.1],
            "element_type": "float",
            "top_k": 3,
            "metric_type": "inner_product"
        }
    }
} '
{
"error_code":0,
"output":[{"body":"Office for Harmful Blooms","num":"2","vec":"4.000000, 4.200000, 4.300000, 4.500000"},{"body":"unnecessary and harmful","num":"1","vec":"1.000000, 1.200000, 0.800000, 0.900000"}]
}

Issue link:#779

Type of change

  • New Feature (non-breaking change which adds functionality)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
@JinHai-CN JinHai-CN mentioned this pull request Mar 25, 2024
23 tasks
@JinHai-CN JinHai-CN added ci PR can be test and removed ci PR can be test labels Mar 25, 2024
@JinHai-CN JinHai-CN merged commit e1a92a7 into infiniflow:main Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci PR can be test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant