infiniflow / infinity

The AI-native database built for LLM applications, providing incredibly fast hybrid search of dense vector, sparse vector, tensor (multi-vector), and full-text
https://infiniflow.org
Apache License 2.0
2.68k stars 275 forks source link

Update rag_analyzer.cpp #2273

Closed yangzq50 closed 2 days ago

yangzq50 commented 2 days ago

What problem does this PR solve?

Improve performance of RAGAnalyzer::GetBestTokensTopN, reduce memory cost

Issue link:#2159

Type of change