Skip to content

Commit

Permalink
Fixed the wrong similarity_threshold documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sahusiddharth authored and SimFG committed Dec 24, 2023
1 parent acc20f0 commit 109d9ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptcache/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Config:
:param log_time_func: optional, customized log time function
:type log_time_func: Optional[Callable[[str, float], None]]
:param similarity_threshold: a threshold ranged from 0 to 1 to filter search results with similarity score higher \
than the threshold. When it is 0, there is no hits. When it is 1, all search results will be returned as hits.
than the threshold. When it is 0, all search results will be returned as hits. When it is 1, there is no hits.
:type similarity_threshold: float
:param prompts: optional, if the request content will remove the prompt string when the request contains the prompt list
:type prompts: Optional[List[str]]
Expand Down

0 comments on commit 109d9ca

Please sign in to comment.