|
|
|
|
|
|
|
|
This discourages the model from repeating the same information by penalizing words that have already appeared in the conversation. Defaults to `0.2`. |
|
|
This discourages the model from repeating the same information by penalizing words that have already appeared in the conversation. Defaults to `0.2`. |
|
|
- `"frequency penalty"`: `float` |
|
|
- `"frequency penalty"`: `float` |
|
|
Similar to the presence penalty, this reduces the model’s tendency to repeat the same words frequently. Defaults to `0.7`. |
|
|
Similar to the presence penalty, this reduces the model’s tendency to repeat the same words frequently. Defaults to `0.7`. |
|
|
- `"max_token"`: `integer` |
|
|
|
|
|
The maximum length of the model's output, measured in the number of tokens (words or pieces of words). Defaults to `512`. If disabled, you lift the maximum token limit, allowing the model to determine the number of tokens in its responses. |
|
|
|
|
|
- `"prompt"`: (*Body parameter*), `object` |
|
|
- `"prompt"`: (*Body parameter*), `object` |
|
|
Instructions for the LLM to follow. If it is not explicitly set, a JSON object with the following values will be generated as the default. A `prompt` JSON object contains the following attributes: |
|
|
Instructions for the LLM to follow. If it is not explicitly set, a JSON object with the following values will be generated as the default. A `prompt` JSON object contains the following attributes: |
|
|
- `"similarity_threshold"`: `float` RAGFlow employs either a combination of weighted keyword similarity and weighted vector cosine similarity, or a combination of weighted keyword similarity and weighted reranking score during retrieval. This argument sets the threshold for similarities between the user query and chunks. If a similarity score falls below this threshold, the corresponding chunk will be excluded from the results. The default value is `0.2`. |
|
|
- `"similarity_threshold"`: `float` RAGFlow employs either a combination of weighted keyword similarity and weighted vector cosine similarity, or a combination of weighted keyword similarity and weighted reranking score during retrieval. This argument sets the threshold for similarities between the user query and chunks. If a similarity score falls below this threshold, the corresponding chunk will be excluded from the results. The default value is `0.2`. |
|
|
|
|
|
|
|
|
This discourages the model from repeating the same information by penalizing words that have already appeared in the conversation. Defaults to `0.2`. |
|
|
This discourages the model from repeating the same information by penalizing words that have already appeared in the conversation. Defaults to `0.2`. |
|
|
- `"frequency penalty"`: `float` |
|
|
- `"frequency penalty"`: `float` |
|
|
Similar to the presence penalty, this reduces the model’s tendency to repeat the same words frequently. Defaults to `0.7`. |
|
|
Similar to the presence penalty, this reduces the model’s tendency to repeat the same words frequently. Defaults to `0.7`. |
|
|
- `"max_token"`: `integer` |
|
|
|
|
|
The maximum length of the model's output, measured in the number of tokens (words or pieces of words). Defaults to `512`. If disabled, you lift the maximum token limit, allowing the model to determine the number of tokens in its responses. |
|
|
|
|
|
- `"prompt"`: (*Body parameter*), `object` |
|
|
- `"prompt"`: (*Body parameter*), `object` |
|
|
Instructions for the LLM to follow. A `prompt` object contains the following attributes: |
|
|
Instructions for the LLM to follow. A `prompt` object contains the following attributes: |
|
|
- `"similarity_threshold"`: `float` RAGFlow employs either a combination of weighted keyword similarity and weighted vector cosine similarity, or a combination of weighted keyword similarity and weighted rerank score during retrieval. This argument sets the threshold for similarities between the user query and chunks. If a similarity score falls below this threshold, the corresponding chunk will be excluded from the results. The default value is `0.2`. |
|
|
- `"similarity_threshold"`: `float` RAGFlow employs either a combination of weighted keyword similarity and weighted vector cosine similarity, or a combination of weighted keyword similarity and weighted rerank score during retrieval. This argument sets the threshold for similarities between the user query and chunks. If a similarity score falls below this threshold, the corresponding chunk will be excluded from the results. The default value is `0.2`. |