YanSte commited on
Commit
f3163e5
·
1 Parent(s): 2f1c86d

fixed type

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. lightrag/base.py +4 -3
README.md CHANGED
@@ -361,7 +361,7 @@ class QueryParam:
361
  - "hybrid": Combines local and global retrieval methods.
362
  - "naive": Performs a basic search without advanced techniques.
363
  - "mix": Integrates knowledge graph and vector retrieval.
364
- """
365
  only_need_context: bool = False
366
  """If True, only returns the retrieved context without generating a response."""
367
  response_type: str = "Multiple Paragraphs"
 
361
  - "hybrid": Combines local and global retrieval methods.
362
  - "naive": Performs a basic search without advanced techniques.
363
  - "mix": Integrates knowledge graph and vector retrieval.
364
+ """
365
  only_need_context: bool = False
366
  """If True, only returns the retrieved context without generating a response."""
367
  response_type: str = "Multiple Paragraphs"
lightrag/base.py CHANGED
@@ -62,13 +62,13 @@ class QueryParam:
62
  max_token_for_local_context: int = 4000
63
  """Maximum number of tokens allocated for entity descriptions in local retrieval."""
64
 
65
- hl_keywords: List[str] = field(default_factory=list)
66
  """List of high-level keywords to prioritize in retrieval."""
67
 
68
- ll_keywords: List[str] = field(default_factory=list)
69
  """List of low-level keywords to refine retrieval focus."""
70
 
71
- conversation_history: List[dict[str, Any]] = field(default_factory=list)
72
  """Stores past conversation history to maintain context.
73
  Format: [{"role": "user/assistant", "content": "message"}].
74
  """
@@ -76,6 +76,7 @@ class QueryParam:
76
  history_turns: int = 3
77
  """Number of complete conversation turns (user-assistant pairs) to consider in the response context."""
78
 
 
79
  @dataclass
80
  class StorageNameSpace:
81
  namespace: str
 
62
  max_token_for_local_context: int = 4000
63
  """Maximum number of tokens allocated for entity descriptions in local retrieval."""
64
 
65
+ hl_keywords: list[str] = field(default_factory=list)
66
  """List of high-level keywords to prioritize in retrieval."""
67
 
68
+ ll_keywords: list[str] = field(default_factory=list)
69
  """List of low-level keywords to refine retrieval focus."""
70
 
71
+ conversation_history: list[dict[str, Any]] = field(default_factory=list)
72
  """Stores past conversation history to maintain context.
73
  Format: [{"role": "user/assistant", "content": "message"}].
74
  """
 
76
  history_turns: int = 3
77
  """Number of complete conversation turns (user-assistant pairs) to consider in the response context."""
78
 
79
+
80
  @dataclass
81
  class StorageNameSpace:
82
  namespace: str