module cleanlab_codex.types.project
Types for Codex projects.
class ProjectConfig
Type representing options that can be configured for a Codex project.
class ProjectConfig(TypedDict):
clustering_use_llm_matching: 'bool'
llm_matching_model: 'str'
llm_matching_quality_preset: 'str'
lower_llm_match_distance_threshold: 'float'
max_distance: 'float'
query_use_llm_matching: 'bool'
upper_llm_match_distance_threshold: 'float'
property max_distance
Distance threshold used to determine if two questions are similar when querying existing Entries in a project. The metric used is cosine distance. Valid threshold values range from 0 (identical vectors) to 1 (orthogonal vectors). While cosine distance can extend to 2 (opposite vectors), we limit this value to 1 since finding matches that are less similar than “unrelated” (orthogonal) content would not improve results of the system querying the Codex project.