zrguo
commited on
Commit
·
2571a0e
1
Parent(s):
17bd40a
Update README.md
Browse files
README.md
CHANGED
@@ -203,6 +203,21 @@ ollama create -f Modelfile qwen2m
|
|
203 |
```
|
204 |
|
205 |
</details>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
### Batch Insert
|
208 |
```python
|
|
|
203 |
```
|
204 |
|
205 |
</details>
|
206 |
+
### Query Param
|
207 |
+
```python
|
208 |
+
class QueryParam:
|
209 |
+
mode: Literal["local", "global", "hybrid", "naive"] = "global"
|
210 |
+
only_need_context: bool = False
|
211 |
+
response_type: str = "Multiple Paragraphs"
|
212 |
+
# Number of top-k items to retrieve; corresponds to entities in "local" mode and relationships in "global" mode.
|
213 |
+
top_k: int = 60
|
214 |
+
# Number of tokens for the original chunks.
|
215 |
+
max_token_for_text_unit: int = 4000
|
216 |
+
# Number of tokens for the relationship descriptions
|
217 |
+
max_token_for_global_context: int = 4000
|
218 |
+
# Number of tokens for the entity descriptions
|
219 |
+
max_token_for_local_context: int = 4000
|
220 |
+
```
|
221 |
|
222 |
### Batch Insert
|
223 |
```python
|