MCPcopy Create free account
hub / github.com/NanGePlus/LightRAGTest / QueryParam

Class QueryParam

LightRAG/lightrag/base.py:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16@dataclass
17class 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

Callers 15

test.pyFile · 0.90
test_neo4j.pyFile · 0.90
Step_3.pyFile · 0.90
query_endpointFunction · 0.90
query_endpointFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected