Visit ComfyUI Online for ready-to-use ComfyUI environment
Fetch and process Wikipedia content efficiently for AI projects with ComfyUI Node.
The wikipedia_tool
is designed to fetch and process content from Wikipedia based on a given query. This tool is particularly useful for AI artists and developers who need to integrate Wikipedia content into their projects. It allows you to retrieve specific information from Wikipedia pages, process the text into manageable chunks, and even perform similarity searches to find the most relevant sections of the content. The tool supports multiple devices for processing, ensuring flexibility and efficiency. By leveraging this tool, you can easily access and utilize a wealth of information from Wikipedia, enhancing the depth and context of your AI-driven projects.
This parameter specifies the keyword or phrase you want to search for on Wikipedia. It is a string that represents the topic of interest. For example, if you want to retrieve information about "Python programming," you would set this parameter to "Python programming." The default value is "query."
This boolean parameter determines whether the tool is enabled or disabled. If set to True
, the tool will execute the Wikipedia query; if set to False
, the tool will not perform any action. The default value is True
.
This optional string parameter specifies the path to the embedding model used for processing the text. If not provided, the tool will use a default setting. This parameter is useful if you have a specific embedding model you want to use for text processing. The default value is None
.
This integer parameter defines the size of the text chunks that the content will be split into. It helps in managing large texts by breaking them down into smaller, more manageable pieces. The default value is 200
.
This integer parameter specifies the overlap between consecutive text chunks. It ensures that important information at the boundaries of chunks is not lost. The default value is 50
.
This parameter allows you to specify the device to be used for processing. Options include "auto," "cuda," "mps," and "cpu." The "auto" option will automatically select the best available device. The default value is auto
.
The output parameter is a string that contains the retrieved and processed content from Wikipedia. Depending on the input parameters and the query, this content can be a simple text excerpt or a more complex, processed text with relevant sections merged together. This output is essential for integrating Wikipedia content into your projects, providing valuable information and context.
chunk_size
and chunk_overlap
parameters to optimize the text processing for your specific needs. Larger chunk sizes may be useful for more detailed content, while smaller sizes can help in managing and analyzing shorter texts.embedding_path
parameter if you have a custom embedding model that you prefer to use for text processing. This can enhance the relevance and accuracy of the retrieved content.device
parameter is set to "auto" to allow the tool to select the best available processing device, optimizing performance.device
parameter is set to one of the valid options: "auto," "cuda," "mps," or "cpu."embedding_path
parameter to ensure it points to a valid file location.© Copyright 2024 RunComfy. All Rights Reserved.