Overview
We are still working on improving tools, so there might be unexpected behavior or changes in the future.
Installation
To use theTXTSearchTool, you first need to install the crewai_tools package.
This can be done using pip, a package manager for Python.
Open your terminal or command prompt and enter the following command:
Example
The following example demonstrates how to use the TXTSearchTool to search within a text file. This example shows both the initialization of the tool with a specific text file and the subsequent search within that file’s content.Code
Arguments
txt(str): Optional. The path to the text file you want to search. This argument is only required if the tool was not initialized with a specific text file; otherwise, the search will be conducted within the initially provided text file.
Custom model and embeddings
By default, the tool uses OpenAI for both embeddings and summarization. To customize the model, you can use a config dictionary as follows:Code
