Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

autokeyword_autoquestion.mdx 4.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. ---
  2. sidebar_position: 3
  3. slug: /autokeyword_autoquestion
  4. ---
  5. # Auto-keyword Auto-question
  6. import APITable from '@site/src/components/APITable';
  7. Use a chat model to generate keywords and questions from each chunk in the knowledge base.
  8. ---
  9. When selecting a chunking method, you can also enable auto-keyword or auto-question generation to increase retrieval rates. This feature uses a chat model to produce a specified number of keywords and questions from each created chunk, generating a layer of higher-level information from the original content.
  10. :::tip NOTE
  11. Enabling this feature increases document indexing time, as all created chunks will be sent to the chat model for keyword or question generation.
  12. :::
  13. ## What is Auto-keyword?
  14. Auto-keyword refers to the auto-keyword generation feature of RAGFlow. It uses a chat model to generate set of keywords or synonyms generated from each chunk to correct errors and enhance retrieval accuracy. This feature is implemented as a slider under **Page rank** on the **Configuration** page of your knowledge base.
  15. Values:
  16. - 0: (Default) Disabled.
  17. - Between 3 and 5 (invlusive): Recommended if you have chunks of approximately 1,000 characters.
  18. - Maximum: 30. If your chunk size increases, you can increase the value accordingly. Please note, as the value increases, the marginal benefit decreases.
  19. :::tip NOTE
  20. An Auto-keyword value must be an integer. If you set it to a non-integer, say 1.7, it will be rounded down to the nearest integer, which in this case is 1.
  21. :::
  22. ## What is Auto-question?
  23. Auto-question is a feature of RAGFlow that automatically generates questions from chunks of data using a chat model. These questions (e.g. who, what, and why) also help correct errors and improve the matching of user queries. You can find this feature as a slider under **Page rank** on the **Configuration** page of your knowledge base.
  24. Values:
  25. - 0: (Default) Disabled.
  26. - 1 or 2: Recommended if you have chunks of approximately 1,000 characters.
  27. - Maximum: 10. Can also be used to correct bad cases.
  28. - Typical use cases: Scenarios requiring FAQ retrieval, such as product manuals and policy documents.
  29. :::tip NOTE
  30. An Auto-question value must be an integer. If you set it to a non-integer, say 1.7, it will be rounded down to the nearest integer, which in this case is 1.
  31. :::
  32. ## Some tips from the community
  33. The corresponding values relate closely to the chunking size in your knowledge base. However, if you are new to this feature and unsure which values to start with, here are some suggested values gathered from our community:
  34. ```mdx-code-block
  35. <APITable>
  36. ```
  37. | Use cases or typical scenarios | Document volume/length | Auto_keyword (0–30) | Auto_question (0–10) |
  38. |---------------------------------------------------------------------|---------------------------------|----------------------------|----------------------------|
  39. | Internal process guidance for employee handbook | Small, under 10 pages | 0 | 0 |
  40. | Customer service FAQs | Medium, 10–100 pages | 3–7 | 1–3 |
  41. | Technical whitepapers: Development standards, protocol details | Large, over 100 pages | 2–4 | 1–2 |
  42. | Contracts / Regulations / Legal clause retrieval | Large, over 50 pages | 2–5 | 0–1 |
  43. | Multi-repository layered new documents + old archive | Many | Adjust as appropriate |Adjust as appropriate |
  44. | Social media comment pool: multilingual & mixed spelling | Very large volume of short text | 8–12 | 0 |
  45. | Operational logs for troubleshooting | Very large volume of short text | 3–6 | 0 |
  46. | Marketing asset library: Multilingual product descriptions | Medium | 6–10 | 1–2 |
  47. | Training Courses / eBooks | Large | 2–5 | 1–2 |
  48. | Maintenance manual: equipment diagrams + steps | Medium | 3–7 | 1–2 |
  49. ```mdx-code-block
  50. </APITable>
  51. ```