| 15 | |
| 16 | @dataclass |
| 17 | class QueryParam: |
| 18 | mode: Literal["local", "global", "hybrid", "naive"] = "global" |
| 19 | only_need_context: bool = False |
| 20 | only_need_prompt: bool = False |
| 21 | response_type: str = "Multiple Paragraphs" |
| 22 | # Number of top-k items to retrieve; corresponds to entities in "local" mode and relationships in "global" mode. |
| 23 | top_k: int = 60 |
| 24 | # Number of document chunks to retrieve. |
| 25 | # top_n: int = 10 |
| 26 | # Number of tokens for the original chunks. |
| 27 | max_token_for_text_unit: int = 4000 |
| 28 | # Number of tokens for the relationship descriptions |
| 29 | max_token_for_global_context: int = 4000 |
| 30 | # Number of tokens for the entity descriptions |
| 31 | max_token_for_local_context: int = 4000 |
| 32 | |
| 33 | |
| 34 | @dataclass |
no outgoing calls
no test coverage detected