mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-04-25 08:06:22 +02:00
fix tutorials
This commit is contained in:
parent
66c1493f79
commit
6fed3087a2
3 changed files with 74 additions and 2 deletions
|
|
@ -18,7 +18,9 @@ For each query, conduct a vector-based search to get top-K chunks with their cor
|
|||
For each document, calculate a relevance score. Let N be the number of content chunks associated with each document, and let **ChunkScore**(n) be the relevance score of chunk n. The document score is computed as:
|
||||
|
||||
|
||||
$\text{DocScore}=\frac{1}{\sqrt{N+1}}\sum_{n=1}^N \text{ChunkScore}(n)$
|
||||
$$
|
||||
\text{DocScore}=\frac{1}{\sqrt{N+1}}\sum_{n=1}^N \text{ChunkScore}(n)
|
||||
$$
|
||||
|
||||
- The sum aggregates relevance from all related chunks.
|
||||
- The +1 inside the square root ensures the formula handles nodes with zero chunks.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue