Ranking options when using the openai api
01-12-2025
- ranker
- Which ranker to use in determining which chunks to use. The available values are auto, which uses the latest available ranker, and default_2024_08_21.
- score_threshold
- a ranking between 0.0 and 1.0, with 1.0 being the highest ranking. A higher number will constrain the file chunks used to generate a result to only chunks with a higher possible relevance, at the cost of potentially leaving out relevant chunks.
- hybrid_search.embedding_weight (also referred to as rrf_embedding_weight)
- determines how much weight to give to semantic similarity when combining dense (embedding) and sparse (text) rankings with reciprocal rank fusion. Increase this weight to favor chunks that are close in embedding space.
- hybrid_search.text_weight (also referred to as rrf_text_weight)
- determines how much weight to give to keyword/text matching when hybrid search is enabled. Increase this weight to favor chunks that share exact terms with the query. https://platform.openai.com/docs/guides/retrieval#ranking