writinwaters commited on
Commit
86dad2d
·
1 Parent(s): a1d84c9

Updated FAQ: Range of input length (#594)

Browse files

### What problem does this PR solve?

_Briefly describe what this PR aims to solve. Include background context
that will help reviewers understand the purpose of the PR._

### Type of change

- [x] Documentation Update

Files changed (1) hide show
  1. docs/faq.md +13 -2
docs/faq.md CHANGED
@@ -340,10 +340,21 @@ You can use Ollama to deploy local LLM. See [here](https://github.com/infiniflow
340
 
341
  ### 6. How to configure RAGFlow to respond with 100% matched results, rather than utilizing LLM?
342
 
343
- 1. Click the **Knowledge Base** tab in the middle top of the page.
344
  2. Right click the desired knowledge base to display the **Configuration** dialogue.
345
  3. Choose **Q&A** as the chunk method and click **Save** to confirm your change.
346
 
347
  ### Do I need to connect to Redis?
348
 
349
- No, connecting to Redis is not required to use RAGFlow.
 
 
 
 
 
 
 
 
 
 
 
 
340
 
341
  ### 6. How to configure RAGFlow to respond with 100% matched results, rather than utilizing LLM?
342
 
343
+ 1. Click **Knowledge Base** in the middle top of the page.
344
  2. Right click the desired knowledge base to display the **Configuration** dialogue.
345
  3. Choose **Q&A** as the chunk method and click **Save** to confirm your change.
346
 
347
  ### Do I need to connect to Redis?
348
 
349
+ No, connecting to Redis is not required.
350
+
351
+ ### `Error: Range of input length should be [1, 30000]`
352
+
353
+ This error occurs because there are too many chunks matching your search criteria. Try reducing the **TopN** and increasing **Similarity threshold** to fix this issue:
354
+
355
+ 1. Click **Chat** in the middle top of the page.
356
+ 2. Right click the desired conversation > **Edit** > **Prompt Engine**
357
+ 3. Reduce the **TopN** and/or raise **Silimarity threshold**.
358
+ 4. Click **OK** to confirm your changes.
359
+
360
+ ![topn](https://github.com/infiniflow/ragflow/assets/93570324/7ec72ab3-0dd2-4cff-af44-e2663b67b2fc)