Skip to main content
Version: v0.19.1

Auto-keyword Auto-question

Use a chat model to generate keywords or questions from each chunk in the knowledge base.


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 an "additional layer of information" from the original content.

WARNING

Enabling this feature increases document indexing time and uses extra tokens, as all created chunks will be sent to the chat model for keyword or question generation.

What is Auto-keyword?

Auto-keyword refers to the auto-keyword generation feature of RAGFlow. It uses a chat model to generate a set of keywords or synonyms 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.

Values:

  • 0: (Default) Disabled.
  • Between 3 and 5 (inclusive): Recommended if you have chunks of approximately 1,000 characters.
  • 30 (maximum)
NOTE
  • If your chunk size increases, you can increase the value accordingly. Please note, as the value increases, the marginal benefit decreases.
  • 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.

What is Auto-question?

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. The feature usually works with FAQ retrieval scenarios involving product manuals or policy documents. And you can find this feature as a slider under Page rank on the Configuration page of your knowledge base.

Values:

  • 0: (Default) Disabled.
  • 1 or 2: Recommended if you have chunks of approximately 1,000 characters.
  • 10 (maximum)
NOTE
  • If your chunk size increases, you can increase the value accordingly. Please note, as the value increases, the marginal benefit decreases.
  • 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.

Tips from the community

The Auto-keyword or Auto-question values relate closely to the chunking size in your knowledge base. However, if you are new to this feature and unsure which value(s) to start with, the following are some value settings we gathered from our community. While they may not be accurate, they provide a starting point at the very least.

Use cases or typical scenariosDocument volume/lengthAuto_keyword (0–30)Auto_question (0–10)
Internal process guidance for employee handbookSmall, under 10 pages00
Customer service FAQsMedium, 10–100 pages3–71–3
Technical whitepapers: Development standards, protocol detailsLarge, over 100 pages2–41–2
Multi-repository layered new documents + old archiveManyAdjust as appropriateAdjust as appropriate
Social media comment pool: multilingual & mixed spellingVery large volume of short text8–120
Operational logs for troubleshootingVery large volume of short text3–60
Marketing asset library: multilingual product descriptionsMedium6–101–2
Training courses / eBooksLarge2–51–2
Maintenance manual: equipment diagrams + stepsMedium3–71–2