Vector search configuration (for PR#9514 new similar_to syntax).
| 79 | |
| 80 | @dataclass |
| 81 | class 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 |