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

[Feature Request]: Support Rank feature query #2309

Open
1 task done
yingfeng opened this issue Nov 29, 2024 · 0 comments
Open
1 task done

[Feature Request]: Support Rank feature query #2309

yingfeng opened this issue Nov 29, 2024 · 0 comments
Labels
feature request New feature or request

Comments

@yingfeng
Copy link
Member

yingfeng commented Nov 29, 2024

Is there an existing issue for the same feature request?

  • I have checked the existing issues.

Is your feature request related to a problem?

No response

Describe the feature you'd like

Rank Feature Query in ES is used in many enterprise scenarios. Infinity will provide similar feature accordingly.

A scenario is to provide hierarchical knowledge base in RAGFlow, the result is a combination of knowledge base with higher quality or higher priority with other general knowledge bases.

In order to support this feature, the column should have type of rank_feature or rank_features.
rank_feature can only support positive numeric values while rank_features can only support Map where the key must be string type and value must be positive numeric types that can be represented using 16bit.

@yingfeng yingfeng added the feature request New feature or request label Nov 29, 2024
@yingfeng yingfeng mentioned this issue Nov 29, 2024
79 tasks
@JinHai-CN JinHai-CN mentioned this issue Dec 19, 2024
25 tasks
yingfeng added a commit that referenced this issue Jan 15, 2025
### What problem does this PR solve?

Columns for rank features(#2309) with Map types will have weight for
each term, which is better to be represented with doc payload within
inverted index.

Issue link:#2309

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
JinHai-CN pushed a commit that referenced this issue Jan 22, 2025
### What problem does this PR solve?

Insert:
```
`json` string is required for rank features column: 
[{"Tag1":0.1},{"Tag2":0.2}]
```

Query: 
```
SELECT * FROM table SEARCH MATCH TEXT ('doc', 'second text multiple', 'rank_features= field^tag1^1.0,field^tag2^1.0;topn=10');
```

Issue link:#2309

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant