MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / SearchConfig

Class SearchConfig

vector/beir/config.py:81–85  ·  view source on GitHub ↗

Vector search configuration (for PR#9514 new similar_to syntax).

Source from the content-addressed store, hash-verified

79
80@dataclass
81class SearchConfig:
82 """Vector search configuration (for PR#9514 new similar_to syntax)."""
83 ef_search_query: int = int(os.getenv("SEARCH_EF", "0")) # 0 means use index default
84 distance_threshold: float = float(os.getenv("SEARCH_DISTANCE_THRESHOLD", "0.0")) # 0 means no threshold
85 use_new_syntax: bool = os.getenv("USE_NEW_SIMILAR_TO_SYNTAX", "false").lower() == "true"
86
87
88@dataclass

Callers 1

__post_init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected