Open avalonliberty opened 3 months ago
The error "Only one root is supported" suggests an issue with how directories are managed in your setup, particularly in relation to the RagCLI
class's expectations for directory structures. This error often occurs when the system expects a single root directory but finds multiple, which can happen in several areas of your custom CLI setup:
Check Persist Directory Handling: Ensure the persist_dir
attribute in RagCLI
, which determines where ingestion pipeline data is stored, is correctly set to a single path.
Review Ingestion Pipeline Configuration: Your ingestion_pipeline
should be configured to work with a single root directory. If your custom model or data processing steps involve directory management, make sure they comply with this requirement.
Ensure Compatibility of Custom Model Integration: If your custom model has specific directory structure needs, verify that these are compatible with the RagCLI
's handling of directories, particularly the persist_dir
.
CLI Arguments and Data Handling: The way CLI arguments are processed and how data ingestion is handled in the handle_cli
method might also be areas where the issue arises. Ensure that the logic does not lead to the creation or use of multiple root directories.
To resolve the issue, focus on aligning your custom setup with the single-root directory principle, ensuring that all parts of your system are configured to use and expect only one root directory for operations. If the problem persists after checking these areas, consider isolating the operation that triggers the error for a more detailed review of the directory and file handling logic involved.
Question Validation
Question
I am trying to replace the default model in RAG. Here is my script for creating custom CLI
However, when I tried to ask question to the model it showed this error message
I've looked into the code. It seems that the root key is related to DAG in the background. I don't see the reason why it can trigger an error given I purely use the default query pipeline. Is there any way to solve this issue?