Skip to content

Commit 241a454

Browse files
authored
feat: add text-only config (#102)
1 parent f55e4ab commit 241a454

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ The following configuration files are available in the `config` directory:
3838
- `config/gcp_description.yaml` - GCP environment with description retriever, which uses `Gemini 2.5 Flash` model for page images descriptions and `Gemini 2.5 Pro` for the answer generation.
3939
- `config/gcp_embedding.yaml` - GCP environment with multimodal retriever, which uses Google `multimodalembedding@001` model for page images embeddings and `Gemini 2.5 Pro` for the answer generation.
4040
- `config/azure_with_gcp_embedding.yaml` - mixed environment which assumes that you have and access to both Azure and GCP models in the Dial. It uses Google `multimodalembedding@001` model for page images embeddings and `GPT-4.1` for the answer generation.
41+
- `config/text_only.yaml` - example of config with text-only mode, where the image-based retrievers are disabled. This config can be used with LLMs which do not support image inputs. Uses `GPT-4.1` for the answer generation by default.
4142

4243
If you are running the Dial RAG in a different environment, you can create your own configuration file based on one of the provided files and set the `DIAL_RAG__CONFIG_PATH` environment variable to point to it. If you need a small change in the configuration (for example to change the model name), you can point the `DIAL_RAG__CONFIG_PATH` to the existing file and override the required settings using the environment variables. See the [Additional environment variables](#additional-environment-variables) section for the list of available settings.
4344

config/text_only.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Example of ai-dial-rag config with text-only models
2+
#
3+
# Both image-based retrievers are disabled
4+
# The num_page_images_to_use is set to 0 to avoid passing images to LLM
5+
# Can be used with the LLMs which do not support images
6+
#
7+
request:
8+
indexing:
9+
description_index: null
10+
multimodal_index: null
11+
qa_chain:
12+
chat_chain:
13+
llm:
14+
deployment_name: gpt-4.1-2025-04-14
15+
max_prompt_tokens: 16000
16+
num_page_images_to_use: 0
17+
query_chain:
18+
llm:
19+
deployment_name: gpt-4.1-2025-04-14
20+
max_prompt_tokens: 8000

0 commit comments

Comments
 (0)