24 lines
1.2 KiB
Markdown
24 lines
1.2 KiB
Markdown
# Search
|
|
|
|
BM25 full-text search is available on the Free tier with no Ollama required.
|
|
|
|
## Using search
|
|
|
|
1. Click **Search** in the navigation bar
|
|
2. Type a phrase or keyword — results appear as you submit
|
|
3. Results show the source document, page number, a text excerpt, and a BM25 relevance score
|
|
|
|
## Filtering by document
|
|
|
|
Use the document selector to restrict results to one or more specific books. This is useful when your library spans many documents and you know which one contains the answer.
|
|
|
|
## BM25 scoring
|
|
|
|
BM25 (Best Match 25) ranks pages by term frequency weighted against how rare each term is across the whole corpus. A page that uses your query term frequently AND that term is rare across all documents ranks highest.
|
|
|
|
!!! tip
|
|
For short queries like "chimes" or "protocol", BM25 tends to surface later chapters where the term appears repeatedly in action scenes. If you want the introductory definition, try a longer phrase like "what are the chimes" to give BM25 more signal.
|
|
|
|
## Hybrid search (requires Ollama)
|
|
|
|
When Ollama is configured, the Chat endpoint uses hybrid search behind the scenes: BM25 results are merged with semantic vector results using a 50/50 score blend. The Search page always uses BM25 only.
|