DOCXSearchTool is one of CrewAI’s RAGTools, as we can see in the first lines of the code:
from typing import Any, Optional, Type
from embedchain.models.data_type import DataType
from pydantic import BaseModel, Field
from ..rag.rag_tool import RagTool
So basically, the process is:
Read the file → Create chunks → Embed the chunks → Store the embeddings
And, when the tool is used by your Agent, we’ll have:
Embed your query → Semantic search → Prompt augmenting
If you were hoping (for whatever reason) to get the entire text content of your .docx file back, this isn’t the tool for that job.