HybridSearchResult

org.llm4s.vectorstore.HybridSearchResult
final case class HybridSearchResult(id: String, content: String, score: Double, vectorScore: Option[Double], keywordScore: Option[Double], metadata: Map[String, String], highlights: Seq[String])

Result from hybrid search combining vector and keyword results.

Value parameters

content

Document content

highlights

Keyword match highlights (if available)

id

Document ID

keywordScore

Original BM25 keyword score (if available)

metadata

Document metadata

score

Combined relevance score (higher is better)

vectorScore

Original vector similarity score (0-1, if available)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product