Relatude Help

21 Text and semantic search

Relatude.DB has BM25 keyword search and vector (semantic) search built in. semanticRatio blends them: 0.0 is keyword only, 1.0 is vector only, and values between give a hybrid.

  • WhereSearch — search as a filter — WhereSearch keeps the matching nodes and returns a node query you can keep building on:
  • Search — search as ranking — Search returns ranked hits, each with a score and a text sample. Use it for a search results page:
  • What actually gets searched — WhereSearch and Search look in each node's text index: A node type is in it when it has [Node(TextIndex = BoolValue.True)], or every type is when EnableTextIndexByDefault is on (§12.1). SemanticIndex does the same for…